lib/phobos/cli/runner.rb in phobos-1.8.0 vs lib/phobos/cli/runner.rb in phobos-1.8.1
- old
+ new
@@ -1,11 +1,12 @@
+# frozen_string_literal: true
+
module Phobos
module CLI
class Runner
+ SIGNALS = [:INT, :TERM, :QUIT].freeze
- SIGNALS = %i( INT TERM QUIT ).freeze
-
def initialize
@signal_queue = []
@reader, @writer = IO.pipe
@executor = Phobos::Executor.new
end
@@ -40,9 +41,8 @@
def unblock(signal)
writer.write_nonblock('.')
signal_queue << signal
end
-
end
end
end