lib/roku_builder/controller.rb in roku_builder-3.8.5 vs lib/roku_builder/controller.rb in roku_builder-3.9.0
- old
+ new
@@ -5,14 +5,10 @@
# Controls all interaction with other classes
class Controller
# Run the builder
# @param options [Hash] The options hash
- def self.run(options:)
- logger = Logger.new(STDOUT)
- logger.formatter = proc {|severity, datetime, _progname, msg|
- "[%s #%s] %5s: %s\n\r" % [datetime.strftime("%Y-%m-%d %H:%M:%S.%4N"), $$, severity, msg]
- }
+ def self.run(options:, logger:)
if options[:debug]
logger.level = Logger::DEBUG
elsif options[:verbose]
logger.level = Logger::INFO
else