class Fog::Compute::Proxmox::Disks
class Disks Collection of disk
Public Instance Methods
all()
click to toggle source
# File lib/fog/compute/proxmox/models/disks.rb, line 28 def all self end
cdrom()
click to toggle source
# File lib/fog/compute/proxmox/models/disks.rb, line 40 def cdrom find(&:cdrom?) end
get(id)
click to toggle source
# File lib/fog/compute/proxmox/models/disks.rb, line 32 def get(id) all.find { |disk| disk.identity === id } end
next_device(controller)
click to toggle source
# File lib/fog/compute/proxmox/models/disks.rb, line 36 def next_device(controller) Fog::Proxmox::ControllerHelper.last_index(controller, self) + 1 end
rootfs()
click to toggle source
# File lib/fog/compute/proxmox/models/disks.rb, line 44 def rootfs find(&:rootfs?) end