lib/aws-cleaner.rb
# return the instance_id of the terminated instance
return the instance_id of the terminated instance
return the instance_id of the terminated instance
def process_message(message_body)
    return false if message_body['detail']['instance-id'].nil? &&
      message_body['detail']['state'] != 'terminated'
    instance_id = message_body['detail']['instance-id']
    instance_id
  end
def process_message ( message_body ) return false if message_body [ 'detail' ] [ 'instance-id' ] . nil? && message_body [ 'detail' ] [ 'state' ] != 'terminated' instance_id = message_body [ 'detail' ] [ 'instance-id' ] instance_id end
return the instance_id of the terminated instance
return the instance_id of the terminated instance
message_body
<not_specific>