class Fog::Compute::Proxmox::Disks

class Disks Collection of disk

Public Instance Methods

all(_options = {}) click to toggle source
# File lib/fog/compute/proxmox/models/disks.rb, line 29
def all(_options = {})
  self
end
cdrom() click to toggle source
# File lib/fog/compute/proxmox/models/disks.rb, line 42
def cdrom
  find(&:cdrom?)
end
get(id) click to toggle source
# File lib/fog/compute/proxmox/models/disks.rb, line 33
def get(id)
  cached_disk = find { |disk| disk.id == id }
  return cached_disk if cached_disk
end
next_device(controller) click to toggle source
# File lib/fog/compute/proxmox/models/disks.rb, line 38
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 46
def rootfs
  find(&:rootfs?)
end