lib/roku_builder/plugins/loader.rb in roku_builder-4.27.1 vs lib/roku_builder/plugins/loader.rb in roku_builder-4.27.2
- old
+ new
@@ -49,9 +49,21 @@
[Navigator]
end
# Sideload an app onto a roku device
def sideload(options:, device: nil)
+ if !options[:logfile].nil?
+ if options[:logfile].match("config")
+ options[:logfile] = @config.console_log
+ end
+ if options[:clearfile]
+ if !options[:logfile].nil?
+ File.delete(options[:logfile]) if File.exist?(options[:logfile])
+ else
+ @logger.unknown "Cannot clear, console_log file not set."
+ end
+ end
+ end
did_build = false
unless options[:in]
did_build = true
build(options: options)
end