Merge pull request #355 from lfaraone/use-current-ruby

vagrant-lxc-wrapper: Use correct ruby interpreter
This commit is contained in:
Fabio Rehm 2015-04-06 10:58:53 -03:00
commit 52cca8e7f6
2 changed files with 2 additions and 1 deletions

View file

@ -83,6 +83,7 @@ module Vagrant
hash[cmd] = `which #{cmd}`.strip
end
hash['lxc_bin'] = Pathname(`which lxc-create`.strip).parent.to_s
hash['ruby'] = Gem.ruby
end
end
end

View file

@ -1,4 +1,4 @@
#!/opt/vagrant/embedded/bin/ruby
#!<%= cmd_paths['ruby'] %>
# Automatically created by vagrant-lxc
class Whitelist