Class: Vagrant::LXC::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-lxc/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



15
16
17
18
# File 'lib/vagrant-lxc/config.rb', line 15

def initialize
  @start_opts         = []
  @target_rootfs_path = nil
end

Instance Attribute Details

#start_optsArray (readonly)

An array of options to be passed to lxc-start when booting the machine.

Returns:

  • (Array)


7
8
9
# File 'lib/vagrant-lxc/config.rb', line 7

def start_opts
  @start_opts
end

#target_rootfs_pathObject

Base directory to store container’s rootfs

Defaults to nil, which means it will be stored wherever the lxc template tells it to be stored



13
14
15
# File 'lib/vagrant-lxc/config.rb', line 13

def target_rootfs_path
  @target_rootfs_path
end