Class: Mineshaft::Installer

Inherits:
Object
  • Object
show all
Includes:
Shell
Defined in:
lib/mineshaft/installer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Shell

#shell

Constructor Details

#initialize {|_self| ... } ⇒ Installer

Returns a new instance of Installer.

Yields:

  • (_self)

Yield Parameters:



21
22
23
24
# File 'lib/mineshaft/installer.rb', line 21

def initialize
  @ruby_archive = "ruby.tar.gz"
  yield self
end

Instance Attribute Details

#directoryObject

Returns the value of attribute directory.



17
18
19
# File 'lib/mineshaft/installer.rb', line 17

def directory
  @directory
end

#globalObject

Returns the value of attribute global.



17
18
19
# File 'lib/mineshaft/installer.rb', line 17

def global
  @global
end

#optionsObject

Returns the value of attribute options.



17
18
19
# File 'lib/mineshaft/installer.rb', line 17

def options
  @options
end

#urlObject

Returns the value of attribute url.



17
18
19
# File 'lib/mineshaft/installer.rb', line 17

def url
  @url
end

#versionObject

Returns the value of attribute version.



17
18
19
# File 'lib/mineshaft/installer.rb', line 17

def version
  @version
end

Instance Method Details

#runObject



26
27
28
29
30
# File 'lib/mineshaft/installer.rb', line 26

def run
  download @url, @directory
  unzip          @directory
  build          @directory
end