class
Gem::Installer
v1_9_3_392 -
Show latest stable
- Superclass: Object
The installer class processes RubyGem .gem files and installs the files contained in the .gem into the Gem.path.
Gem::Installer does the work of putting files in all the right places on the filesystem including unpacking the gem into its gem dir, installing the gemspec in the specifications dir, storing the cached gem in the cache dir, and installing either wrappers or symlinks for executables.
The installer invokes pre and post install hooks. Hooks can be added either through a rubygems_plugin.rb file in an installed gem or via a rubygems/defaults/#{RUBY_ENGINE}.rb or rubygems/defaults/operating_system.rb file. See Gem.pre_install and Gem.post_install for details.
Included modules
- Gem::RequirePathsBuilder
- Gem::UserInteraction
Constants
ENV_PATHS = %w[/usr/bin/env /bin/env]
Attributes
| [R] | bin_dir |
| [W] | env_shebang |
| [W] | exec_format |
| [W] | format |
| [W] | format_executable |
| [R] | gem |
| [W] | gem_dir |
| [R] | gem_home |
| [W] | gem_home |
| [W] | ignore_dependencies |
| [R] | options |
| [RW] | path_warning |
| [W] | security_policy |
| [W] | spec |
| [W] | wrappers |
Files
- lib/rubygems/installer.rb
- lib/rubygems/installer_test_case.rb