Class: Mineshaft::Installer
- Inherits:
-
Object
- Object
- Mineshaft::Installer
- Includes:
- Shell
- Defined in:
- lib/mineshaft/installer.rb
Instance Attribute Summary collapse
-
#directory ⇒ Object
Returns the value of attribute directory.
-
#global ⇒ Object
Returns the value of attribute global.
-
#options ⇒ Object
Returns the value of attribute options.
-
#url ⇒ Object
Returns the value of attribute url.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Installer
constructor
A new instance of Installer.
- #run ⇒ Object
Methods included from Shell
Constructor Details
#initialize {|_self| ... } ⇒ Installer
Returns a new instance of Installer.
21 22 23 24 |
# File 'lib/mineshaft/installer.rb', line 21 def initialize @ruby_archive = "ruby.tar.gz" yield self end |
Instance Attribute Details
#directory ⇒ Object
Returns the value of attribute directory.
17 18 19 |
# File 'lib/mineshaft/installer.rb', line 17 def directory @directory end |
#global ⇒ Object
Returns the value of attribute global.
17 18 19 |
# File 'lib/mineshaft/installer.rb', line 17 def global @global end |
#options ⇒ Object
Returns the value of attribute options.
17 18 19 |
# File 'lib/mineshaft/installer.rb', line 17 def @options end |
#url ⇒ Object
Returns the value of attribute url.
17 18 19 |
# File 'lib/mineshaft/installer.rb', line 17 def url @url end |
#version ⇒ Object
Returns the value of attribute version.
17 18 19 |
# File 'lib/mineshaft/installer.rb', line 17 def version @version end |
Instance Method Details
#run ⇒ Object
26 27 28 29 30 |
# File 'lib/mineshaft/installer.rb', line 26 def run download @url, @directory unzip @directory build @directory end |