Sha256: 48cccedae0bbcc942c0410997f5071428fa986ba6fca26568649a0eace791da7
Contents?: true
Size: 540 Bytes
Versions: 4
Compression:
Stored size: 540 Bytes
Contents
module Janky module Notifier class ChatService def self.completed(build) status = build.green? ? "was successful" : "failed" color = build.green? ? "green" : "red" message = "Build #%s (%s) of %s/%s %s (%ss) %s" % [ build.number, build.sha1, build.repo_name, build.branch_name, status, build.duration, build.compare ] ::Janky::ChatService.speak(message, build.room_id, {:color => color}) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems