vagrant-lxc-ng/lib/vagrant-lxc.rb

23 lines
490 B
Ruby
Raw Normal View History

2013-03-02 23:36:06 +00:00
require "vagrant-lxc/version"
require "vagrant-lxc/plugin"
require "vagrant-lxc/sudo_wrapper"
module Vagrant
module LXC
def self.source_root
@source_root ||= Pathname.new(File.dirname(__FILE__)).join('..').expand_path
end
def self.sudo_wrapper_path
"/usr/local/bin/vagrant-lxc-wrapper"
end
def self.sudo_wrapper
wrapper = Pathname.new(sudo_wrapper_path).exist? &&
sudo_wrapper_path || nil
SudoWrapper.new(wrapper)
end
end
end