diff options
author | Bundlerbot <bot@bundler.io> | 2019-04-23 19:30:19 +0000 |
---|---|---|
committer | Bundlerbot <bot@bundler.io> | 2019-04-23 19:30:19 +0000 |
commit | 58357f5bab5e7869d0532041bb44325d1832b036 (patch) | |
tree | e118b3e14015e0d3230aa653949ef89250d42d34 /lib/bundler/cli.rb | |
parent | 69bf2bf121dccb750d0d537ff9f7a57473b0120b (diff) | |
parent | 2aab1fd231f2af3a0f0a5888a7d5bb5cd079ceb6 (diff) | |
download | bundler-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.rb | 2 |
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" |