Class: Bundler::Plugin::Installer
- Inherits:
-
Object
- Object
- Bundler::Plugin::Installer
- Defined in:
- lib/bundler/plugin/installer.rb,
lib/bundler/plugin/installer/git.rb,
lib/bundler/plugin/installer/rubygems.rb
Defined Under Namespace
Instance Method Summary collapse
- #install(names, options) ⇒ Object
-
#install_definition(definition) ⇒ Hash
Installs the plugin from Definition object created by limited parsing of Gemfile searching for plugins to be installed.
Instance Method Details
#install(names, options) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/bundler/plugin/installer.rb', line 14 def install(names, ) check_sources_consistency!() version = [:version] || [">= 0"] Bundler.settings.temporary(:disable_multisource => false) do if [:git] install_git(names, version, ) elsif [:local_git] install_local_git(names, version, ) else sources = [:source] || Bundler.rubygems.sources install_rubygems(names, version, sources) end end end |
#install_definition(definition) ⇒ Hash
Installs the plugin from Definition object created by limited parsing of Gemfile searching for plugins to be installed
36 37 38 39 40 41 42 |
# File 'lib/bundler/plugin/installer.rb', line 36 def install_definition(definition) def definition.lock(*); end definition.resolve_remotely! specs = definition.specs install_from_specs specs end |