Sha256: bb7973fb9cbcf320234b814b4c7f9a2fcfd8b67c21888e6258840f8e1723c488
Contents?: true
Size: 651 Bytes
Versions: 7
Compression:
Stored size: 651 Bytes
Contents
require 'fog/compute/models/ecloud/node' module Fog module Ecloud class Compute class Nodes < Fog::Ecloud::Collection model Fog::Ecloud::Compute::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
7 entries across 7 versions & 1 rubygems