Class: RubyConfig::Runtimes::RubyEnterpriseEditionRuntime

Inherits:
RubyConfig::RuntimeBase show all
Defined in:
lib/ruby_config/runtimes/ruby_enterprise_edition_runtime.rb

Constant Summary collapse

VERSION =
'1.8.6'
HANDLE =
"ruby-enterprise-#{VERSION}"
TIMESTAMP =
'20090421'
DESCRIPTION =
"Ruby Enterprise Edition #{VERSION}-#{TIMESTAMP}"
RUBY_ENTERPRISE_EDITION_DIR =
"ruby-enterprise-#{VERSION}-#{TIMESTAMP}"
RUBY_ENTERPRISE_EDITION_ARCHIVE =
"#{RUBY_ENTERPRISE_EDITION_DIR}.tar.gz"
RUBY_ENTERPRISE_EDITION_DOWNLOAD_URL =
"http://rubyforge.org/frs/download.php/55511/#{RUBY_ENTERPRISE_EDITION_ARCHIVE}"

Instance Attribute Summary

Attributes inherited from RubyConfig::RuntimeBase

#install_path, #tmp_path

Instance Method Summary collapse

Methods inherited from RubyConfig::RuntimeBase

#additional_library_path, #already_installed?, #archive_path, #create_directory_structure, #default_library_path, #delete, #do_install, #gem_bin_path, #gem_executable_path, #gem_home_path, #initialize, #irb_executable_path, #major_version, #post_install, #prepare_install, #ruby_bin_path, #ruby_executable_path, #ruby_home_path, #rubygems_installed?, #runtime_specific_gems, #to_s

Constructor Details

This class inherits a constructor from RubyConfig::RuntimeBase

Instance Method Details

#archive_download_urlObject



27
28
29
# File 'lib/ruby_config/runtimes/ruby_enterprise_edition_runtime.rb', line 27

def archive_download_url
  RUBY_ENTERPRISE_EDITION_DOWNLOAD_URL
end

#archive_file_nameObject



23
24
25
# File 'lib/ruby_config/runtimes/ruby_enterprise_edition_runtime.rb', line 23

def archive_file_name
  RUBY_ENTERPRISE_EDITION_ARCHIVE
end

#descriptionObject



19
20
21
# File 'lib/ruby_config/runtimes/ruby_enterprise_edition_runtime.rb', line 19

def description
  DESCRIPTION
end

#handleObject



15
16
17
# File 'lib/ruby_config/runtimes/ruby_enterprise_edition_runtime.rb', line 15

def handle
  HANDLE
end

#installObject

def gem_home_path File.join(ruby_home_path, 'lib', 'ruby', 'site_ruby', major_version) end



35
36
37
38
39
# File 'lib/ruby_config/runtimes/ruby_enterprise_edition_runtime.rb', line 35

def install
  extract_tar_gz(File.join(@tmp_path, archive_file_name), @tmp_path)
  
  ree_installer
end