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

#find_clustercompute_or_compute_resource, #get_compute_resource, #get_customization_spec_info_by_name, #get_datacenter, #get_datastore, #get_network_by_name, #get_resource_pool, #get_vm_by_uuid

Constructor Details

#initialize(app, _env) ⇒ GetSshInfo

Returns a new instance of GetSshInfo.



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

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

Instance Method Details

#call(env) ⇒ Object



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

def call(env)
  env[:machine_ssh_info] = get_ssh_info(env[:vSphere_connection], env[:machine])
  @app.call env
end