Skip to content

Commit

Permalink
Load RubyGems plugins on install and update
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope authored and mpapis committed Oct 24, 2011
1 parent 177cda6 commit ef483e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bundler/cli.rb
Expand Up @@ -216,6 +216,7 @@ def install(path = nil)
Bundler.settings.without = opts[:without]
Bundler.ui.be_quiet! if opts[:quiet]

Gem.load_plugins
Installer.install(Bundler.root, Bundler.definition, opts)
Bundler.load.cache if Bundler.root.join("vendor/cache").exist? && !options["no-cache"]

Expand Down Expand Up @@ -265,6 +266,7 @@ def update(*gems)
end

opts = {"update" => true, "local" => options[:local]}
Gem.load_plugins
Installer.install Bundler.root, Bundler.definition, opts
Bundler.load.cache if Bundler.root.join("vendor/cache").exist?
Bundler.ui.confirm "Your bundle is updated! " +
Expand Down

0 comments on commit ef483e3

Please sign in to comment.