2013-03-02 23:36:06 +00:00
|
|
|
require "vagrant-lxc/version"
|
2013-02-28 03:20:54 +00:00
|
|
|
require "vagrant-lxc/plugin"
|
2017-12-11 16:48:19 +00:00
|
|
|
require "vagrant-lxc/sudo_wrapper"
|
2014-03-14 03:24:06 +00:00
|
|
|
|
|
|
|
module Vagrant
|
|
|
|
module LXC
|
|
|
|
def self.source_root
|
|
|
|
@source_root ||= Pathname.new(File.dirname(__FILE__)).join('..').expand_path
|
|
|
|
end
|
2014-04-08 17:58:07 +00:00
|
|
|
|
|
|
|
def self.sudo_wrapper_path
|
2014-09-23 02:07:12 +00:00
|
|
|
"/usr/local/bin/vagrant-lxc-wrapper"
|
2014-04-08 17:58:07 +00:00
|
|
|
end
|
2017-12-11 16:48:19 +00:00
|
|
|
|
|
|
|
def self.sudo_wrapper
|
|
|
|
wrapper = Pathname.new(sudo_wrapper_path).exist? &&
|
|
|
|
sudo_wrapper_path || nil
|
|
|
|
SudoWrapper.new(wrapper)
|
|
|
|
end
|
|
|
|
|
2014-03-14 03:24:06 +00:00
|
|
|
end
|
|
|
|
end
|