Sha256: a7b54320d246f14cc757949683efd312114e100939fadd2338990718e136a71b

Contents?: true

Size: 484 Bytes

Versions: 11

Compression:

Stored size: 484 Bytes

Contents

module Fog
  module Brightbox
    class Compute
      class ConfigMaps < Fog::Collection
        model Fog::Brightbox::Compute::ConfigMap

        def all
          data = service.list_config_maps
          load(data)
        end

        def get(identifier)
          return nil if identifier.nil? || identifier == ""
          data = service.get_config_map(identifier)
          new(data)
        rescue Excon::Errors::NotFound
          nil
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fog-brightbox-1.11.0 lib/fog/brightbox/models/compute/config_maps.rb
fog-brightbox-1.10.0 lib/fog/brightbox/models/compute/config_maps.rb
fog-brightbox-1.9.1 lib/fog/brightbox/models/compute/config_maps.rb
fog-brightbox-1.9.0 lib/fog/brightbox/models/compute/config_maps.rb
fog-brightbox-1.8.2 lib/fog/brightbox/models/compute/config_maps.rb
fog-brightbox-1.8.1 lib/fog/brightbox/models/compute/config_maps.rb
fog-brightbox-1.8.0 lib/fog/brightbox/models/compute/config_maps.rb
fog-brightbox-1.7.3 lib/fog/brightbox/models/compute/config_maps.rb
fog-brightbox-1.7.2 lib/fog/brightbox/models/compute/config_maps.rb
fog-brightbox-1.7.1 lib/fog/brightbox/models/compute/config_maps.rb
fog-brightbox-1.7.0 lib/fog/brightbox/models/compute/config_maps.rb