1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/libvirt/models/compute/nodes.rb
2013-01-07 21:01:15 +00:00

23 lines
356 B
Ruby

require 'fog/core/collection'
require 'fog/libvirt/models/compute/node'
module Fog
module Compute
class Libvirt
class Nodes < Fog::Collection
model Fog::Compute::Libvirt::Node
def all(filter={ })
load(service.get_node_info)
end
def get
all.first
end
end
end
end
end