summaryrefslogtreecommitdiff
path: root/lib/bundler/cli.rb
diff options
context:
space:
mode:
authorBundlerbot <bot@bundler.io>2019-04-23 19:30:19 +0000
committerBundlerbot <bot@bundler.io>2019-04-23 19:30:19 +0000
commit58357f5bab5e7869d0532041bb44325d1832b036 (patch)
treee118b3e14015e0d3230aa653949ef89250d42d34 /lib/bundler/cli.rb
parent69bf2bf121dccb750d0d537ff9f7a57473b0120b (diff)
parent2aab1fd231f2af3a0f0a5888a7d5bb5cd079ceb6 (diff)
downloadbundler-58357f5bab5e7869d0532041bb44325d1832b036.tar.gz
Merge #7127
7127: Add git and branch options to `bundle add` r=deivid-rodriguez a=tokachev Closes #6841 These changes will allow to add a gem with the git or branch options. ``` bundle add redis --git "https://github.com/redis/redis-rb" --branch "staging" ``` The result in Gemfile will be: ``` gem "redis", "~> 4.0", :git => "https://github.com/redis/redis-rb", :branch => "staging" ``` Co-authored-by: Baumgarten <baumgarten@localhost.localdomain>
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r--lib/bundler/cli.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 5d5363aee8..dd733a22ed 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -363,6 +363,8 @@ module Bundler
method_option "version", :aliases => "-v", :type => :string
method_option "group", :aliases => "-g", :type => :string
method_option "source", :aliases => "-s", :type => :string
+ method_option "git", :type => :string
+ method_option "branch", :type => :string
method_option "skip-install", :type => :boolean, :banner =>
"Adds gem to the Gemfile but does not install it"
method_option "optimistic", :type => :boolean, :banner => "Adds optimistic declaration of version to gem"