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, #shell_names, #spin, #tags, #test_shells, #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.
332 333 334 335 336 337 338 339 |
# File 'lib/osvm/machine_config.rb', line 332 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.
329 330 331 |
# File 'lib/osvm/machine_config.rb', line 329 def squashfs @squashfs end |