class FIS::Auth::Runner
Manages the local Sinatra/Thin server in a forked process
Public Instance Methods
start()
click to toggle source
# File lib/fis/auth/runner.rb, line 7 def start @pid = fork do Thin::Logging.silent = true Server.start! end Process.detach(@pid) end
stop()
click to toggle source
# File lib/fis/auth/runner.rb, line 16 def stop Process.kill('SIGINT', @pid) if @pid end