Method: Orator::CLI#stop

Defined in:
lib/orator/cli.rb

#stopObject



82
83
84
85
86
87
88
# File 'lib/orator/cli.rb', line 82

def stop
  if File.exists? yaml_options[:pid_file]
    Process.kill 1, File.open(yaml_options[:pid_file], 'r').read.to_i
    puts "Stopped Orator."
    File.unlink yaml_options[:pid_file]
  end
end