Sha256: 915e804ec2942b505d06ea1c96f19a29eb5f9612d7ec8352283babc9cba94f8b

Contents?: true

Size: 600 Bytes

Versions: 3

Compression:

Stored size: 600 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,
        'resources'       => stack_reader.resources,
      }
    end

    private

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

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stackster-0.2.2 lib/stackster/stack/stack_formater.rb
stackster-0.2.1 lib/stackster/stack/stack_formater.rb
stackster-0.2.0 lib/stackster/stack/stack_formater.rb