Closed nelsonjchen closed 11 years ago
Not sure of exactly what is going on here, but I'm fine with merging this to remove the comma. If you're confident you didn't make any changes to the recipes, I recommend to mention this in #chef
in case it's a regression in 10.18.2
.
It didn't work in chef 10.14.x with the original vagrant box. Is that comma allowed in ruby 1.9+?
As far as I know it should:
irb(main):001:0> RUBY_VERSION
=> "1.9.3"
irb(main):002:0> File.join("test","test2",)
=> "test/test2"
irb(main):001:0> RUBY_VERSION
=> "1.8.7"
irb(main):002:0> File.join("test","test2",)
SyntaxError: compile error
(irb):2: syntax error, unexpected ')'
from (irb):2
irb(main):003:0>
Well, that answers my question then. Thanks!
No problem. Might be a good idea to install Chef using the Omnibus installer because it bundles a known working build of Ruby: http://opscode.com/chef/install
If I don't delete this little comma at the end, I get this error:
To be honest, I'm not sure what this did. Can some light be shed on this? I'm running the receipe from Berkshelf with a standard Vagrant precise64 image.