Class: StackMaster::Commands::Resources
- Inherits:
-
Object
- Object
- StackMaster::Commands::Resources
- Includes:
- Commander::UI, StackMaster::Command
- Defined in:
- lib/stack_master/commands/resources.rb
Instance Method Summary collapse
-
#initialize(config, stack_definition, options = {}) ⇒ Resources
constructor
A new instance of Resources.
- #perform ⇒ Object
Methods included from StackMaster::Command
Constructor Details
#initialize(config, stack_definition, options = {}) ⇒ Resources
Returns a new instance of Resources.
7 8 9 10 |
# File 'lib/stack_master/commands/resources.rb', line 7 def initialize(config, stack_definition, = {}) @config = config @stack_definition = stack_definition end |
Instance Method Details
#perform ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/stack_master/commands/resources.rb', line 12 def perform if stack_resources tp stack_resources, :logical_resource_id, :resource_type, :timestamp, :resource_status, :resource_status_reason, :description else StackMaster.stdout.puts "Stack doesn't exist" end end |