Module: VagrantPlugins::Skytap::Action::ActionHelpers

Included in:
DeleteVm, ExistenceCheck, PrepareNFSSettings, ReadState, RunEnvironment, RunVm, SetHostname, StopVm, SuspendVm, UpdateHardware
Defined in:
lib/vagrant-skytap/action/action_helpers.rb

Instance Method Summary collapse

Instance Method Details

#current_vm(env) ⇒ Object



27
28
29
30
31
# File 'lib/vagrant-skytap/action/action_helpers.rb', line 27

def current_vm(env)
  if env[:environment] && env[:machine]
    env[:environment].get_vms_by_id([env[:machine].id]).first
  end
end