module StackMaster
  module Commands
    class Outputs
      include Command
      include Commander::UI

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

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

      private

      def stack
        @stack ||= Stack.find(@stack_definition.region, @stack_definition.stack_name)
      end
    end
  end
end

module StackMaster
  module Commands
    class Outputs
      include Command
      include Commander::UI

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

      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

      private

      def stack
        @stack ||= Stack.find(@stack_definition.region, @stack_definition.stack_name)
      end
    end
  end
end

Increase the maximum allowed width of output
Increase the maximum allowed width of output
