2011-06-28 09:47:16 -04:00
|
|
|
require 'fog/core/collection'
|
2011-08-29 11:24:39 -04:00
|
|
|
require 'fog/libvirt/models/compute/pool'
|
2011-06-28 09:47:16 -04:00
|
|
|
|
|
|
|
module Fog
|
|
|
|
module Compute
|
|
|
|
class Libvirt
|
|
|
|
|
|
|
|
class Pools < Fog::Collection
|
|
|
|
|
|
|
|
model Fog::Compute::Libvirt::Pool
|
|
|
|
|
2012-04-04 08:03:17 -04:00
|
|
|
def all(filter = {})
|
|
|
|
load(connection.list_pools(filter))
|
2011-06-28 09:47:16 -04:00
|
|
|
end
|
|
|
|
|
2011-08-03 06:48:44 -04:00
|
|
|
def get(uuid)
|
|
|
|
self.all(:uuid => uuid).first
|
2011-08-01 08:00:13 -04:00
|
|
|
end
|
2011-08-08 17:22:55 -04:00
|
|
|
|
2012-04-04 08:03:17 -04:00
|
|
|
end
|
2011-06-28 09:47:16 -04:00
|
|
|
|
2012-04-04 08:03:17 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|