I'm using Vagrant version 1.6.5, and when I was trying to add a function to
my vagrant
file that use keyword arguments I got a syntax error. I ended up just
adding a simple
function to see if I got the same error and I did.
So in my test I added:
def bugbear(a:, b:)
print "#{a} #{b}\n"
end
But when I tried to use vagrant I got the following error message;
There is a syntax error in the following Vagrantfile. The syntax error
message is reproduced below for convenience:
/Users/jamesoden/oracle/qa/repos/vagrant-dvat/Vagrantfile:246: syntax
error, unexpected ','
def bugbear(a:, b:)
^
/Users/jamesoden/oracle/qa/repos/vagrant-dvat/Vagrantfile:248: syntax
error, unexpected keyword_end, expecting end-of-input
I'm pretty sure that is the correct syntax, and my version of ruby on the
box is 2.1.5p273, which
supports this syntax. I actually run my whole Vagrantfile through "ruby
-c" and it does not complain.
Why does this not work?
Thanks...James
--
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.