Class: GenericInstaller

Inherits:
Object
  • Object
show all
Includes:
Executable, ScriptLocator
Defined in:
lib/osx_ruby_dev_install/generic_installer.rb

Direct Known Subclasses

OsxInstaller

Instance Attribute Summary collapse

Instance Method Summary collapse

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.expand_path(scripts_file_name, File.dirname(__FILE__)))

  @server_info = env[:node] ? env[:node] : {}
end

Instance Attribute Details

#envObject (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

#interpolatorObject (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_listObject (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_infoObject (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