class Fog::OpenStack::Baremetal::Nodes

Public Instance Methods

all(options = {}) click to toggle source
# File lib/fog/openstack/baremetal/models/nodes.rb, line 10
def all(options = {})
  load_response(service.list_nodes_detailed(options), 'nodes')
end
destroy(uuid) click to toggle source
# File lib/fog/openstack/baremetal/models/nodes.rb, line 29
def destroy(uuid)
  node = find_by_uuid(uuid)
  node.destroy
end
details(options = {}) click to toggle source
# File lib/fog/openstack/baremetal/models/nodes.rb, line 18
def details(options = {})
  Fog::Logger.deprecation("Calling OpenStack[:baremetal].nodes.details will be removed, "\
                          " call .nodes.all for detailed list.")
  load(service.list_nodes_detailed(options).body['nodes'])
end
find_by_uuid(uuid) click to toggle source
# File lib/fog/openstack/baremetal/models/nodes.rb, line 24
def find_by_uuid(uuid)
  new(service.get_node(uuid).body)
end
Also aliased as: get
get(uuid)
Alias for: find_by_uuid
method_missing(method_sym, *arguments, &block) click to toggle source
Calls superclass method
# File lib/fog/openstack/baremetal/models/nodes.rb, line 34
def method_missing(method_sym, *arguments, &block)
  if method_sym.to_s =~ /^find_by_(.*)$/
    load(service.list_nodes_detailed($1 => arguments.first).body['nodes'])
  else
    super
  end
end
summary(options = {}) click to toggle source
# File lib/fog/openstack/baremetal/models/nodes.rb, line 14
def summary(options = {})
  load_response(service.list_nodes(options), 'nodes')
end