Files
vagrant-libvirt/lib/vagrant-libvirt.rb
Darragh Bailey db440907f7 Move libvirt connection setup to driver
Handle libvirt connection through a driver located within the provider
so it can be reached via the machine settings. Adopt the format followed
by the docker/virtualbox providers as this is likely to remain well
supported.

Will allow queries to be made without needing to setup a specific action
which is important when dealing with parallel machine provisioning.
Calling actions from other threads to retrieve information on the state
of the other running machines currently will cause vagrant to complain
about the machine being locked.
2015-07-31 09:31:52 +01:00

16 lines
430 B
Ruby

require 'pathname'
require 'vagrant-libvirt/plugin'
module VagrantPlugins
module ProviderLibvirt
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')
def self.source_root
@source_root ||= Pathname.new(File.expand_path('../../', __FILE__))
end
end
end