Class: StackMaster::Commands::Outputs

Inherits:
Object
  • Object
show all
Includes:
Commander::UI, StackMaster::Command
Defined in:
lib/stack_master/commands/outputs.rb

Instance Method Summary collapse

Methods included from StackMaster::Command

included

Constructor Details

#initialize(config, stack_definition, options = {}) ⇒ Outputs

Returns a new instance of Outputs.



7
8
9
10
# File 'lib/stack_master/commands/outputs.rb', line 7

def initialize(config, stack_definition, options = {})
  @config = config
  @stack_definition = stack_definition
end

Instance Method Details

#performObject



12
13
14
15
16
17
18
19
# File 'lib/stack_master/commands/outputs.rb', line 12

def perform
  if stack
    tp.set :max_width, 80
    tp stack.outputs, :output_key, :output_value, :description
  else
    StackMaster.stdout.puts "Stack doesn't exist"
  end
end