Class: CycloneDX::CocoaPods::CLIRunner
- Inherits:
-
Object
- Object
- CycloneDX::CocoaPods::CLIRunner
- Defined in:
- lib/cyclonedx/cocoapods/cli_runner.rb
Overview
Interprets CLI parameters and runs the main workflow.
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/cyclonedx/cocoapods/cli_runner.rb', line 38 def run setup_logger # Needed in case we have errors while processing CLI parameters = determine_output_format() setup_logger(verbose: [:verbose]) @logger.debug "Running cyclonedx-cocoapods with options: #{}" component, manufacturer, pods, manifest_path, dependencies = analyze() build_and_write_bom(, component, manufacturer, pods, manifest_path, dependencies) rescue StandardError => e @logger.error ([e.] + e.backtrace).join($INPUT_RECORD_SEPARATOR) exit 1 end |