Skip to content

Commit

Permalink
move plugins gemfile to tools
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvd authored and jordansissel committed Dec 4, 2014
1 parent e5366d2 commit 68c03cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions rakelib/plugin.rake
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,20 @@ namespace "plugin" do
gem_path = ENV['GEM_PATH']
gem_home = ENV['GEM_HOME']
env = {
"GEM_PATH" => "#{ENV['GEM_PATH']}:vendor/bundle/jruby/1.9",
"GEM_PATH" => [
ENV['GEM_PATH'],
::File.join(LogStash::Environment::LOGSTASH_HOME, 'build/bootstrap'),
::File.join(LogStash::Environment::LOGSTASH_HOME, 'vendor/bundle/jruby/1.9'),
::File.join(LogStash::Environment::LOGSTASH_HOME, 'vendor/jruby/lib/ruby/gems/shared')
].join(":"),
"GEM_HOME" => "vendor/plugins/jruby/1.9"
}
if ENV['USE_RUBY'] != '1'
jruby = File.join("vendor", "jruby", "bin", "jruby")
bundle = File.join("build", "bootstrap", "bin", "bundle")
system(env, jruby, "-S", bundle, "install")
system(env, jruby, "-S", bundle, "install", "--gemfile=tools/Gemfile.plugins")
else
system(env, "bundle", "install")
system(env, "bundle", "install", "--gemfile=tools/Gemfile.plugins")
end
ENV['GEM_PATH'] = gem_path
ENV['GEM_HOME'] = gem_home
Expand Down
File renamed without changes.

0 comments on commit 68c03cf

Please sign in to comment.