Sha256: 4363010ad7ac0cd573bf7dc5ceb1c5aa787c492a7cdf6e517a39328780b7231d
Contents?: true
Size: 597 Bytes
Versions: 33
Compression:
Stored size: 597 Bytes
Contents
require 'fog/openstack/models/collection' require 'fog/key_manager/openstack/models/container' module Fog module KeyManager class OpenStack class Containers < Fog::OpenStack::Collection model Fog::KeyManager::OpenStack::Container def all(options = {}) load_response(service.list_containers(options), 'containers') end def get(secret_ref) if secret = service.get_container(secret_ref).body new(secret) end rescue Fog::Compute::OpenStack::NotFound nil end end end end end
Version data entries
33 entries across 31 versions & 3 rubygems