Class: OpsworksHelpers::App

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from OpsworksResource

#initialize, #inspect, #name

Constructor Details

This class inherits a constructor from OpsworksHelpers::OpsworksResource

Class Method Details

.all(stack_id) ⇒ Object



4
5
6
# File 'lib/opsworks_helpers/app.rb', line 4

def self.all(stack_id)
  new.all(stack_id)
end

Instance Method Details

#all(stack_id) ⇒ Object



8
9
10
11
12
# File 'lib/opsworks_helpers/app.rb', line 8

def all(stack_id)
  opsworks.describe_apps(stack_id: stack_id).apps.map do |app|
    self.class.new(app)
  end
end

#idObject



14
15
16
# File 'lib/opsworks_helpers/app.rb', line 14

def id
  opsworks_resource.app_id
end