Top Level Namespace

Defined Under Namespace

Modules: EventMachine, Resque, Travis

Instance Method Summary collapse

Instance Method Details

#startObject



51
52
53
# File 'bin/travis-ruby', line 51

def start
  Travis::Builder.init
end

#stop(worker) ⇒ Object



37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'bin/travis-ruby', line 37

def stop(worker)
  abort "** travis-ruby kill WORKER_ID" if worker.nil?
  pid = worker.split(':')[1].to_i

  begin
    Process.kill("KILL", pid)
    puts "** killed #{worker}"
  rescue Errno::ESRCH
    puts "** worker #{worker} not running"
  end

  remove worker
end