Sha256: a28ba5f0a4317396c4b493fe3dc25f9d03b8431f2961a83a4ea517c2691d9aaa
Contents?: true
Size: 294 Bytes
Versions: 1
Compression:
Stored size: 294 Bytes
Contents
module Journeta module Common module Shutdown def stop_on_shutdown(engine) bye = Proc.new { engine.stop exit 0 } Signal.trap("HUP", bye) Signal.trap("INT", bye) # Signal.trap("KILL", bye) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
journeta-1.1.0 | lib/journeta/common/shutdown.rb |