Class: Fog::Compute::StormOnDemand::Templates

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/storm_on_demand/models/compute/templates.rb

Instance Method Summary collapse

Instance Method Details

#all(options = {}) ⇒ Object



12
13
14
15
# File 'lib/fog/storm_on_demand/models/compute/templates.rb', line 12

def all(options={})
  data = service.list_templates(options).body['items']
  load(data)
end

#get(template_id) ⇒ Object



17
18
19
20
# File 'lib/fog/storm_on_demand/models/compute/templates.rb', line 17

def get(template_id)
  tpl = service.get_template_details(:id => template_id).body
  new(tpl)
end