Sha256: 6034e8c53f6a803ecf354a420f8e9e94dcace80a25550a6b5de075499315252a

Contents?: true

Size: 552 Bytes

Versions: 24

Compression:

Stored size: 552 Bytes

Contents

module SimpleDeploy
  class StackFormatter

    def initialize(args)
      @name = args[:name]
      @config = SimpleDeploy.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
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
simple_deploy-0.10.2 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.10.1 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.10.0 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.10.0.beta.3 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.10.0.beta.2 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.10.0.beta.1 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.9.2 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.9.1 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.9.0 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.8.2 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.8.2.beta1 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.8.1.beta1 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.8.0 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.7.8 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.7.7 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.7.7.beta.1 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.7.6 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.7.6.beta.6 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.7.6.beta.5 lib/simple_deploy/stack/stack_formatter.rb
simple_deploy-0.7.6.beta.3 lib/simple_deploy/stack/stack_formatter.rb