Sha256: c1d5451e01df099dfaf3439834d0eb6114fb2f9aee930283e0a15d4454996023
Contents?: true
Size: 651 Bytes
Versions: 25
Compression:
Stored size: 651 Bytes
Contents
require 'fog/ecloud/models/compute/node' module Fog module Compute class Ecloud class Nodes < Fog::Ecloud::Collection model Fog::Compute::Ecloud::Node attribute :href, :aliases => :Href def all check_href!( :messages => "the Nodes href of the Internet Service you want to enumerate" ) if data = connection.get_nodes(href).body[:NodeService] load(data) end end def get(uri) if data = connection.get_node(uri) new(data.body) end rescue Fog::Errors::NotFound nil end end end end end
Version data entries
25 entries across 25 versions & 7 rubygems