lib/tobox/cli.rb in tobox-0.3.2 vs lib/tobox/cli.rb in tobox-0.4.0
- old
+ new
@@ -16,17 +16,17 @@
end
def run
options = @options
+ # boot
+ options.fetch(:require).each(&method(:require))
+
config = Configuration.new do |c|
c.instance_eval(File.read(options.fetch(:config_file)), options.fetch(:config_file), 1)
end
logger = config.default_logger
-
- # boot
- options.fetch(:require).each(&method(:require))
# signals
pipe_read, pipe_write = IO.pipe
%w[INT TERM].each do |sig|
old_handler = Signal.trap(sig) do