Sha256: 142fc3d99bd1d5ace1b07f92595f064aee52f8bb8b72df38e0b72f82e9b05e1b
Contents?: true
Size: 556 Bytes
Versions: 33
Compression:
Stored size: 556 Bytes
Contents
require 'fog/core/collection' require 'fog/brightbox/models/compute/server' module Fog module Compute class Brightbox class Servers < Fog::Collection model Fog::Compute::Brightbox::Server def all data = connection.list_servers load(data) end def get(identifier) return nil if identifier.nil? || identifier == "" data = connection.get_server(identifier) new(data) rescue Excon::Errors::NotFound nil end end end end end
Version data entries
33 entries across 33 versions & 10 rubygems