public Method

Killer.process(action)

There's no documentation for this item.

Source Code

# File commands/process/reaper.rb, line 52
def process(action)
  pids = find_processes

  if pids.empty?
    warn "Couldn't find any pid file in '#{@pid_path}' matching '#{@pattern}'"
    warn "(also looked for processes matching #{@keyword.inspect})" if @keyword
  else
    pids.each do |pid|
      puts "#{action.capitalize}ing #{pid}"
      self.class.send(action, pid)
    end

    delete_pid_files if terminating?(action)
  end      
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.