CID-472: remove unused resources methods

This commit is contained in:
Anton Chuchkalov 2016-04-20 13:34:57 +03:00
parent 8f23862ef4
commit c77b382c33
2 changed files with 0 additions and 13 deletions

View File

@ -96,15 +96,6 @@ module Devops
self.stack_status = 'NOT_FOUND'
end
def resources
provider_instance.stack_resources(self)
end
# resource_id is logical
def resource(resource_id)
provider_instance.stack_resource(self, resource_id)
end
def template_body
stack_template_model.template_body
end

View File

@ -279,10 +279,6 @@ module Provider
}
end
def stack_resources(stack)
cloud_formation.describe_stack_resources({'StackName' => stack.name}).body['StackResources']
end
def stack_events(stack)
cloud_formation.describe_stack_events(stack.name).body['StackEvents'].map{|se| {"timestamp" => se["Timestamp"], "stack_name" => se["StackName"], "stack_id" => se["StackId"], "event_id" => se["EventId"], "reason" => se["ResourceStatusReason"], "status" => se["ResourceStatus"]}}.sort{|se1, se2| se1["timestamp"] <=> se2["timestamp"]}
end