According to the Plugin packaging documentation I should have a rake package option when I run rake -T, however, the only options are:
I hoped that the documentation just meant rake build so I tried running that and it created a vagrant-myplugin-0.0.1.gem in the pkg directory, I tried to run bundle exec vagrant up as per the instructions for the second method and I got the following error:
Vagrant failed to initialize at a very early stage:
The plugin "vagrant-myplugin" could not be found. Please make sure that it is
properly installed via `vagrant plugin`. Note that plugins made for
Vagrant 1.0.x are not compatible with 1.1+ and this error will likely
continue to show when you use `plugin install` with a 1.0.x plugin.
I tried moving the gem file from the pkg directory to the same place as the Vagrantfile, however, that did not make a difference. Any help would be greatly appreciated.