Class: Omc::Stack
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
Returns the value of attribute account.
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
- #apps ⇒ Object
- #execute_recipes(app, recipes: [], name: "execute_recipes") ⇒ Object
-
#initialize(account, attributes) ⇒ Stack
constructor
A new instance of Stack.
- #instances ⇒ Object
- #layers ⇒ Object
Constructor Details
#initialize(account, attributes) ⇒ Stack
Returns a new instance of Stack.
14 15 16 17 |
# File 'lib/omc/stack.rb', line 14 def initialize account, attributes @account = account @attributes = attributes end |
Instance Attribute Details
#account ⇒ Object (readonly)
Returns the value of attribute account.
8 9 10 |
# File 'lib/omc/stack.rb', line 8 def account @account end |
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
8 9 10 |
# File 'lib/omc/stack.rb', line 8 def attributes @attributes end |
Instance Method Details
#apps ⇒ Object
23 24 25 |
# File 'lib/omc/stack.rb', line 23 def apps @apps ||= describe(:apps).map{ |app| App.new(self, app) } end |
#execute_recipes(app, recipes: [], name: "execute_recipes") ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/omc/stack.rb', line 31 def execute_recipes(app, recipes: [], name: "execute_recipes") client.create_deployment( stack_id: self[:stack_id], app_id: app[:app_id], command: { name: name, args: { "recipes" => recipes } } ) end |