2013-03-27 00:55:30 +01:00
|
|
|
require 'pathname'
|
|
|
|
|
|
|
|
|
|
module VagrantPlugins
|
2013-07-31 09:20:43 +09:00
|
|
|
module ProviderLibvirt
|
2013-10-19 23:10:31 +02:00
|
|
|
lib_path = Pathname.new(File.expand_path('../vagrant-libvirt', __FILE__))
|
|
|
|
|
autoload :Action, lib_path.join('action')
|
|
|
|
|
autoload :Errors, lib_path.join('errors')
|
|
|
|
|
autoload :Util, lib_path.join('util')
|
2013-03-27 00:55:30 +01:00
|
|
|
|
|
|
|
|
def self.source_root
|
2013-10-19 23:10:31 +02:00
|
|
|
@source_root ||= Pathname.new(File.expand_path('../../', __FILE__))
|
2013-03-27 09:43:32 +01:00
|
|
|
end
|
2013-03-27 00:55:30 +01:00
|
|
|
end
|
|
|
|
|
end
|
2015-07-29 17:23:16 +01:00
|
|
|
|
2016-04-09 20:29:37 +02:00
|
|
|
# This is a sanity check to make sure no one is attempting to install
|
|
|
|
|
# this into an early Vagrant version.
|
|
|
|
|
if Vagrant::VERSION < '1.5.0'
|
|
|
|
|
raise 'The Vagrant Libvirt plugin is only compatible with Vagrant 1.5+'
|
|
|
|
|
end
|
|
|
|
|
|
2015-07-29 17:23:16 +01:00
|
|
|
# make sure base module class defined before loading plugin
|
|
|
|
|
require 'vagrant-libvirt/plugin'
|