class Roxanne::Jenkins::Consumer
Constants
- COLORS
Public Instance Methods
handle_response(body)
click to toggle source
# File lib/roxanne/jenkins/consumer.rb, line 8 def handle_response(body) json = JSON.parse(body) status = :green json['jobs'].each do |job| if COLORS.keys.include?(job['color']) status = prioritize(to_status(job['color']), status) end end status end
Private Instance Methods
to_status(hudson_color)
click to toggle source
# File lib/roxanne/jenkins/consumer.rb, line 29 def to_status(hudson_color) COLORS[hudson_color] end