Error getting up vagrant

Hello everyone. I’m getting an error when doing:
vagrant up

Vagrant failed to initialize at a very early stage:

There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
a syntax error.

Path: /home/theUser/mydomain.com/trellis/Vagrantfile
Message: undefined local variable or method `dir’ for main:Object

I’m using ruby 2.2.1

Im sorry. I will try to update my vagrant to Vagrant >= 1.5.4 as it say in the DOC.
Thanks.

Vagrant uses it’s own embedded ruby. I believe that changing your local ruby version would have no effect on it.