mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
parent
11d34204f5
commit
b72b167161
3 changed files with 12 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -33,6 +33,9 @@ qa/.vm_ssh_config
|
|||
qa/.vagrant
|
||||
qa/acceptance/.vagrant
|
||||
qa/Gemfile.lock
|
||||
Gemfile.jruby-1.9.lock
|
||||
.lock
|
||||
Gemfile
|
||||
*.ipr
|
||||
*.iws
|
||||
*.iml
|
||||
|
|
|
@ -13,7 +13,7 @@ module LogStash
|
|||
end
|
||||
end
|
||||
|
||||
# Patch to prevent Bundler to save a .bundle/config file in the root
|
||||
# Patch to prevent Bundler to save a .bundle/config file in the root
|
||||
# of the application
|
||||
::Bundler::Settings.module_exec do
|
||||
def set_key(key, value, hash, file)
|
||||
|
@ -95,6 +95,14 @@ module LogStash
|
|||
|
||||
require "bundler"
|
||||
require "bundler/cli"
|
||||
|
||||
# create Gemfile from template iff it does not exist
|
||||
unless ::File.exists?(Environment::GEMFILE_PATH)
|
||||
::FileUtils.copy(
|
||||
::File.join(ENV["LOGSTASH_HOME"], "Gemfile.template"), Environment::GEMFILE_PATH
|
||||
)
|
||||
end
|
||||
|
||||
LogStash::Bundler.patch!
|
||||
|
||||
# force Rubygems sources to our Gemfile sources
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue