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
This allows for specifying the lockfile to read and write. It mirrors
the --gemfile option, and has higher priority than the lockfile
method in the Gemfile. It also mirrors the bundle lock --lockfile
option.
When the --lockfile option is used, it is applied twice. First, before
the Gemfile is read, to specify the lockfile to operate on, and again
after the Gemfile is read, so that if the Gemfile has a lockfile
method that overrides the defintion's lockfile, the --lockfile option
still has higher precedence.
method_option"gemfile",type: :string,banner: "Use the specified gemfile instead of Gemfile"
233
245
method_option"jobs",aliases: "-j",type: :numeric,banner: "Specify the number of jobs to run in parallel"
234
246
method_option"local",type: :boolean,banner: "Do not attempt to fetch gems remotely and use the gem cache instead"
247
+
method_option"lockfile",type: :string,banner: "Use the specified lockfile instead of the default."
235
248
method_option"prefer-local",type: :boolean,banner: "Only attempt to fetch gems remotely if not present locally, even if newer versions are available remotely"
236
249
method_option"no-cache",type: :boolean,banner: "Don't update the existing gem cache."
237
250
method_option"no-lock",type: :boolean,banner: "Don't create a lockfile."
Install the gems specified in your Gemfile(5)\. If this is the first time you run bundle install (and a \fBGemfile\.lock\fR does not exist), Bundler will fetch all remote sources, resolve dependencies and install all needed gems\.
10
10
.P
@@ -28,6 +28,9 @@ The maximum number of parallel download and install jobs\. The default is the nu
28
28
\fB\-\-local\fR
29
29
Do not attempt to connect to \fBrubygems\.org\fR\. Instead, Bundler will use the gems already present in Rubygems' cache or in \fBvendor/cache\fR\. Note that if an appropriate platform\-specific gem exists on \fBrubygems\.org\fR it will not be found\.
30
30
.TP
31
+
\fB\-\-lockfile=LOCKFILE\fR
32
+
The location of the lockfile which Bundler should use\. This defaults to the Gemfile location with \fB\.lock\fR appended\.
33
+
.TP
31
34
\fB\-\-prefer\-local\fR
32
35
Force using locally installed gems, or gems already present in Rubygems' cache or in \fBvendor/cache\fR, when resolving, even if newer versions are available remotely\. Only attempt to connect to \fBrubygems\.org\fR for gems that are not present locally\.
0 commit comments