module Fog::Vcloud::Compute::Helpers::Status
Public Instance Methods
friendly_status()
click to toggle source
# File lib/fog/vcloud/models/compute/helpers/status.rb, line 6 def friendly_status load_unless_loaded! case status when '0' 'creating' when '8' 'off' when '4' 'on' else 'unknown' end end
off?()
click to toggle source
# File lib/fog/vcloud/models/compute/helpers/status.rb, line 25 def off? reload_status status == '8' end
on?()
click to toggle source
# File lib/fog/vcloud/models/compute/helpers/status.rb, line 20 def on? reload_status status == '4' end
reload_status()
click to toggle source
# File lib/fog/vcloud/models/compute/helpers/status.rb, line 30 def reload_status reload # always ensure we have the correct status end