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