Method: Flydata::Command::Sender#kill_all

Defined in:
lib/flydata/command/sender.rb

#kill_all(optiosn = {}) ⇒ Object



98
99
100
101
102
103
104
105
# File 'lib/flydata/command/sender.rb', line 98

def kill_all(optiosn = {})
  if Kernel.system("ps ax | grep 'flydata' | grep -v grep | awk '{print \"kill  \" $1}' | sh")
    say("Done.") unless options[:quiet]
    return true
  else
    raise 'Something has gone wrong...'
  end
end