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