This method is deprecated or moved on the latest stable version.
The last existing version (v1.1.6) is shown here.
process_keywords(action, *keywords)
public
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:
# File railties/lib/commands/process/reaper.rb, line 17
def process_keywords(action, *keywords)
processes = keywords.collect { |keyword| find_by_keyword(keyword) }.flatten
if processes.empty?
puts "Couldn't find any process matching: #{keywords.join(" or ")}"
else
processes.each do |process|
puts "#{action.capitalize}ing #{process}"
process.send(action)
end
end
end