Sha256: 42b33a6cbc1bd362347d9e903dd0c6bf1c314c3eb4a46c7b69d9bb3bbedaae49
Contents?: true
Size: 996 Bytes
Versions: 1
Compression:
Stored size: 996 Bytes
Contents
require "fileutils" module DashTimelineValidator class CLI def self.error_exit(report) DashTimelineValidator::Log.info(report) exit(-1) end def self.main(manifest) begin FileUtils.mkdir_p DashTimelineValidator::Options::ANALYZER_FOLDER DashTimelineValidator::Log.info("The manifest #{manifest} will be processed at #{DashTimelineValidator::Options::ANALYZER_FOLDER} folder.") mpd_content = DashTimelineValidator::DashFile.fetch_file(manifest) DashTimelineValidator::Log.info(DashTimelineValidator::Validator.analyze(manifest, mpd_content)) rescue StandardError => e DashTimelineValidator::Log.warn("There was an error: #{e.inspect}") DashTimelineValidator::Log.warn(e.backtrace.join("\n\t")) DashTimelineValidator::Log.warn("Removing the folder #{DashTimelineValidator::Options::ANALYZER_FOLDER}") FileUtils.rm_rf DashTimelineValidator::Options::ANALYZER_FOLDER end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dash_timeline_validator-0.1.0 | lib/dash_timeline_validator/cli.rb |