Sha256: 319f155a5a5eb1212f2bd3a220b8f36eae2911c8acbb14c472b6ff82bd7c78e8
Contents?: true
Size: 456 Bytes
Versions: 57
Compression:
Stored size: 456 Bytes
Contents
require 'fog/core/collection' require 'fog/openstack/models/orchestration/stack' module Fog module Orchestration class OpenStack class Stacks < Fog::Collection model Fog::Orchestration::OpenStack::Stack def all load(service.list_stacks.body['stacks']) end def find_by_id(id) self.find {|stack| stack.id == id} end alias_method :get, :find_by_id end end end end
Version data entries
57 entries across 57 versions & 5 rubygems