Sha256: 9bb6fae6316637ab9c6c2e15c9ed4c7b5185e9bd492b606c22f4db74e79ce9f3
Contents?: true
Size: 556 Bytes
Versions: 7
Compression:
Stored size: 556 Bytes
Contents
require 'fog/core/collection' require 'fog/compute/models/brightbox/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
7 entries across 7 versions & 3 rubygems