You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bundler/lib/bundler/cli.rb
+22-31Lines changed: 22 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -173,7 +173,7 @@ def init
173
173
D
174
174
method_option"dry-run",type: :boolean,default: false,banner: "Lock the Gemfile"
175
175
method_option"gemfile",type: :string,banner: "Use the specified gemfile instead of Gemfile"
176
-
method_option"path",type: :string,banner: "Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME).#{" Bundler will remember this value for future installs on this machine"unlessBundler.feature_flag.forget_cli_options?}"
176
+
method_option"path",type: :string,banner: "Specify a different path than the system default, namely, $BUNDLE_PATH or $GEM_HOME (removed)"
177
177
defcheck
178
178
remembered_flag_deprecation("path")
179
179
@@ -211,26 +211,26 @@ def remove(*gems)
211
211
If the bundle has already been installed, bundler will tell you so and then exit.
212
212
D
213
213
method_option"binstubs",type: :string,lazy_default: "bin",banner: "Generate bin stubs for bundled gems to ./bin"
214
-
method_option"clean",type: :boolean,banner: "Run bundle clean automatically after install"
215
-
method_option"deployment",type: :boolean,banner: "Install using defaults tuned for deployment environments"
216
-
method_option"frozen",type: :boolean,banner: "Do not allow the Gemfile.lock to be updated after this install"
214
+
method_option"clean",type: :boolean,banner: "Run bundle clean automatically after install (removed)"
215
+
method_option"deployment",type: :boolean,banner: "Install using defaults tuned for deployment environments (removed)"
216
+
method_option"frozen",type: :boolean,banner: "Do not allow the Gemfile.lock to be updated after this install (removed)"
217
217
method_option"full-index",type: :boolean,banner: "Fall back to using the single-file index of all gems"
218
218
method_option"gemfile",type: :string,banner: "Use the specified gemfile instead of Gemfile"
219
219
method_option"jobs",aliases: "-j",type: :numeric,banner: "Specify the number of jobs to run in parallel"
220
220
method_option"local",type: :boolean,banner: "Do not attempt to fetch gems remotely and use the gem cache instead"
221
221
method_option"prefer-local",type: :boolean,banner: "Only attempt to fetch gems remotely if not present locally, even if newer versions are available remotely"
222
222
method_option"no-cache",type: :boolean,banner: "Don't update the existing gem cache."
223
223
method_option"force",type: :boolean,aliases: "--redownload",banner: "Force reinstalling every gem, even if already installed"
224
-
method_option"no-prune",type: :boolean,banner: "Don't remove stale gems from the cache."
225
-
method_option"path",type: :string,banner: "Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME).#{" Bundler will remember this value for future installs on this machine"unlessBundler.feature_flag.forget_cli_options?}"
224
+
method_option"no-prune",type: :boolean,banner: "Don't remove stale gems from the cache (removed)."
225
+
method_option"path",type: :string,banner: "Specify a different path than the system default, namely, $BUNDLE_PATH or $GEM_HOME (removed)."
226
226
method_option"quiet",type: :boolean,banner: "Only output warnings and errors."
227
-
method_option"shebang",type: :string,banner: "Specify a different shebang executable name than the default (usually 'ruby')"
227
+
method_option"shebang",type: :string,banner: "Specify a different shebang executable name than the default, usually 'ruby' (removed)"
228
228
method_option"standalone",type: :array,lazy_default: [],banner: "Make a bundle that can work without the Bundler runtime"
229
-
method_option"system",type: :boolean,banner: "Install to the system location ($BUNDLE_PATH or $GEM_HOME) even if the bundle was previously installed somewhere else for this application"
229
+
method_option"system",type: :boolean,banner: "Install to the system location ($BUNDLE_PATH or $GEM_HOME) even if the bundle was previously installed somewhere else for this application (removed)"
230
230
method_option"trust-policy",alias: "P",type: :string,banner: "Gem trust policy (like gem install -P). Must be one of #{Bundler.rubygems.security_policy_keys.join("|")}"
231
231
method_option"target-rbconfig",type: :string,banner: "Path to rbconfig.rb for the deployment target platform"
232
-
method_option"without",type: :array,banner: "Exclude gems that are part of the specified named group."
233
-
method_option"with",type: :array,banner: "Include gems that are part of the specified named group."
232
+
method_option"without",type: :array,banner: "Exclude gems that are part of the specified named group (removed)."
233
+
method_option"with",type: :array,banner: "Include gems that are part of the specified named group (removed)."
method_option"path",type: :string,lazy_default: "bin",banner: "Binstub destination directory, `bin` by default (removed)"
327
327
method_option"shebang",type: :string,banner: "Specify a different shebang executable name than the default (usually 'ruby')"
328
328
method_option"standalone",type: :boolean,banner: "Make binstubs that can work without the Bundler runtime"
329
329
method_option"all",type: :boolean,banner: "Install binstubs for all gems"
@@ -396,15 +396,15 @@ def fund
396
396
end
397
397
398
398
desc"cache [OPTIONS]","Locks and then caches all of the gems into vendor/cache"
399
-
method_option"all",type: :boolean,default: Bundler.feature_flag.cache_all?,banner: "Include all sources (including path and git)."
399
+
method_option"all",type: :boolean,default: Bundler.settings[:cache_all],banner: "Include all sources (including path and git) (removed)."
400
400
method_option"all-platforms",type: :boolean,banner: "Include gems for all platforms present in the lockfile, not only the current one"
401
401
method_option"cache-path",type: :string,banner: "Specify a different cache path than the default (vendor/cache)."
402
402
method_option"gemfile",type: :string,banner: "Use the specified gemfile instead of Gemfile"
403
403
method_option"no-install",type: :boolean,banner: "Don't install the gems, only update the cache."
404
-
method_option"no-prune",type: :boolean,banner: "Don't remove stale gems from the cache."
405
-
method_option"path",type: :string,banner: "Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME).#{" Bundler will remember this value for future installs on this machine"unlessBundler.feature_flag.forget_cli_options?}"
404
+
method_option"no-prune",type: :boolean,banner: "Don't remove stale gems from the cache (removed)."
405
+
method_option"path",type: :string,banner: "Specify a different path than the system default, namely, $BUNDLE_PATH or $GEM_HOME (removed)."
406
406
method_option"quiet",type: :boolean,banner: "Only output warnings and errors."
407
-
method_option"frozen",type: :boolean,banner: "Do not allow the Gemfile.lock to be updated after this bundle cache operation's install"
407
+
method_option"frozen",type: :boolean,banner: "Do not allow the Gemfile.lock to be updated after this bundle cache operation's install (removed)"
408
408
long_desc<<-D
409
409
The cache command will copy the .gem files for every gem in the bundle into the
410
410
directory ./vendor/cache. If you then check that directory into your source
@@ -420,16 +420,12 @@ def cache
420
420
end
421
421
422
422
ifflag_passed?("--path")
423
-
message=
424
-
"The `--path` flag is deprecated because its semantics are unclear. " \
425
-
"Use `bundle config cache_path` to configure the path of your cache of gems, " \
426
-
"and `bundle config path` to configure the path where your gems are installed, " \
427
-
"and stop using this flag"
428
423
removed_message=
429
424
"The `--path` flag has been removed because its semantics were unclear. " \
430
425
"Use `bundle config cache_path` to configure the path of your cache of gems, " \
431
-
"and `bundle config path` to configure the path where your gems are installed."
Binstubs are scripts that wrap around executables\. Bundler creates a small Ruby file (a binstub) that loads Bundler, runs the command, and puts it into \fBbin/\fR\. Binstubs are a shortcut\-or alternative\- to always using \fBbundleexec\fR\. This gives you a file that can be run directly, and one that will always run the correct gem version used by the application\.
10
10
.P
11
11
For example, if you run \fBbundlebinstubsrspec\-core\fR, Bundler will create the file \fBbin/rspec\fR\. That file will contain enough code to load Bundler, tell it to load the bundled gems, and then run rspec\.
12
12
.P
13
-
This command generates binstubs for executables in \fBGEM_NAME\fR\. Binstubs are put into \fBbin\fR, or the \fB\-\-path\fRdirectory if one has been set\. Calling binstubs with [GEM [GEM]] will create binstubs for all given gems\.
13
+
This command generates binstubs for executables in \fBGEM_NAME\fR\. Binstubs are put into \fBbin\fR, or the directory specified by \fBbin\fRsetting if it has been configured\. Calling binstubs with [GEM [GEM]] will create binstubs for all given gems\.
14
14
.SH "OPTIONS"
15
15
.TP
16
16
\fB\-\-force\fR
17
17
Overwrite existing binstubs if they exist\.
18
18
.TP
19
-
\fB\-\-path[=PATH]\fR
20
-
The location to install the specified binstubs to\. This defaults to \fBbin\fR\.
21
-
.TP
22
19
\fB\-\-standalone\fR
23
20
Makes binstubs that can work without depending on Rubygems or Bundler at runtime\.
0 commit comments