class StackMaster::Commands::Resources
Public Instance Methods
perform()
click to toggle source
# File lib/stack_master/commands/resources.rb, line 9 def perform if stack_resources tp stack_resources, :logical_resource_id, :resource_type, :timestamp, :resource_status, :resource_status_reason, :description else failed("Stack doesn't exist") end end
Private Instance Methods
cf()
click to toggle source
# File lib/stack_master/commands/resources.rb, line 25 def cf @cf ||= StackMaster.cloud_formation_driver end
stack_resources()
click to toggle source
# File lib/stack_master/commands/resources.rb, line 19 def stack_resources @stack_resources ||= cf.describe_stack_resources(stack_name: @stack_definition.stack_name).stack_resources rescue Aws::CloudFormation::Errors::ValidationError nil end