Merge pull request #436 from electrofelix/parallel-ssh_info

allow query of ssh_info in parallel from other machines or user
This commit is contained in:
Dmitry Vasilets
2015-08-05 21:48:13 +02:00
30 changed files with 228 additions and 294 deletions

View File

@@ -7,20 +7,6 @@ module VagrantPlugins
autoload :Errors, lib_path.join('errors')
autoload :Util, lib_path.join('util')
# 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
@@libvirt_connection = nil
def self.libvirt_connection
@@libvirt_connection
end
def self.libvirt_connection=(conn)
@@libvirt_connection = conn
end
def self.source_root
@source_root ||= Pathname.new(File.expand_path('../../', __FILE__))
end