Skip to content

Commit 9116a34

Browse files
Merge pull request #6960 from ccutrer/bundle-plugin-install-path
Allow installing plugins from path via CLI (cherry picked from commit 3ff076b)
1 parent 835fd51 commit 9116a34

36 files changed

+98
-50
lines changed

Manifest.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ bundler/lib/bundler/plugin/events.rb
164164
bundler/lib/bundler/plugin/index.rb
165165
bundler/lib/bundler/plugin/installer.rb
166166
bundler/lib/bundler/plugin/installer/git.rb
167+
bundler/lib/bundler/plugin/installer/path.rb
167168
bundler/lib/bundler/plugin/installer/rubygems.rb
168169
bundler/lib/bundler/plugin/source_list.rb
169170
bundler/lib/bundler/process_lock.rb

bundler/lib/bundler/cli/plugin.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ module Bundler
55
class CLI::Plugin < Thor
66
desc "install PLUGINS", "Install the plugin from the source"
77
long_desc <<-D
8-
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
8+
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
99
D
1010
method_option "source", type: :string, default: nil, banner: "URL of the RubyGems source to fetch the plugin from"
1111
method_option "version", type: :string, default: nil, banner: "The version of the plugin to fetch"
1212
method_option "git", type: :string, default: nil, banner: "URL of the git repo to fetch from"
1313
method_option "local_git", type: :string, default: nil, banner: "Path of the local git repo to fetch from (deprecated)"
1414
method_option "branch", type: :string, default: nil, banner: "The git branch to checkout"
1515
method_option "ref", type: :string, default: nil, banner: "The git revision to check out"
16+
method_option "path", type: :string, default: nil, banner: "Path of a local gem to directly use"
1617
def install(*plugins)
1718
Bundler::Plugin.install(plugins, options)
1819
end

bundler/lib/bundler/man/bundle-add.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" generated with nRonn/v0.11.1
22
.\" https://github.com/n-ronn/nronn/tree/0.11.1
3-
.TH "BUNDLE\-ADD" "1" "February 2024" ""
3+
.TH "BUNDLE\-ADD" "1" "March 2024" ""
44
.SH "NAME"
55
\fBbundle\-add\fR \- Add gem to the Gemfile and run bundle install
66
.SH "SYNOPSIS"

bundler/lib/bundler/man/bundle-binstubs.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" generated with nRonn/v0.11.1
22
.\" https://github.com/n-ronn/nronn/tree/0.11.1
3-
.TH "BUNDLE\-BINSTUBS" "1" "February 2024" ""
3+
.TH "BUNDLE\-BINSTUBS" "1" "March 2024" ""
44
.SH "NAME"
55
\fBbundle\-binstubs\fR \- Install the binstubs of the listed gems
66
.SH "SYNOPSIS"

bundler/lib/bundler/man/bundle-cache.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" generated with nRonn/v0.11.1
22
.\" https://github.com/n-ronn/nronn/tree/0.11.1
3-
.TH "BUNDLE\-CACHE" "1" "February 2024" ""
3+
.TH "BUNDLE\-CACHE" "1" "March 2024" ""
44
.SH "NAME"
55
\fBbundle\-cache\fR \- Package your needed \fB\.gem\fR files into your application
66
.SH "SYNOPSIS"

bundler/lib/bundler/man/bundle-check.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" generated with nRonn/v0.11.1
22
.\" https://github.com/n-ronn/nronn/tree/0.11.1
3-
.TH "BUNDLE\-CHECK" "1" "February 2024" ""
3+
.TH "BUNDLE\-CHECK" "1" "March 2024" ""
44
.SH "NAME"
55
\fBbundle\-check\fR \- Verifies if dependencies are satisfied by installed gems
66
.SH "SYNOPSIS"

bundler/lib/bundler/man/bundle-clean.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" generated with nRonn/v0.11.1
22
.\" https://github.com/n-ronn/nronn/tree/0.11.1
3-
.TH "BUNDLE\-CLEAN" "1" "February 2024" ""
3+
.TH "BUNDLE\-CLEAN" "1" "March 2024" ""
44
.SH "NAME"
55
\fBbundle\-clean\fR \- Cleans up unused gems in your bundler directory
66
.SH "SYNOPSIS"

bundler/lib/bundler/man/bundle-config.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" generated with nRonn/v0.11.1
22
.\" https://github.com/n-ronn/nronn/tree/0.11.1
3-
.TH "BUNDLE\-CONFIG" "1" "February 2024" ""
3+
.TH "BUNDLE\-CONFIG" "1" "March 2024" ""
44
.SH "NAME"
55
\fBbundle\-config\fR \- Set bundler configuration options
66
.SH "SYNOPSIS"

bundler/lib/bundler/man/bundle-console.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" generated with nRonn/v0.11.1
22
.\" https://github.com/n-ronn/nronn/tree/0.11.1
3-
.TH "BUNDLE\-CONSOLE" "1" "February 2024" ""
3+
.TH "BUNDLE\-CONSOLE" "1" "March 2024" ""
44
.SH "NAME"
55
\fBbundle\-console\fR \- Deprecated way to open an IRB session with the bundle pre\-loaded
66
.SH "SYNOPSIS"

bundler/lib/bundler/man/bundle-doctor.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" generated with nRonn/v0.11.1
22
.\" https://github.com/n-ronn/nronn/tree/0.11.1
3-
.TH "BUNDLE\-DOCTOR" "1" "February 2024" ""
3+
.TH "BUNDLE\-DOCTOR" "1" "March 2024" ""
44
.SH "NAME"
55
\fBbundle\-doctor\fR \- Checks the bundle for common problems
66
.SH "SYNOPSIS"

0 commit comments

Comments
 (0)