Class: Fog::Orchestration::OpenStack::Stacks

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/openstack/models/orchestration/stacks.rb

Instance Method Summary collapse

Instance Method Details

#allObject



10
11
12
# File 'lib/fog/openstack/models/orchestration/stacks.rb', line 10

def all
  load(service.list_stacks.body['stacks'])
end

#find_by_id(id) ⇒ Object Also known as: get



14
15
16
# File 'lib/fog/openstack/models/orchestration/stacks.rb', line 14

def find_by_id(id)
  self.find {|stack| stack.id == id}
end