Sha256: 62cb90892ec1ab771b498faa2912764cf87dbb71983b54057d7539260fed0fea
Contents?: true
Size: 575 Bytes
Versions: 4
Compression:
Stored size: 575 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 = service.list_server_groups load(data) end def get(identifier) return nil if identifier.nil? || identifier == "" data = service.get_server_group(identifier) new(data) rescue Excon::Errors::NotFound nil end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems