Module: Blinky::CCTrayServer

Includes:
Chicanery
Defined in:
lib/ci_server_plugins/cctray_server_plugin.rb

Instance Method Summary collapse

Instance Method Details

#watch_cctray_server(url, options = {}) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/ci_server_plugins/cctray_server_plugin.rb', line 7

def watch_cctray_server url, options = {}    
  server Chicanery::Cctray.new 'blinky build', url, options

  when_run do |current_state|
    current_state.has_failure? ? failure! : success!
  end
  
  begin
    run_every 15
  rescue => e
    warning!
    raise e
  end
end