class Fog::Rackspace::Orchestration::Stacks
Public Instance Methods
adopt(options={})
click to toggle source
# File lib/fog/rackspace/models/orchestration/stacks.rb, line 21 def adopt(options={}) service.create_stack(options) end
all(options={})
click to toggle source
# File lib/fog/rackspace/models/orchestration/stacks.rb, line 9 def all(options={}) data = service.list_stack_data(options).body['stacks'] load(data) end
build_info()
click to toggle source
# File lib/fog/rackspace/models/orchestration/stacks.rb, line 34 def build_info service.build_info.body end
create(options={})
click to toggle source
# File lib/fog/rackspace/models/orchestration/stacks.rb, line 25 def create(options={}) service.create_stack(options).body['stack'] end
get(name, id)
click to toggle source
# 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={})
click to toggle source
# File lib/fog/rackspace/models/orchestration/stacks.rb, line 29 def preview(options={}) data = service.preview_stack(options).body['stack'] new(data) end