Class: VagrantPlugins::Qubes::Config
- Inherits:
-
Object
- Object
- VagrantPlugins::Qubes::Config
- Defined in:
- lib/vagrant-qubes/config.rb
Overview
Config class
Instance Attribute Summary collapse
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#guest_label ⇒ Object
Returns the value of attribute guest_label.
-
#guest_memsize ⇒ Object
Returns the value of attribute guest_memsize.
-
#guest_netvm ⇒ Object
Returns the value of attribute guest_netvm.
-
#guest_numvcpus ⇒ Object
Returns the value of attribute guest_numvcpus.
-
#guest_template ⇒ Object
Returns the value of attribute guest_template.
-
#guest_type ⇒ Object
Returns the value of attribute guest_type.
-
#saved_ipaddress ⇒ Object
Returns the value of attribute saved_ipaddress.
Instance Method Summary collapse
- #finalize! ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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
#debug ⇒ Object
Returns the value of attribute debug.
7 8 9 |
# File 'lib/vagrant-qubes/config.rb', line 7 def debug @debug end |
#guest_label ⇒ Object
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_memsize ⇒ Object
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_netvm ⇒ Object
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_numvcpus ⇒ Object
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_template ⇒ Object
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_type ⇒ Object
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_ipaddress ⇒ Object
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 |