Class: Vagrant::Systems::Solaris::SolarisConfig

Inherits:
Config::Base
  • Object
show all
Defined in:
lib/vagrant/systems/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

Attributes inherited from Config::Base

#top

Instance Method Summary collapse

Methods inherited from Config::Base

configures, #env, #instance_variables_hash, json_create, #set_options, #to_hash, #to_json, #validate

Constructor Details

#initializeSolarisConfig

Returns a new instance of SolarisConfig.



19
20
21
22
23
# File 'lib/vagrant/systems/solaris.rb', line 19

def initialize
  @halt_timeout = 30
  @halt_check_interval = 1
  @suexec_cmd = 'sudo'
end

Instance Attribute Details

#halt_check_intervalObject

Returns the value of attribute halt_check_interval.



15
16
17
# File 'lib/vagrant/systems/solaris.rb', line 15

def halt_check_interval
  @halt_check_interval
end

#halt_timeoutObject

Returns the value of attribute halt_timeout.



14
15
16
# File 'lib/vagrant/systems/solaris.rb', line 14

def halt_timeout
  @halt_timeout
end

#suexec_cmdObject

This sets the command to use to execute items as a superuser. sudo is default



17
18
19
# File 'lib/vagrant/systems/solaris.rb', line 17

def suexec_cmd
  @suexec_cmd
end