Class: VagrantVbguest::Config
- Inherits:
-
Object
- Object
- VagrantVbguest::Config
- Extended by:
- Attributes
- Includes:
- Attributes
- Defined in:
- lib/vagrant-vbguest/config.rb
Defined Under Namespace
Modules: Attributes
Instance Attribute Summary
Attributes included from Attributes
Class Method Summary collapse
- .auto_reboot ⇒ Object
- .auto_update ⇒ Object
- .iso_path ⇒ Object
- .no_install ⇒ Object
- .no_remote ⇒ Object
Instance Method Summary collapse
- #auto_reboot ⇒ Object
- #auto_update ⇒ Object
- #iso_path ⇒ Object
- #no_install ⇒ Object
- #no_remote ⇒ Object
-
#to_hash ⇒ Object
explicit hash, to get symbols in hash keys.
Class Method Details
.auto_reboot ⇒ Object
13 |
# File 'lib/vagrant-vbguest/config.rb', line 13 def auto_reboot; @auto_reboot.nil? ? true : @auto_reboot end |
.auto_update ⇒ Object
12 |
# File 'lib/vagrant-vbguest/config.rb', line 12 def auto_update; @auto_update.nil? ? true : @auto_update end |
.iso_path ⇒ Object
17 18 19 20 |
# File 'lib/vagrant-vbguest/config.rb', line 17 def iso_path return nil if !@iso_path || @iso_path == :auto @iso_path end |
.no_install ⇒ Object
14 |
# File 'lib/vagrant-vbguest/config.rb', line 14 def no_install; @no_install.nil? ? false : @no_install end |
.no_remote ⇒ Object
15 |
# File 'lib/vagrant-vbguest/config.rb', line 15 def no_remote; @no_remote.nil? ? false : @no_remote end |
Instance Method Details
#auto_reboot ⇒ Object
26 |
# File 'lib/vagrant-vbguest/config.rb', line 26 def auto_reboot; @auto_reboot.nil? ? self.class.auto_reboot : @auto_reboot end |
#auto_update ⇒ Object
25 |
# File 'lib/vagrant-vbguest/config.rb', line 25 def auto_update; @auto_update.nil? ? self.class.auto_update : @auto_update end |
#iso_path ⇒ Object
30 31 32 33 |
# File 'lib/vagrant-vbguest/config.rb', line 30 def iso_path return self.class.iso_path if !@iso_path || @iso_path == :auto @iso_path end |
#no_install ⇒ Object
27 |
# File 'lib/vagrant-vbguest/config.rb', line 27 def no_install; @no_install.nil? ? self.class.no_install : @no_install end |
#no_remote ⇒ Object
28 |
# File 'lib/vagrant-vbguest/config.rb', line 28 def no_remote; @no_remote.nil? ? self.class.no_remote : @no_remote end |
#to_hash ⇒ Object
explicit hash, to get symbols in hash keys
36 37 38 39 40 41 42 43 44 45 |
# File 'lib/vagrant-vbguest/config.rb', line 36 def to_hash { :installer => installer, :iso_path => iso_path, :auto_update => auto_update, :auto_reboot => auto_reboot, :no_install => no_install, :no_remote => no_remote } end |