Method: Vcloud::Core::Vapp#power_on

Defined in:
lib/vcloud/core/vapp.rb

#power_onBoolean

Power on vApp

Returns:

  • (Boolean)

    Returns true if the VM is running, false otherwise



160
161
162
163
164
165
# File 'lib/vcloud/core/vapp.rb', line 160

def power_on
  raise "Cannot power on a missing vApp." unless id
  return true if running?
  Vcloud::Core::Fog::ServiceInterface.new.power_on_vapp(id)
  running?
end