summaryrefslogtreecommitdiff
path: root/lib/bundler/cli.rb
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2018-06-15 07:20:18 +0000
committerThe Bundler Bot <bot@bundler.io>2018-06-15 07:20:18 +0000
commitc48cca89bbbe8deeed985135a3ca8ffe219efb44 (patch)
tree8c1446c8a33de9f4f0085cef8a7c580c3c2ad49c /lib/bundler/cli.rb
parentc171c54c095a241584aa03c792a9946ec8313c22 (diff)
parent49dea1c27630dbf939ef177ee08ed8a0485e8b06 (diff)
downloadbundler-c48cca89bbbe8deeed985135a3ca8ffe219efb44.tar.gz
Auto merge of #6547 - agrim123:agr-add-mutiple-gems-names, r=segiddins
Add mutiple gems by names Add support for mutiple gems by names only ```bash bundle add rack rails ``` Concerns: - All the options/switches used would be applied to the all gems specified and a warning is displayed for the time being. Closes #6543
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r--lib/bundler/cli.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index a0d6507afe..86206660b3 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -337,9 +337,9 @@ module Bundler
"Adds gem to the Gemfile but does not install it"
method_option "optimistic", :type => :boolean, :banner => "Adds optimistic declaration of version to gem"
method_option "strict", :type => :boolean, :banner => "Adds strict declaration of version to gem"
- def add(gem_name)
+ def add(*gems)
require "bundler/cli/add"
- Add.new(options.dup, gem_name).run
+ Add.new(options.dup, gems).run
end
desc "outdated GEM [OPTIONS]", "List installed gems with newer versions available"