Class: OpsworksHelpers::Stack

Inherits:
OpsworksResource show all
Defined in:
lib/opsworks_helpers/stack.rb

Instance Method Summary collapse

Methods inherited from OpsworksResource

all, #initialize, #inspect, #name

Constructor Details

This class inherits a constructor from OpsworksHelpers::OpsworksResource

Instance Method Details

#allObject



4
5
6
7
8
# File 'lib/opsworks_helpers/stack.rb', line 4

def all
  opsworks.describe_stacks.stacks.map do |stack|
    self.class.new(stack)
  end
end

#idObject



10
11
12
# File 'lib/opsworks_helpers/stack.rb', line 10

def id
  opsworks_resource.stack_id
end