Class: VagrantPlugins::VSphere::Action::GetSshInfo

Inherits:
Object
  • Object
show all
Includes:
Util::VimHelpers
Defined in:
lib/vSphere/action/get_ssh_info.rb

Instance Method Summary collapse

Methods included from Util::VimHelpers

#get_customization_spec_info_by_name, #get_datacenter, #get_datastore, #get_resource_pool, #get_vm_by_uuid

Constructor Details

#initialize(app, env) ⇒ GetSshInfo

Returns a new instance of GetSshInfo.



11
12
13
# File 'lib/vSphere/action/get_ssh_info.rb', line 11

def initialize(app, env)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



15
16
17
18
19
# File 'lib/vSphere/action/get_ssh_info.rb', line 15

def call(env)
  env[:machine_ssh_info] = get_ssh_info(env[:vSphere_connection], env[:machine])

  @app.call env
end