Class: Omc::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/omc/account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(credentials) ⇒ Account

Returns a new instance of Account.



7
8
9
# File 'lib/omc/account.rb', line 7

def initialize(credentials)
  @client = ::AWS::OpsWorks::Client.new(credentials)
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



5
6
7
# File 'lib/omc/account.rb', line 5

def client
  @client
end

Instance Method Details

#stacksObject



11
12
13
14
15
# File 'lib/omc/account.rb', line 11

def stacks
  @stacks ||= client.describe_stacks[:stacks].map do |stack|
    Stack.new(self, stack)
  end
end