bin/roku in roku_builder-3.12.8 vs bin/roku in roku_builder-3.13.0
- old
+ new
@@ -10,14 +10,10 @@
options = {}
options[:config] = '~/.roku_config.json'
options[:update_manifest] = false
-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]
-}
parser = OptionParser.new do |opts|
opts.banner = "Usage: roku <command> [options]"
opts.on("-l", "--sideload", "Command: Sideload an app") do
@@ -131,11 +127,11 @@
opts.on("-s", "--stage STAGE", "Set the stage to use. Default: 'production'") do |b|
options[:stage] = b
options[:set_stage] = true
end
- opts.on("-M", "--manifest-update", "Update the manifest file while packaging") do
+ opts.on("-M", "--manifest-update", "Update the manifest file while building or packaging") do
options[:update_manifest] = true
end
opts.on("-i", "--inspect", "Print inspection information while packaging") do
options[:inspect] = true
@@ -197,10 +193,10 @@
end
end
begin
parser.parse!
- RokuBuilder::Controller.run(options: options, logger: logger)
-rescue OptionParser::ParseError => e
- logger.fatal e.message
+ RokuBuilder::Controller.run(options: options)
+rescue StandardError => e
+ RokuBuilder::Logger.instance.fatal e.message
end