class Fog::Proxmox::Identity::Pools
class Pools Collection of pools of VMs
Public Instance Methods
all()
click to toggle source
# File lib/fog/proxmox/identity/models/pools.rb, line 28 def all pools_with_members = Array.new service.list_pools.each { |pool| pools_with_members.push(pool.merge(service.get_pool(pool["poolid"]))) } load pools_with_members end
destroy(id)
click to toggle source
# File lib/fog/proxmox/identity/models/pools.rb, line 38 def destroy(id) pool = get(id) pool.destroy end
get(id)
click to toggle source
# File lib/fog/proxmox/identity/models/pools.rb, line 34 def get(id) all.find { |pool| pool.identity === id } end