Sha256: a1b3c615d0a9a7f98d460b35a7ef3810df09b6d0f0afccd8b0095885c48b0bcd

Contents?: true

Size: 584 Bytes

Versions: 38

Compression:

Stored size: 584 Bytes

Contents

require 'fog/core/collection'
require 'fog/brightbox/models/compute/server_group'

module Fog
  module Compute
    class Brightbox

      class ServerGroups < Fog::Collection

        model Fog::Compute::Brightbox::ServerGroup

        def all
          data = connection.list_server_groups
          load(data)
        end

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

      end

    end
  end
end

Version data entries

38 entries across 38 versions & 13 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/brightbox/models/compute/server_groups.rb
fog-nirvanix-1.8.1 lib/fog/brightbox/models/compute/server_groups.rb
fog-parser-fix-1.6.1 lib/fog/brightbox/models/compute/server_groups.rb
fog-test-again-1.6.0 lib/fog/brightbox/models/compute/server_groups.rb
fog-parser-fix-1.6.0 lib/fog/brightbox/models/compute/server_groups.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/brightbox/models/compute/server_groups.rb
fog-sgonyea-1.8.1 lib/fog/brightbox/models/compute/server_groups.rb
fog-1.8.0 lib/fog/brightbox/models/compute/server_groups.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/brightbox/models/compute/server_groups.rb
fog-1.7.0 lib/fog/brightbox/models/compute/server_groups.rb
fog-1.6.0 lib/fog/brightbox/models/compute/server_groups.rb
fog-1.5.0 lib/fog/brightbox/models/compute/server_groups.rb
fog-1.4.0 lib/fog/brightbox/models/compute/server_groups.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/brightbox/models/compute/server_groups.rb
michiels-fog-1.3.1 lib/fog/brightbox/models/compute/server_groups.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/brightbox/models/compute/server_groups.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/brightbox/models/compute/server_groups.rb
fog-1.3.1 lib/fog/brightbox/models/compute/server_groups.rb
fog-1.3.0 lib/fog/brightbox/models/compute/server_groups.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/brightbox/models/compute/server_groups.rb