Class: Vagrant::Guest::Solaris::SolarisConfig
- Inherits:
-
Config::Base
- Object
- Config::Base
- Vagrant::Guest::Solaris::SolarisConfig
- Defined in:
- lib/vagrant/guest/solaris.rb
Overview
A custom config class which will be made accessible via config.solaris
This is not necessary for all system implementers, of course. However,
generally, Vagrant tries to make almost every aspect of its execution
configurable, and this assists that goal.
Instance Attribute Summary collapse
-
#device ⇒ Object
Returns the value of attribute device.
-
#halt_check_interval ⇒ Object
Returns the value of attribute halt_check_interval.
-
#halt_timeout ⇒ Object
Returns the value of attribute halt_timeout.
-
#suexec_cmd ⇒ Object
This sets the command to use to execute items as a superuser.
Instance Method Summary collapse
-
#initialize ⇒ SolarisConfig
constructor
A new instance of SolarisConfig.
Methods inherited from Config::Base
#instance_variables_hash, json_create, #merge, #set_options, #to_hash, #to_json, #validate
Constructor Details
#initialize ⇒ SolarisConfig
Returns a new instance of SolarisConfig.
18 19 20 21 22 23 |
# File 'lib/vagrant/guest/solaris.rb', line 18 def initialize @halt_timeout = 30 @halt_check_interval = 1 @suexec_cmd = 'sudo' @device = "e1000g" end |
Instance Attribute Details
#device ⇒ Object
Returns the value of attribute device.
16 17 18 |
# File 'lib/vagrant/guest/solaris.rb', line 16 def device @device end |
#halt_check_interval ⇒ Object
Returns the value of attribute halt_check_interval.
13 14 15 |
# File 'lib/vagrant/guest/solaris.rb', line 13 def halt_check_interval @halt_check_interval end |
#halt_timeout ⇒ Object
Returns the value of attribute halt_timeout.
12 13 14 |
# File 'lib/vagrant/guest/solaris.rb', line 12 def halt_timeout @halt_timeout end |
#suexec_cmd ⇒ Object
This sets the command to use to execute items as a superuser. sudo is default
15 16 17 |
# File 'lib/vagrant/guest/solaris.rb', line 15 def suexec_cmd @suexec_cmd end |