Class: Fog::Rackspace::Orchestration::Stacks
- Inherits:
-
Collection
- Object
- Collection
- Fog::Rackspace::Orchestration::Stacks
- Defined in:
- lib/fog/rackspace/models/orchestration/stacks.rb
Instance Method Summary collapse
- #adopt(options = {}) ⇒ Object
- #all(options = {}) ⇒ Object
- #build_info ⇒ Object
- #create(options = {}) ⇒ Object
- #get(name, id) ⇒ Object
- #preview(options = {}) ⇒ Object
Instance Method Details
#adopt(options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/rackspace/models/orchestration/stacks.rb', line 21 def adopt(={}) service.create_stack() end |
#all(options = {}) ⇒ Object
9 10 11 12 |
# File 'lib/fog/rackspace/models/orchestration/stacks.rb', line 9 def all(={}) data = service.list_stack_data().body['stacks'] load(data) end |
#build_info ⇒ Object
34 35 36 |
# File 'lib/fog/rackspace/models/orchestration/stacks.rb', line 34 def build_info service.build_info.body end |
#create(options = {}) ⇒ Object
25 26 27 |
# File 'lib/fog/rackspace/models/orchestration/stacks.rb', line 25 def create(={}) service.create_stack().body['stack'] end |
#get(name, id) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/fog/rackspace/models/orchestration/stacks.rb', line 14 def get(name, id) data = service.show_stack_details(name, id).body['stack'] new(data) rescue Fog::Rackspace::Orchestration::NotFound nil end |
#preview(options = {}) ⇒ Object
29 30 31 32 |
# File 'lib/fog/rackspace/models/orchestration/stacks.rb', line 29 def preview(={}) data = service.preview_stack().body['stack'] new(data) end |