Class: OpsWorks::App
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Methods inherited from Resource
Constructor Details
This class inherits a constructor from OpsWorks::Resource
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/opsworks/app.rb', line 6 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/opsworks/app.rb', line 6 def name @name end |
Instance Method Details
#deployments ⇒ Object
8 9 10 11 |
# File 'lib/opsworks/app.rb', line 8 def deployments @deployments ||= initialize_deployments @deployments || [] end |
#last_deployment ⇒ Object
13 14 15 |
# File 'lib/opsworks/app.rb', line 13 def last_deployment deployments.find(&:success?) end |