Module: FogExtensions::Proxmox::ServerConfig
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/fog_extensions/proxmox/server_config.rb
Instance Method Summary collapse
- #cdrom ⇒ Object
- #cdrom_image ⇒ Object
- #cdrom_iso ⇒ Object
- #cdrom_storage ⇒ Object
- #cpu_type ⇒ Object
- #pcid ⇒ Object
- #spectre ⇒ Object
Instance Method Details
#cdrom ⇒ Object
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_image ⇒ Object
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_iso ⇒ Object
41 42 43 |
# File 'app/models/concerns/fog_extensions/proxmox/server_config.rb', line 41 def cdrom_iso disks.cdrom.volid end |
#cdrom_storage ⇒ Object
38 39 40 |
# File 'app/models/concerns/fog_extensions/proxmox/server_config.rb', line 38 def cdrom_storage disks.cdrom.storage end |
#cpu_type ⇒ Object
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 |
#pcid ⇒ Object
32 33 34 |
# File 'app/models/concerns/fog_extensions/proxmox/server_config.rb', line 32 def pcid Fog::Proxmox::CpuHelper.extract_pcid(cpu) end |
#spectre ⇒ Object
29 30 31 |
# File 'app/models/concerns/fog_extensions/proxmox/server_config.rb', line 29 def spectre Fog::Proxmox::CpuHelper.extract_spectre(cpu) end |