mitchellh / veewee-to-packer

A tool for converting Veewee templates into Packer templates.
http://www.packer.io
MIT License
65 stars 14 forks source link

undefined method `declare_yaml' for Veewee::Definition:Class #25

Open Falkor opened 7 years ago

Falkor commented 7 years ago

If I try to use veewee-to-packer (version 0.3.0) to convert any of the officials veewee templates for Debian 8.*, it fails with error undefined methoddeclare_yaml' for Veewee::Definition:Class`:

$> veewee-to-packer --version 
veewee-to-packer 0.3.0

$> veewee-to-packer -o packer/debian-8 .submodules/veewee/templates/Debian-8/definition.rb
<path>/.submodules/veewee/templates/Debian-8/definition.rb:1:in `<top (required)>': undefined method `declare_yaml' for Veewee::Definition:Class (NoMethodError)
    from <path>veewee-to-packer-0.3.0/lib/veewee-to-packer.rb:36:in `load'
    from <path>veewee-to-packer-0.3.0/lib/veewee-to-packer.rb:36:in `convert'
    from <path>/veewee-to-packer-0.3.0/bin/veewee-to-packer:43:in `<top (required)>'
    from <path>/veewee-to-packer:23:in `load'
    [...]

it seems veewee-to-packer fails to handle the following (valid) syntax for definition.rb:

Veewee::Definition.declare_yaml('definition.yml', '8.6.yml')
UniIsland commented 5 years ago

+1 for this 2-year-old issue.