Class: VagrantPlugins::VSphereDDNS::Action::GetSshInfo
- Inherits:
-
Object
- Object
- VagrantPlugins::VSphereDDNS::Action::GetSshInfo
- Includes:
- VagrantPlugins::VSphere::Util::VimHelpers
- Defined in:
- lib/vagrant-vsphere-ddns/action/get_ssh_info.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ GetSshInfo
constructor
A new instance of GetSshInfo.
Constructor Details
#initialize(app, env) ⇒ GetSshInfo
Returns a new instance of GetSshInfo.
10 11 12 13 |
# File 'lib/vagrant-vsphere-ddns/action/get_ssh_info.rb', line 10 def initialize(app, env) @app = app @logger = Log4r::Logger.new("vagrant::vsphere-ddns::get_ssh_info") end |
Instance Method Details
#call(env) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/vagrant-vsphere-ddns/action/get_ssh_info.rb', line 15 def call(env) env[:machine_ssh_info] = get_ssh_info(env[:vSphere_connection], env[:machine]) if !env[:machine_ssh_info].nil? @logger.debug("SSH info: #{env[:machine_ssh_info]}") else @logger.debug("SSH info is nil") end @app.call env end |