Sha256: 88b41c51483152587fafe8140f9648816490c95d942dbb82671ea70e8e519616
Contents?: true
Size: 499 Bytes
Versions: 17
Compression:
Stored size: 499 Bytes
Contents
require 'fog/core/collection' require 'fog/ibm/models/compute/server' module Fog module Compute class IBM class Servers < Fog::Collection model Fog::Compute::IBM::Server def all load(connection.list_instances.body['instances']) end def get(server_id) begin new(connection.get_instance(server_id).body) rescue Fog::Compute::IBM::NotFound nil end end end end end end
Version data entries
17 entries across 17 versions & 9 rubygems