method

find_processes_via_grep

Importance_0
v1.2.6 - Show latest stable - 0 notes - Class: Killer
find_processes_via_grep() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/commands/process/reaper.rb, line 82
    def find_processes_via_grep
      lines = `ps axww -o 'pid command' | grep #{@keyword}`.split(/\n/).
        reject { |line| line =~ /inq|ps axww|grep|spawn-fcgi|spawner|reaper/ }
      lines.map { |line| line[/^\s*(\d+)/, 1].to_i }
    end
Register or log in to add new notes.