Class: Ji2p::GemInstaller
Constant Summary collapse
- GEM_HOME =
Pathname.new(::File.join(Ji2p::Environment::BUNDLE_DIR, "jruby", "2.5.0"))
- SPECIFICATIONS_DIR =
"specifications"
- GEMS_DIR =
"gems"
- CACHE_DIR =
"cache"
Instance Attribute Summary collapse
-
#gem_home ⇒ Object
readonly
Returns the value of attribute gem_home.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(gem_file, display_post_install_message = false, gem_home = GEM_HOME) ⇒ GemInstaller
constructor
A new instance of GemInstaller.
- #install ⇒ Object
Constructor Details
#initialize(gem_file, display_post_install_message = false, gem_home = GEM_HOME) ⇒ GemInstaller
Returns a new instance of GemInstaller.
17 18 19 20 21 22 |
# File 'lib/ji2p/gem_installer.rb', line 17 def initialize(gem_file, = false, gem_home = GEM_HOME) @gem_file = gem_file @gem = ::Gem::Package.new(@gem_file) @gem_home = Pathname.new(gem_home) @display_post_install_message = end |
Instance Attribute Details
#gem_home ⇒ Object (readonly)
Returns the value of attribute gem_home.
15 16 17 |
# File 'lib/ji2p/gem_installer.rb', line 15 def gem_home @gem_home end |
Class Method Details
Instance Method Details
#install ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/ji2p/gem_installer.rb', line 24 def install create_destination_folders extract_files write_specification copy_gem_file_to_cache end |