ruby - Add a local gem into a Vagrantfile -


is there "clean" way add local gem vagrantfile?

i'm new ruby , vagrant , i'm playing vagrant 1.6.5 , ruby on mac os x.

i'm trying write new gem, want add 1 or more vagrantfile, placed in different directories. edit gem , see how works every time execute vagrant.

so have edited gemfile adding following line:

gem 'myvagrantgem', :path => "~/wsruby/myvagrantgem" 

and have added line vagrantfile:

require 'myvagrantgem' 

but when try execute vagrant:

there error loading vagrantfile. file being loaded , error message shown below. caused syntax error.  path: /users/freedev/wsruby/vagrant-ubuntu-lxc/vagrantfile message: cannot load such file -- myvagrantgem 

i specify absolute path of ruby file. suppose that, in ruby, if want add new object or library should specify gem dependency.


Comments

Popular posts from this blog

c++ - OpenMP unpredictable overhead -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

javascript - Wordpress slider, not displayed 100% width -