Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax-error in recipe.rb? #12

Open
twissmueller opened this issue Mar 26, 2013 · 3 comments
Open

Syntax-error in recipe.rb? #12

twissmueller opened this issue Mar 26, 2013 · 3 comments

Comments

@twissmueller
Copy link

During a chef-solo run I get the below error output, this is just an excerpt, you can find the full output here.

Any idea what causes this? Am new to chef and cannot tell in how far it is a problem with my code. Also dont't find much while googling for this.

Any hints are highly appreciated!

Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/discovery/libraries/recipe.rb

================================================================================


SyntaxError

-----------

/tmp/vagrant-chef-1/chef-solo-1/cookbooks/discovery/libraries/recipe.rb:5: syntax error, unexpected '=', expecting '|'
      define_method("discovery_#{dsl_method}") do |role='', args={}|
                                                        ^
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/discovery/libraries/recipe.rb:15: syntax error, unexpected kEND, expecting $end
jkl1337 added a commit to jkl1337/discovery that referenced this issue Mar 28, 2013
jkl1337 added a commit to jkl1337/discovery that referenced this issue Mar 28, 2013
@cromulus
Copy link

cromulus commented Apr 2, 2013

👍

@svanzoest
Copy link

👎 Ruby 1.8 EOL is set to June 2013. Time to upgrade.

@johnschult
Copy link

👍 AWS OpsWorks is still using 1.8. Not a lot of control there for forcing an upgrade :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants