module Uc::Unicorn::Helper
Public Instance Methods
first_worker?()
click to toggle source
# File lib/uc/unicorn/helper.rb, line 9 def first_worker? worker.nr == 0 end
last_worker?()
click to toggle source
# File lib/uc/unicorn/helper.rb, line 13 def last_worker? (worker.nr + 1) == server.worker_processes end
old_pid()
click to toggle source
# File lib/uc/unicorn/helper.rb, line 17 def old_pid "#{server.config[:pid]}.oldbin" end
restart?()
click to toggle source
# File lib/uc/unicorn/helper.rb, line 5 def restart? (File.readable? old_pid) && (server.pid != old_pid) end