File: .kick

package info (click to toggle)
ruby-github-markup 1.5.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 336 kB
  • ctags: 118
  • sloc: ruby: 373; python: 113; sh: 21; makefile: 15
file content (26 lines) | stat: -rw-r--r-- 562 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# take control of the growl notifications
module GrowlHacks
  def growl(type, subject, body, *args, &block)
    case type
    when Kicker::GROWL_NOTIFICATIONS[:succeeded]
      puts subject = "Success"
      body = body.split("\n").last
    when Kicker::GROWL_NOTIFICATIONS[:failed]
      subject = "Failure"
      puts body
      body = body.split("\n").last
    else
      return nil
    end
    super(type, subject, body, *args, &block)
  end
end

Kicker.send :extend, GrowlHacks

# no logging
Kicker::Utils.module_eval do
  def log(message)
    nil
  end
end