bundle install --binstubs为我们服务的是什么?

时间:2017-07-15 19:32:49

标签: ruby bundler gemfile

何时执行以下命令?另外,你能解释一下它给我们带来了什么吗?

$ bundle install --binstubs

1 个答案:

答案 0 :(得分:2)

来自bundle install --help手册页

--binstubs[=<directory>]
              Creates a directory (defaults to ~/bin) and place any executables from the gem there. These executables run in Bundler's context. If used, you might add this directory to your
              environment's PATH variable. For instance, if the rails gem comes with a rails executable, this flag will create a bin/rails executable that ensures that all  referred  depen-
              dencies will be resolved using the bundled gems.