Class: Fog::Rackspace::Orchestration::Templates
- Inherits:
-
Collection
- Object
- Collection
- Fog::Rackspace::Orchestration::Templates
- Defined in:
- lib/fog/rackspace/models/orchestration/templates.rb
Instance Method Summary collapse
Instance Method Details
#get(obj) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/rackspace/models/orchestration/templates.rb', line 9 def get(obj) data = if obj.is_a?(Stack) service.get_stack_template(obj).body else service.show_resource_template(obj.resource_name).body end new(data) rescue Fog::Rackspace::Orchestration::NotFound nil end |
#validate(options = {}) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/fog/rackspace/models/orchestration/templates.rb', line 21 def validate(={}) data = service.validate_template().body temp = new temp.parameters = data['Parameters'] temp.description = data['Description'] temp end |