Module: FogExtensions::Proxmox::ServerConfig

Extended by:
ActiveSupport::Concern
Defined in:
app/models/concerns/fog_extensions/proxmox/server_config.rb

Instance Method Summary collapse

Instance Method Details

#cdromObject



35
36
37
# File 'app/models/concerns/fog_extensions/proxmox/server_config.rb', line 35

def cdrom
    %w[none cdrom].include?(disks.cdrom.volid) ? disks.cdrom.volid : 'image'
end

#cdrom_imageObject



44
45
46
# File 'app/models/concerns/fog_extensions/proxmox/server_config.rb', line 44

def cdrom_image
    %w[none cdrom].include?(disks.cdrom.volid) ? disks.cdrom.volid : 'image'
end

#cdrom_isoObject



41
42
43
# File 'app/models/concerns/fog_extensions/proxmox/server_config.rb', line 41

def cdrom_iso
    disks.cdrom.volid
end

#cdrom_storageObject



38
39
40
# File 'app/models/concerns/fog_extensions/proxmox/server_config.rb', line 38

def cdrom_storage
    disks.cdrom.storage
end

#cpu_typeObject



26
27
28
# File 'app/models/concerns/fog_extensions/proxmox/server_config.rb', line 26

def cpu_type
    Fog::Proxmox::CpuHelper.extract_type(cpu)
end

#pcidObject



32
33
34
# File 'app/models/concerns/fog_extensions/proxmox/server_config.rb', line 32

def pcid
    Fog::Proxmox::CpuHelper.extract_pcid(cpu)
end

#spectreObject



29
30
31
# File 'app/models/concerns/fog_extensions/proxmox/server_config.rb', line 29

def spectre
    Fog::Proxmox::CpuHelper.extract_spectre(cpu)
end