Class: VagrantPlugins::Qubes::Config

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

Overview

Config class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



16
17
18
19
20
# File 'lib/vagrant-qubes/config.rb', line 16

def initialize
  @debug = 'False'
  @local_use_ip_cache = 'True'
  @saved_ipaddress = nil
end

Instance Attribute Details

#debugObject

Returns the value of attribute debug.



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

def debug
  @debug
end

#guest_labelObject

Returns the value of attribute guest_label.



9
10
11
# File 'lib/vagrant-qubes/config.rb', line 9

def guest_label
  @guest_label
end

#guest_memsizeObject

Returns the value of attribute guest_memsize.



12
13
14
# File 'lib/vagrant-qubes/config.rb', line 12

def guest_memsize
  @guest_memsize
end

#guest_netvmObject

Returns the value of attribute guest_netvm.



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

def guest_netvm
  @guest_netvm
end

#guest_numvcpusObject

Returns the value of attribute guest_numvcpus.



11
12
13
# File 'lib/vagrant-qubes/config.rb', line 11

def guest_numvcpus
  @guest_numvcpus
end

#guest_templateObject

Returns the value of attribute guest_template.



10
11
12
# File 'lib/vagrant-qubes/config.rb', line 10

def guest_template
  @guest_template
end

#guest_typeObject

Returns the value of attribute guest_type.



8
9
10
# File 'lib/vagrant-qubes/config.rb', line 8

def guest_type
  @guest_type
end

#saved_ipaddressObject

Returns the value of attribute saved_ipaddress.



14
15
16
# File 'lib/vagrant-qubes/config.rb', line 14

def saved_ipaddress
  @saved_ipaddress
end

Instance Method Details

#finalize!Object



22
23
24
25
26
27
28
29
# File 'lib/vagrant-qubes/config.rb', line 22

def finalize!
  if @local_use_ip_cache =~ /false/i
    @local_use_ip_cache = 'False'
  else
    @local_use_ip_cache = 'True'
  end
  @saved_ipaddress = nil
end