mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
9d78d29a19
* moved to using requests * added vm nic/nics * kept compatability with the existing interfaces * moved util classes into util subdir Signed-off-by: Amos Benari <abenari@redhat.com>
23 lines
359 B
Ruby
23 lines
359 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(connection.get_node_info)
|
|
end
|
|
|
|
def get
|
|
all.first
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|