Module: VagrantPlugins::ProviderLibvirt

Defined in:
lib/vagrant-libvirt.rb,
lib/vagrant-libvirt/util.rb,
lib/vagrant-libvirt/action.rb,
lib/vagrant-libvirt/config.rb,
lib/vagrant-libvirt/errors.rb,
lib/vagrant-libvirt/plugin.rb,
lib/vagrant-libvirt/version.rb,
lib/vagrant-libvirt/provider.rb,
lib/vagrant-libvirt/util/timer.rb,
lib/vagrant-libvirt/cap/mount_p9.rb,
lib/vagrant-libvirt/util/collection.rb,
lib/vagrant-libvirt/util/error_codes.rb,
lib/vagrant-libvirt/action/is_created.rb,
lib/vagrant-libvirt/action/is_running.rb,
lib/vagrant-libvirt/action/read_state.rb,
lib/vagrant-libvirt/util/erb_template.rb,
lib/vagrant-libvirt/util/network_util.rb,
lib/vagrant-libvirt/action/halt_domain.rb,
lib/vagrant-libvirt/action/is_suspended.rb,
lib/vagrant-libvirt/action/start_domain.rb,
lib/vagrant-libvirt/action/wait_till_up.rb,
lib/vagrant-libvirt/action/create_domain.rb,
lib/vagrant-libvirt/action/forward_ports.rb,
lib/vagrant-libvirt/action/forward_ports.rb,
lib/vagrant-libvirt/action/read_ssh_info.rb,
lib/vagrant-libvirt/action/resume_domain.rb,
lib/vagrant-libvirt/action/share_folders.rb,
lib/vagrant-libvirt/action/destroy_domain.rb,
lib/vagrant-libvirt/action/suspend_domain.rb,
lib/vagrant-libvirt/action/connect_libvirt.rb,
lib/vagrant-libvirt/action/create_networks.rb,
lib/vagrant-libvirt/action/destroy_networks.rb,
lib/vagrant-libvirt/action/handle_box_image.rb,
lib/vagrant-libvirt/action/prune_nfs_exports.rb,
lib/vagrant-libvirt/action/set_name_of_domain.rb,
lib/vagrant-libvirt/action/handle_storage_pool.rb,
lib/vagrant-libvirt/action/message_not_created.rb,
lib/vagrant-libvirt/action/message_not_running.rb,
lib/vagrant-libvirt/action/create_domain_volume.rb,
lib/vagrant-libvirt/action/prepare_nfs_settings.rb,
lib/vagrant-libvirt/action/message_not_suspended.rb,
lib/vagrant-libvirt/action/prepare_nfs_valid_ids.rb,
lib/vagrant-libvirt/action/message_already_created.rb,
lib/vagrant-libvirt/action/create_network_interfaces.rb

Defined Under Namespace

Modules: Action, Cap, Errors, Util Classes: Config, Plugin, Provider

Constant Summary collapse

VERSION =
'0.0.24'
@@libvirt_connection =

Hold connection handler so there is no need to connect more times than one. This can be annoying when there are more machines to create, or when doing state action first and then some other.

TODO Don't sure if this is the best solution

nil

Class Method Summary collapse

Class Method Details

.libvirt_connectionObject


17
18
19
# File 'lib/vagrant-libvirt.rb', line 17

def self.libvirt_connection
  @@libvirt_connection
end

.libvirt_connection=(conn) ⇒ Object


21
22
23
# File 'lib/vagrant-libvirt.rb', line 21

def self.libvirt_connection=(conn)
  @@libvirt_connection = conn
end

.source_rootObject


25
26
27
# File 'lib/vagrant-libvirt.rb', line 25

def self.source_root
  @source_root ||= Pathname.new(File.expand_path('../../', __FILE__))
end