Skip to content

Commit

Permalink
use Environment.jruby?
Browse files Browse the repository at this point in the history
  • Loading branch information
colinsurprenant authored and jordansissel committed Jun 19, 2015
1 parent cad4976 commit 535027d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/logstash/agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,8 @@ def show_version

if [:info, :debug].include?(verbosity?) || debug? || verbose?
show_version_ruby

if RUBY_PLATFORM == "java"
show_version_java
end

if [:debug].include?(verbosity?) || debug?
show_gems
end
show_version_java if LogStash::Environment.jruby?
show_gems if [:debug].include?(verbosity?) || debug?
end
end # def show_version

Expand Down

0 comments on commit 535027d

Please sign in to comment.