class Fog::Compute::Proxmox::Disk

class Disk model

Public Instance Methods

cdrom?() click to toggle source
# File lib/fog/compute/proxmox/models/disk.rb, line 50
def cdrom?
  id == 'ide2' && media == 'cdrom'
end
controller() click to toggle source
# File lib/fog/compute/proxmox/models/disk.rb, line 42
def controller
  Fog::Proxmox::DiskHelper.extract_controller(id)
end
controller?() click to toggle source
# File lib/fog/compute/proxmox/models/disk.rb, line 62
def controller?
  id.match(/(scsi|ide|sata|virtio)(\d+)/)
end
device() click to toggle source
# File lib/fog/compute/proxmox/models/disk.rb, line 46
def device
  Fog::Proxmox::DiskHelper.extract_device(id)
end
flatten() click to toggle source
# File lib/fog/compute/proxmox/models/disk.rb, line 66
def flatten
  Fog::Proxmox::DiskHelper.flatten(attributes)
end
mount_point?() click to toggle source
# File lib/fog/compute/proxmox/models/disk.rb, line 58
def mount_point?
  id.match(/(mp)(\d+)/)
end
rootfs?() click to toggle source
# File lib/fog/compute/proxmox/models/disk.rb, line 54
def rootfs?
  id == 'rootfs'
end