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, #iso, #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.
340 341 342 343 344 345 346 347 |
# File 'lib/osvm/machine_config.rb', line 340 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.
337 338 339 |
# File 'lib/osvm/machine_config.rb', line 337 def squashfs @squashfs end |