diff options
author | Cody Cutrer <cody@instructure.com> | 2023-09-14 11:35:50 -0600 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2024-03-27 11:34:46 +0000 |
commit | 44b5c912daae6d4e6dba6e40f13a2840c144cfa8 (patch) | |
tree | bb99a67b9c7acc5ee023e78951ebfe96e165383f /lib/bundler/cli | |
parent | cbc11bcb63ccebd8fc3f12362b8d6dbcf06d7fdd (diff) |
[rubygems/rubygems] Allow installing plugins from path via CLI
Also bring the man page up to date.
https://github.com/rubygems/rubygems/commit/a849bd6947
Diffstat (limited to 'lib/bundler/cli')
-rw-r--r-- | lib/bundler/cli/plugin.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/cli/plugin.rb b/lib/bundler/cli/plugin.rb index d946e495e9..fd61ef0d95 100644 --- a/lib/bundler/cli/plugin.rb +++ b/lib/bundler/cli/plugin.rb @@ -5,7 +5,7 @@ module Bundler class CLI::Plugin < Thor desc "install PLUGINS", "Install the plugin from the source" long_desc <<-D - Install plugins either from the rubygems source provided (with --source option) or from a git source provided with --git. If no sources are provided, it uses Gem.sources + Install plugins either from the rubygems source provided (with --source option), from a git source provided with --git, or a local path provided with --path. If no sources are provided, it uses Gem.sources D method_option "source", type: :string, default: nil, banner: "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" @@ -13,6 +13,7 @@ module Bundler method_option "local_git", type: :string, default: nil, banner: "Path of the local git repo to fetch from (deprecated)" 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" + method_option "path", type: :string, default: nil, banner: "Path of a local gem to directly use" def install(*plugins) Bundler::Plugin.install(plugins, options) end |