Class: OsVm::VpsadminosMachineConfig

Inherits:
MachineConfig show all
Defined in:
lib/osvm/machine_config.rb

Instance Attribute Summary collapse

Attributes inherited from MachineConfig

#cpu, #cpus, #disks, #extra_qemu_options, #initrd, #kernel, #kernel_params, #labels, #memory, #networks, #qemu, #shared_filesystems, #spin, #tags, #toplevel, #virtiofsd

Instance Method Summary collapse

Methods inherited from MachineConfig

from_config, load_file

Constructor Details

#initialize(cfg) ⇒ VpsadminosMachineConfig

Returns a new instance of VpsadminosMachineConfig.

Parameters:

  • cfg (Hash)


272
273
274
275
# File 'lib/osvm/machine_config.rb', line 272

def initialize(cfg)
  @squashfs = cfg.fetch('squashfs')
  super
end

Instance Attribute Details

#squashfsString (readonly)

Returns path to squashfs rootfs image.

Returns:

  • (String)

    path to squashfs rootfs image



269
270
271
# File 'lib/osvm/machine_config.rb', line 269

def squashfs
  @squashfs
end