Module: FogExtensions::Proxmox::Disk
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/fog_extensions/proxmox/disk.rb
Instance Attribute Summary collapse
-
#cipassword ⇒ Object
Returns the value of attribute cipassword.
-
#ciuser ⇒ Object
Returns the value of attribute ciuser.
-
#nameserver ⇒ Object
Returns the value of attribute nameserver.
-
#searchdomain ⇒ Object
Returns the value of attribute searchdomain.
-
#sshkeys ⇒ Object
Returns the value of attribute sshkeys.
Instance Method Summary collapse
Instance Attribute Details
#cipassword ⇒ Object
Returns the value of attribute cipassword.
25 26 27 |
# File 'app/models/concerns/fog_extensions/proxmox/disk.rb', line 25 def cipassword @cipassword end |
#ciuser ⇒ Object
Returns the value of attribute ciuser.
25 26 27 |
# File 'app/models/concerns/fog_extensions/proxmox/disk.rb', line 25 def ciuser @ciuser end |
#nameserver ⇒ Object
Returns the value of attribute nameserver.
25 26 27 |
# File 'app/models/concerns/fog_extensions/proxmox/disk.rb', line 25 def nameserver @nameserver end |
#searchdomain ⇒ Object
Returns the value of attribute searchdomain.
25 26 27 |
# File 'app/models/concerns/fog_extensions/proxmox/disk.rb', line 25 def searchdomain @searchdomain end |
#sshkeys ⇒ Object
Returns the value of attribute sshkeys.
25 26 27 |
# File 'app/models/concerns/fog_extensions/proxmox/disk.rb', line 25 def sshkeys @sshkeys end |
Instance Method Details
#cdrom ⇒ Object
33 34 35 36 37 |
# File 'app/models/concerns/fog_extensions/proxmox/disk.rb', line 33 def cdrom return 'none' unless cdrom? || volid.nil? ['none', 'cdrom'].include?(volid) ? volid : 'image' end |
#cloudinit ⇒ Object
39 40 41 |
# File 'app/models/concerns/fog_extensions/proxmox/disk.rb', line 39 def cloudinit cloud_init? ? 'disk' : 'none' end |
#storage_type ⇒ Object
27 28 29 30 31 |
# File 'app/models/concerns/fog_extensions/proxmox/disk.rb', line 27 def storage_type return 'cdrom' if cdrom? cloud_init? ? 'cloud_init' : 'hard_disk' end |