class Protobuf::CLI

def configure_traps

TODO add signal handling for hot-reloading the application.
Configure signal traps.
def configure_traps
  debug_say 'Configuring traps'
  [:INT, :QUIT, :TERM].each do |signal|
    debug_say "Registering signal trap for #{signal}", :blue
    trap(signal) do
      ::Protobuf::Logger.info { 'RPC Server shutting down...' }
      @start_aborted = true
      @runner.stop
      ::Protobuf::Logger.info { 'Shutdown complete' }
    end
  end
end