Method: Orator::CLI#stop
- Defined in:
- lib/orator/cli.rb
#stop ⇒ Object
82 83 84 85 86 87 88 |
# File 'lib/orator/cli.rb', line 82 def stop if File.exists? [:pid_file] Process.kill 1, File.open([:pid_file], 'r').read.to_i puts "Stopped Orator." File.unlink [:pid_file] end end |