Files

Journeta::Common::Shutdown

Public Instance Methods

stop_on_shutdown(engine) click to toggle source
    # File lib/journeta/common/shutdown.rb, line 7
 7:       def stop_on_shutdown(engine)
 8:         bye = Proc.new {
 9:           engine.stop
10:           exit 0
11:         }
12:         Signal::trap("HUP", bye)
13:         Signal::trap("INT", bye)
14:         Signal::trap("KILL", bye)
15:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.