diff options
author | Carl Lerche <carllerche@mac.com> | 2010-05-05 04:21:21 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-05-05 04:21:28 -0700 |
commit | 8aaadc407ef5bf13b2c7480e584e1cae519bbf15 (patch) | |
tree | 4611eb8a5ff2745e859de24fcf4ce05ed9433361 /lib/bundler/installer.rb | |
parent | e42dcda117465674fd2fffe64057afc254521ac9 (diff) | |
download | bundler-8aaadc407ef5bf13b2c7480e584e1cae519bbf15.tar.gz |
Alright, a rough first draft of bundle update
Diffstat (limited to 'lib/bundler/installer.rb')
-rw-r--r-- | lib/bundler/installer.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb index ede5045e..3774c6de 100644 --- a/lib/bundler/installer.rb +++ b/lib/bundler/installer.rb @@ -2,18 +2,21 @@ require 'rubygems/dependency_installer' module Bundler class Installer < Environment - def self.install(root, definition, options) + def self.install(root, definition, unlock, options) installer = new(root, definition) - installer.run(options) + installer.run(unlock, options) installer end - def run(options) + def run(unlocked_gems, options) if dependencies.empty? Bundler.ui.warn "The Gemfile specifies no dependencies" return end + # Unlock any requested gems + @definition.unlock!(unlocked_gems) + # Since we are installing, we can resolve the definition # using remote specs @definition.resolve_remotely! |