Sha256: 167b3f3777c3777fed93cf7f91329430b56dfd5cb5aaf630cee916d7a60e2df7
Contents?: true
Size: 897 Bytes
Versions: 6
Compression:
Stored size: 897 Bytes
Contents
module RSpactor module Interactor class << self def init_signal_traps # Ctrl-\ Signal.trap('QUIT') do RSpactor.listener.stop RSpactor.runner.start(:all => true) RSpactor.listener.start end # Ctrl-C Signal.trap('INT') do RSpactor.listener.stop if RSpactor.runner.run? UI.info "RSpec run canceled", :reset => true, :clear => RSpactor.options[:clear] RSpactor.runner.stop RSpactor.listener.start else UI.info "Bye bye...", :reset => true abort("\n") end end # Ctrl-Z Signal.trap('TSTP') do # UI.info "Reloading Spork...", :reset => true RSpactor.listener.stop # # Reload Spork RSpactor.listener.start end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems