This looks like a Ruby 1.8.7 vs Ruby 1.9.3 syntax issue.
If you’re using Ruby 1.8.7 locally to manage your chef environment,
some things may not work as expected, for instance foodcritic requires
Ruby 1.9 and above.
Many people writing spec files are writing them in Ruby 1.9 syntax,
and these are being included in the git source, vs a packaged tarball
on the community site which may exclude them (due to a chefignore or
In any case, I’d personally recommend that you use a newer Ruby on
your workstation (and your servers) than 1.8.7.
On Tue, May 28, 2013 at 11:41 AM, Morgan Blackthorne
I’m a bit confused, since this is essentially a branch of the 4.1.2
community cookbook with my two pull requests merged into it. I’m defining
this in my Berksfile as:
cookbook ‘nagios’, git: ‘firstname.lastname@example.org:stormerider/nagios.git’, branch:
And I’ve never touched the file that it’s complaining about, as you can see:
And if I remove the git source in the Berksfile, it pulls down 4.1.2 just
fine from the community site and installs it fine.
~~ StormeRider ~~
“Every world needs its heroes […] They inspire us to be better than we
are. And they protect from the darkness that’s just around the corner.”
(from Smallville Season 6x1: “Zod”)
On why I hate the phrase “that’s so lame”… http://bit.ly/Ps3uSS