LOGSTASH_ENV=development vendor:gems will install gem that use the :git or :github option.

Fixes #2375
This commit is contained in:
Pier-Hugues Pellerin 2015-01-20 10:24:34 -05:00 committed by Jordan Sissel
parent d9b049f74b
commit 803ff7bab7

View file

@ -78,12 +78,19 @@ module LogStash
def bundler_install_command(gem_file, gem_path)
# for now avoid multiple jobs, ex.: --jobs 4
# it produces erratic exceptions and hangs (with Bundler 1.7.9)
[
options = [
"install",
"--gemfile=#{gem_file}",
"--without=development",
"--path", gem_path,
"--gemfile=#{gem_file}",
"--path",
gem_path,
]
# We don't install development gem from the gemfile.
# If you add a gem with `git` or the `github` option bundler will mark
# them as development and he will not install them.
# To install them you need to do LOGSTASH_ENV=development rake gems:vendor
options << "--without=development" unless LogStash::Environment.development?
options
end
def ruby_bin