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
#installer, #iso_mount_point, #iso_upload_path
Class Method Summary collapse
- .allow_downgrade ⇒ Object
- .auto_reboot ⇒ Object
- .auto_update ⇒ Object
- .installer_arguments ⇒ Object
- .installer_hooks ⇒ Object
- .installer_options ⇒ Object
- .iso_path ⇒ Object
- .no_install ⇒ Object
- .no_remote ⇒ Object
- .yes ⇒ Object
Instance Method Summary collapse
- #allow_downgrade ⇒ Object
- #auto_reboot ⇒ Object
- #auto_update ⇒ Object
- #installer_arguments ⇒ Object
- #installer_hooks ⇒ Object
- #installer_options ⇒ Object
- #iso_path ⇒ Object
- #no_install ⇒ Object
- #no_remote ⇒ Object
-
#to_hash ⇒ Object
explicit hash, to get symbols in hash keys.
- #yes ⇒ Object
Class Method Details
.allow_downgrade ⇒ Object
29 |
# File 'lib/vagrant-vbguest/config.rb', line 29 def allow_downgrade; @allow_downgrade.nil? ? false : @allow_downgrade end |
.auto_reboot ⇒ Object
16 |
# File 'lib/vagrant-vbguest/config.rb', line 16 def auto_reboot; @auto_reboot.nil? ? true : @auto_reboot end |
.auto_update ⇒ Object
15 |
# File 'lib/vagrant-vbguest/config.rb', line 15 def auto_update; @auto_update.nil? ? true : @auto_update end |
.installer_arguments ⇒ Object
19 |
# File 'lib/vagrant-vbguest/config.rb', line 19 def installer_arguments; @installer_arguments.nil? ? '--nox11' : @installer_arguments end |
.installer_hooks ⇒ Object
21 |
# File 'lib/vagrant-vbguest/config.rb', line 21 def installer_hooks; @installer_hooks ||= {} end |
.installer_options ⇒ Object
20 |
# File 'lib/vagrant-vbguest/config.rb', line 20 def ; @installer_options ||= {} end |
.iso_path ⇒ Object
24 25 26 27 |
# File 'lib/vagrant-vbguest/config.rb', line 24 def iso_path return nil if !@iso_path || @iso_path == :auto @iso_path end |
.no_install ⇒ Object
17 |
# File 'lib/vagrant-vbguest/config.rb', line 17 def no_install; @no_install.nil? ? false : @no_install end |
.no_remote ⇒ Object
18 |
# File 'lib/vagrant-vbguest/config.rb', line 18 def no_remote; @no_remote.nil? ? false : @no_remote end |
.yes ⇒ Object
22 |
# File 'lib/vagrant-vbguest/config.rb', line 22 def yes; @yes.nil? ? true : @yes end |
Instance Method Details
#allow_downgrade ⇒ Object
48 |
# File 'lib/vagrant-vbguest/config.rb', line 48 def allow_downgrade; @allow_downgrade.nil? ? self.class.allow_downgrade : @allow_downgrade end |
#auto_reboot ⇒ Object
35 |
# File 'lib/vagrant-vbguest/config.rb', line 35 def auto_reboot; @auto_reboot.nil? ? self.class.auto_reboot : @auto_reboot end |
#auto_update ⇒ Object
34 |
# File 'lib/vagrant-vbguest/config.rb', line 34 def auto_update; @auto_update.nil? ? self.class.auto_update : @auto_update end |
#installer_arguments ⇒ Object
38 |
# File 'lib/vagrant-vbguest/config.rb', line 38 def installer_arguments; @installer_arguments.nil? ? self.class.installer_arguments.dup : @installer_arguments end |
#installer_hooks ⇒ Object
40 |
# File 'lib/vagrant-vbguest/config.rb', line 40 def installer_hooks; @installer_hooks ||= self.class.installer_hooks.dup end |
#installer_options ⇒ Object
39 |
# File 'lib/vagrant-vbguest/config.rb', line 39 def ; @installer_options ||= self.class..dup end |
#iso_path ⇒ Object
43 44 45 46 |
# File 'lib/vagrant-vbguest/config.rb', line 43 def iso_path return self.class.iso_path if !@iso_path || @iso_path == :auto @iso_path end |
#no_install ⇒ Object
36 |
# File 'lib/vagrant-vbguest/config.rb', line 36 def no_install; @no_install.nil? ? self.class.no_install : @no_install end |
#no_remote ⇒ Object
37 |
# File 'lib/vagrant-vbguest/config.rb', line 37 def no_remote; @no_remote.nil? ? self.class.no_remote : @no_remote end |
#to_hash ⇒ Object
explicit hash, to get symbols in hash keys
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/vagrant-vbguest/config.rb', line 51 def to_hash { :installer => installer, :installer_arguments => installer_arguments, :installer_options => , :installer_hooks => installer_hooks, :iso_path => iso_path, :iso_upload_path => iso_upload_path, :iso_mount_point => iso_mount_point, :auto_update => auto_update, :auto_reboot => auto_reboot, :no_install => no_install, :no_remote => no_remote, :yes => yes, :allow_downgrade => allow_downgrade } end |
#yes ⇒ Object
41 |
# File 'lib/vagrant-vbguest/config.rb', line 41 def yes; @yes.nil? ? self.class.yes : @yes end |