Method: Flydata::Command::Sender#kill_all

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

#kill_all(optiosn = {}) ⇒ Object



109
110
111
112
113
114
115
116
# File 'lib/flydata/command/sender.rb', line 109

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