Sha256: ade94aa5021525ddda19cceaebfdbc04feddafe32a734a426f4f475bf77397d5
Contents?: true
Size: 656 Bytes
Versions: 3
Compression:
Stored size: 656 Bytes
Contents
module Guard module Interactor def self.init_signal_traps # Run all (Ctrl-\) Signal.trap('QUIT') do ::Guard.run do ::Guard.guards.each(&:run_all) end end # Stop (Ctrl-C) Signal.trap('INT') do ::Guard.listener.stop if ::Guard.guards.all?(&:stop) UI.info "Bye bye...", :reset => true, :clear => false abort("\n") else ::Guard.listener.start end end # Reload (Ctrl-Z) Signal.trap('TSTP') do ::Guard.run do ::Guard.guards.each(&:reload) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
guard-0.1.0 | lib/guard/interactor.rb |
guard-0.1.0.beta.2 | lib/guard/interactor.rb |
guard-0.1.0.beta.1 | lib/guard/interactor.rb |