Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
Support td-agent 2.5 for gem parser
Browse files Browse the repository at this point in the history
  • Loading branch information
repeatedly committed Jun 22, 2018
1 parent ee0db09 commit a28982f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/gems_parser.rb
Expand Up @@ -29,6 +29,10 @@ def windows?
end

def td_agent_2?
(ENV['BUILD_TD_AGENT_VERSION'] || 3).to_i == 2
!td_agent_3?
end

def td_agent_3?
(ENV['BUILD_TD_AGENT_VERSION'] || 3).to_s == '3'
end
end

0 comments on commit a28982f

Please sign in to comment.