Class: VagrantPlugins::VSphere::Action::GetSshInfo
- Inherits:
-
Object
- Object
- VagrantPlugins::VSphere::Action::GetSshInfo
- Includes:
- Util::VimHelpers
- Defined in:
- lib/vSphere/action/get_ssh_info.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, _env) ⇒ GetSshInfo
constructor
A new instance of GetSshInfo.
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.
10 11 12 |
# File 'lib/vSphere/action/get_ssh_info.rb', line 10 def initialize(app, _env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
14 15 16 17 18 |
# File 'lib/vSphere/action/get_ssh_info.rb', line 14 def call(env) env[:machine_ssh_info] = get_ssh_info(env[:vSphere_connection], env[:machine]) @app.call env end |