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

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/nodes.rb
michiels-fog-1.3.1 lib/fog/ecloud/models/compute/nodes.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/ecloud/models/compute/nodes.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/nodes.rb
fog-1.3.1 lib/fog/ecloud/models/compute/nodes.rb
fog-1.3.0 lib/fog/ecloud/models/compute/nodes.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/nodes.rb
fog-1.2.0 lib/fog/ecloud/models/compute/nodes.rb
ktheory-fog-1.1.2 lib/fog/ecloud/models/compute/nodes.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/nodes.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/nodes.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/nodes.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/nodes.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/nodes.rb
fog-1.1.2 lib/fog/ecloud/models/compute/nodes.rb
fog_tractical-1.1.4 lib/fog/ecloud/models/compute/nodes.rb
fog_tractical-1.1.3 lib/fog/ecloud/models/compute/nodes.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/nodes.rb
fog-1.1.1 lib/fog/ecloud/models/compute/nodes.rb
fog-1.1.0 lib/fog/ecloud/models/compute/nodes.rb