CID-472: remove unused resources methods
This commit is contained in:
parent
8f23862ef4
commit
c77b382c33
@ -96,15 +96,6 @@ module Devops
|
|||||||
self.stack_status = 'NOT_FOUND'
|
self.stack_status = 'NOT_FOUND'
|
||||||
end
|
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
|
def template_body
|
||||||
stack_template_model.template_body
|
stack_template_model.template_body
|
||||||
end
|
end
|
||||||
|
|||||||
@ -279,10 +279,6 @@ module Provider
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
def stack_resources(stack)
|
|
||||||
cloud_formation.describe_stack_resources({'StackName' => stack.name}).body['StackResources']
|
|
||||||
end
|
|
||||||
|
|
||||||
def stack_events(stack)
|
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"]}
|
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
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user