class method
self.process
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3Signature
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
-
actionreq -
pid_pathreq -
patternreq -
keywordreq
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