Class: Ji2p::Package::GemInstaller
- Defined in:
- lib/ji2p/package/gem_installer.rb
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.
18 19 20 21 22 23 |
# File 'lib/ji2p/package/gem_installer.rb', line 18 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.
16 17 18 |
# File 'lib/ji2p/package/gem_installer.rb', line 16 def gem_home @gem_home end |
Class Method Details
Instance Method Details
#install ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/ji2p/package/gem_installer.rb', line 25 def install create_destination_folders extract_files write_specification copy_gem_file_to_cache end |