2018-11-02 19:07:56 -04:00
|
|
|
BUNDLE-BINSTUBS(1) BUNDLE-BINSTUBS(1)
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
NAME
|
|
|
|
bundle-binstubs - Install the binstubs of the listed gems
|
2018-11-02 19:07:56 -04:00
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
SYNOPSIS
|
|
|
|
bundle binstubs GEM_NAME [--force] [--path PATH] [--standalone]
|
2018-11-02 19:07:56 -04:00
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
DESCRIPTION
|
2018-11-02 19:07:56 -04:00
|
|
|
Binstubs are scripts that wrap around executables. Bundler creates a
|
|
|
|
small Ruby file (a binstub) that loads Bundler, runs the command, and
|
2019-04-14 02:01:35 -04:00
|
|
|
puts it into bin/. Binstubs are a shortcut-or alternative- to always
|
2019-07-10 11:26:55 -04:00
|
|
|
using bundle exec. This gives you a file that can be run directly, and
|
2018-11-02 19:07:56 -04:00
|
|
|
one that will always run the correct gem version used by the applica-
|
|
|
|
tion.
|
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
For example, if you run bundle binstubs rspec-core, Bundler will create
|
|
|
|
the file bin/rspec. That file will contain enough code to load Bundler,
|
2018-11-02 19:07:56 -04:00
|
|
|
tell it to load the bundled gems, and then run rspec.
|
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
This command generates binstubs for executables in GEM_NAME. Binstubs
|
|
|
|
are put into bin, or the --path directory if one has been set. Calling
|
2018-11-02 19:07:56 -04:00
|
|
|
binstubs with [GEM [GEM]] will create binstubs for all given gems.
|
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
OPTIONS
|
|
|
|
--force
|
2018-11-02 19:07:56 -04:00
|
|
|
Overwrite existing binstubs if they exist.
|
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
--path The location to install the specified binstubs to. This defaults
|
|
|
|
to bin.
|
2018-11-02 19:07:56 -04:00
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
--standalone
|
2018-11-02 19:07:56 -04:00
|
|
|
Makes binstubs that can work without depending on Rubygems or
|
|
|
|
Bundler at runtime.
|
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
--shebang
|
2018-11-02 19:07:56 -04:00
|
|
|
Specify a different shebang executable name than the default
|
|
|
|
(default 'ruby')
|
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
BUNDLE INSTALL --BINSTUBS
|
2018-11-02 19:07:56 -04:00
|
|
|
To create binstubs for all the gems in the bundle you can use the
|
2019-04-14 02:01:35 -04:00
|
|
|
--binstubs flag in bundle install(1) bundle-install.1.html.
|
2018-11-02 19:07:56 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-11 03:57:45 -05:00
|
|
|
November 2019 BUNDLE-BINSTUBS(1)
|