Class: StackMaster::Commands::Outputs
- Inherits:
-
Object
- Object
- StackMaster::Commands::Outputs
- Includes:
- Commander::UI, StackMaster::Command, TerminalHelper
- Defined in:
- lib/stack_master/commands/outputs.rb
Instance Method Summary collapse
-
#initialize(config, stack_definition, options = {}) ⇒ Outputs
constructor
A new instance of Outputs.
- #perform ⇒ Object
Methods included from TerminalHelper
#unix_window_size, #window_size, #windows_window_size
Methods included from StackMaster::Command
Constructor Details
#initialize(config, stack_definition, options = {}) ⇒ Outputs
Returns a new instance of Outputs.
10 11 12 13 |
# File 'lib/stack_master/commands/outputs.rb', line 10 def initialize(config, stack_definition, = {}) @config = config @stack_definition = stack_definition end |
Instance Method Details
#perform ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/stack_master/commands/outputs.rb', line 15 def perform if stack tp.set :max_width, self.window_size tp stack.outputs, :output_key, :output_value, :description else StackMaster.stdout.puts "Stack doesn't exist" end end |