summaryrefslogtreecommitdiff
path: root/lib/bundler/cli.rb
diff options
context:
space:
mode:
authorAgrim Mittal <agrimmittal97@gmail.com>2018-05-22 13:37:13 +0530
committerAgrim Mittal <agrimmittal97@gmail.com>2018-06-06 10:05:46 +0530
commitd1ce9a520915618b82f7957a53a53a3ebe11cdb7 (patch)
treebbe078949dfc02fb08ac32b3e1cd85276ed37c8a /lib/bundler/cli.rb
parent1b0c67366dfcd711ecd19b36dd232b0737ef6aee (diff)
downloadbundler-d1ce9a520915618b82f7957a53a53a3ebe11cdb7.tar.gz
Add support for mutiple gems add with names only
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 926a748231..f238c2ac6d 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"