diff options
author | Asutosh Palai <asupalai@gmail.com> | 2016-05-23 21:14:04 +0530 |
---|---|---|
committer | Asutosh Palai <asupalai@gmail.com> | 2016-05-24 21:15:01 +0530 |
commit | 867e2d9c6cfc033f689340c2c592db9119dcaa8c (patch) | |
tree | 4b759b3ec547ad91a551cb3a1f2a66458692f36c /lib/bundler/cli/plugin.rb | |
parent | 00098cda3d4b73f3c74199434c889f20e05b0485 (diff) | |
download | bundler-867e2d9c6cfc033f689340c2c592db9119dcaa8c.tar.gz |
Added support for git install
Diffstat (limited to 'lib/bundler/cli/plugin.rb')
-rw-r--r-- | lib/bundler/cli/plugin.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/bundler/cli/plugin.rb b/lib/bundler/cli/plugin.rb index 504f8726f9..05d8819be7 100644 --- a/lib/bundler/cli/plugin.rb +++ b/lib/bundler/cli/plugin.rb @@ -8,9 +8,15 @@ module Bundler Install a plugin named PLUGIN wither from the rubygems source provided (with --source option) or from a git source provided with (--git option). D method_option "source", :type=> :string, :default => nil, :banner => - "Url of the RubyGems source to fetch the plugin from" + "URL of the RubyGems source to fetch the plugin from" method_option "version", :type=> :string, :default => nil, :banner => "The version of the plugin to fetch from" + method_option "git", :type=> :string, :default => nil, :banner => + "URL of the git repo to fetch from" + method_option "branch", :type=> :string, :default => nil, :banner => + "The git branch to checkout" + method_option "ref", :type=> :string, :default => nil, :banner => + "The git revision to check out" def install(plugin) Bundler::Plugin.install(plugin, options) end |