module Deltacloud::EC2::ResultHelper

Public Instance Methods

instance_state_code(state) click to toggle source
# File lib/ec2/helpers/result.rb, line 19
def instance_state_code(state)
  case state
    when 'running' then '16'
    when 'pending' then '0'
    when 'stopping' then '64'
    when 'stopped' then '80'
    when 'shutting-down' then '32'
    else '-1'
  end
end