# 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