mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
build core gems in same process as rake command instead of spawning new process
Fixes #5075
This commit is contained in:
parent
d90e9f36fe
commit
92c619de82
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
require_relative "default_plugins"
|
||||
require 'rubygems'
|
||||
|
||||
namespace "plugin" do
|
||||
|
||||
|
@ -88,7 +89,10 @@ namespace "plugin" do
|
|||
|
||||
puts("[plugin:build-local-core-gem] Building #{File.join(path, name)}.gemspec")
|
||||
|
||||
system("cd #{path}; gem build #{name}.gemspec")
|
||||
Dir.chdir(path) do
|
||||
spec = Gem::Specification.load("#{name}.gemspec")
|
||||
Gem::Package.build(spec)
|
||||
end
|
||||
|
||||
task.reenable # Allow this task to be run again
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue