Class: GenericInstaller
- Inherits:
-
Object
- Object
- GenericInstaller
- Includes:
- Executable, ScriptLocator
- Defined in:
- lib/osx_ruby_dev_install/generic_installer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#interpolator ⇒ Object
readonly
Returns the value of attribute interpolator.
-
#script_list ⇒ Object
readonly
Returns the value of attribute script_list.
-
#server_info ⇒ Object
readonly
Returns the value of attribute server_info.
Instance Method Summary collapse
-
#initialize(config_file_name, scripts_file_name) ⇒ GenericInstaller
constructor
A new instance of GenericInstaller.
Constructor Details
#initialize(config_file_name, scripts_file_name) ⇒ GenericInstaller
Returns a new instance of GenericInstaller.
13 14 15 16 17 18 19 20 21 |
# File 'lib/osx_ruby_dev_install/generic_installer.rb', line 13 def initialize config_file_name, scripts_file_name @interpolator = TextInterpolator.new @env = read_config(config_file_name) @script_list = scripts(File.(scripts_file_name, File.dirname(__FILE__))) @server_info = env[:node] ? env[:node] : {} end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
11 12 13 |
# File 'lib/osx_ruby_dev_install/generic_installer.rb', line 11 def env @env end |
#interpolator ⇒ Object (readonly)
Returns the value of attribute interpolator.
11 12 13 |
# File 'lib/osx_ruby_dev_install/generic_installer.rb', line 11 def interpolator @interpolator end |
#script_list ⇒ Object (readonly)
Returns the value of attribute script_list.
11 12 13 |
# File 'lib/osx_ruby_dev_install/generic_installer.rb', line 11 def script_list @script_list end |
#server_info ⇒ Object (readonly)
Returns the value of attribute server_info.
11 12 13 |
# File 'lib/osx_ruby_dev_install/generic_installer.rb', line 11 def server_info @server_info end |