Sha256: 8cbc087e275143d172e3e334426c6d38a8df911c7d2690147a319803cbadb27a
Contents?: true
Size: 686 Bytes
Versions: 132
Compression:
Stored size: 686 Bytes
Contents
module Fog module Vcloud class Compute module Helpers module Status def friendly_status load_unless_loaded! case status when '0' 'creating' when '8' 'off' when '4' 'on' else 'unknown' end end def on? reload_status status == '4' end def off? reload_status status == '8' end def reload_status reload # always ensure we have the correct status end end end end end end
Version data entries
132 entries across 130 versions & 21 rubygems