vagrant-lxc-ng/lib/vendored_vagrant.rb
Fabio Rehm 61c4982fde Vendorize vagrant
Closes #19
2013-03-02 20:36:06 -03:00

9 lines
387 B
Ruby

# Tks to: https://github.com/carlhuda/bundler/blob/master/lib/bundler/vendored_thor.rb
if defined?(Vagrant) && Vagrant.respond_to?(:in_installer?)
puts "vagrant has already been required. This may cause vagrant-lxc to malfunction in unexpected ways."
end
vendor = File.expand_path('../../vendor/vagrant/lib', __FILE__)
$:.unshift(vendor) unless $:.include?(vendor)
require 'vagrant'