Sha256: 76c23d0b24360a6eeb628ad5ffd670b488eafd175f346c9a5aeafa7e173500e6

Contents?: true

Size: 603 Bytes

Versions: 15

Compression:

Stored size: 603 Bytes

Contents

module Stackster
  class StackFormater

    def initialize(args)
      @name = args[:name]
      @config = args[:config]
    end

    def display
      { 
        'attributes'      => stack_reader.attributes,
        'status'          => stack_reader.status,
        'outputs'         => stack_reader.outputs,
        'events'          => stack_reader.events(3),
        'resources'       => stack_reader.resources,
      }
    end

    private

    def stack_reader
      @stack_reader ||= StackReader.new :name   => @name,
                                        :config => @config
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
stackster-0.4.4 lib/stackster/stack/stack_formater.rb
stackster-0.4.3 lib/stackster/stack/stack_formater.rb
stackster-0.4.2 lib/stackster/stack/stack_formater.rb
stackster-0.4.1 lib/stackster/stack/stack_formater.rb
stackster-0.4.0 lib/stackster/stack/stack_formater.rb
stackster-0.3.2 lib/stackster/stack/stack_formater.rb
stackster-0.3.1 lib/stackster/stack/stack_formater.rb
stackster-0.3.0 lib/stackster/stack/stack_formater.rb
stackster-0.2.9 lib/stackster/stack/stack_formater.rb
stackster-0.2.8 lib/stackster/stack/stack_formater.rb
stackster-0.2.7 lib/stackster/stack/stack_formater.rb
stackster-0.2.6 lib/stackster/stack/stack_formater.rb
stackster-0.2.5 lib/stackster/stack/stack_formater.rb
stackster-0.2.4 lib/stackster/stack/stack_formater.rb
stackster-0.2.3 lib/stackster/stack/stack_formater.rb