Class: Stackster::StackFormater

Inherits:
Object
  • Object
show all
Defined in:
lib/stackster/stack/stack_formater.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ StackFormater

Returns a new instance of StackFormater.



4
5
6
7
# File 'lib/stackster/stack/stack_formater.rb', line 4

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

Instance Method Details

#displayObject



9
10
11
12
13
14
15
16
17
# File 'lib/stackster/stack/stack_formater.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