class method self.process

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.2.3

Signature

self.process(action, pid_path, pattern, keyword)

Searches for all processes matching the given keywords, and then invokes a specific action on each of them. This is useful for (e.g.) reloading a set of processes:

Killer.process(:reload, "/tmp/pids", "dispatcher.*.pid")

Parameters

action req
pid_path req
pattern req
keyword req
Source
# File railties/lib/commands/process/reaper.rb, line 14
    def process(action, pid_path, pattern, keyword)
      new(pid_path, pattern, keyword).process(action)
    end

Defined in railties/lib/commands/process/reaper.rb line 14 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Killer

Type at least 2 characters to search.

↑↓ navigate · open · esc close