Class: SimpleDeploy::StackFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_deploy/stack/stack_formatter.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ StackFormatter

Returns a new instance of StackFormatter.



4
5
6
7
# File 'lib/simple_deploy/stack/stack_formatter.rb', line 4

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

Instance Method Details

#displayObject



9
10
11
12
13
14
15
16
17
# File 'lib/simple_deploy/stack/stack_formatter.rb', line 9

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