Class: StdlibInstaller
- Inherits:
-
Object
- Object
- StdlibInstaller
- Defined in:
- lib/stdlib_installer.rb
Constant Summary collapse
- PREFIX =
File.join(File.dirname(__FILE__), '..', 'repos', 'stdlib')
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(path, version) ⇒ StdlibInstaller
constructor
A new instance of StdlibInstaller.
- #install ⇒ Object
Constructor Details
#initialize(path, version) ⇒ StdlibInstaller
Returns a new instance of StdlibInstaller.
8 9 10 11 |
# File 'lib/stdlib_installer.rb', line 8 def initialize(path, version) self.path = File.(path) self.version = version end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
6 7 8 |
# File 'lib/stdlib_installer.rb', line 6 def path @path end |
#version ⇒ Object
Returns the value of attribute version.
6 7 8 |
# File 'lib/stdlib_installer.rb', line 6 def version @version end |
Instance Method Details
#install ⇒ Object
13 14 15 16 17 18 |
# File 'lib/stdlib_installer.rb', line 13 def install FileUtils.mkdir_p(File.join(PREFIX, version)) install_exts install_libs install_core end |