Class: OsVm::VpsadminosMachineConfig
- Inherits:
-
MachineConfig
- Object
- MachineConfig
- OsVm::VpsadminosMachineConfig
- Defined in:
- lib/osvm/machine_config.rb
Instance Attribute Summary collapse
-
#squashfs ⇒ String
readonly
Path to squashfs rootfs image.
Attributes inherited from MachineConfig
#boot_mode, #boot_order, #cpu, #cpus, #disks, #extra_qemu_options, #initrd, #kernel, #kernel_params, #labels, #memory, #networks, #qemu, #shared_filesystems, #spin, #tags, #toplevel, #virtiofsd
Instance Method Summary collapse
-
#initialize(cfg) ⇒ VpsadminosMachineConfig
constructor
A new instance of VpsadminosMachineConfig.
Methods inherited from MachineConfig
Constructor Details
#initialize(cfg) ⇒ VpsadminosMachineConfig
Returns a new instance of VpsadminosMachineConfig.
301 302 303 304 305 306 307 308 |
# File 'lib/osvm/machine_config.rb', line 301 def initialize(cfg) @squashfs = cfg['squashfs'] super return unless boot_mode == 'direct' raise ArgumentError, "missing 'squashfs' for direct boot machine" if @squashfs.nil? end |
Instance Attribute Details
#squashfs ⇒ String (readonly)
Returns path to squashfs rootfs image.
298 299 300 |
# File 'lib/osvm/machine_config.rb', line 298 def squashfs @squashfs end |