lib/licensed/commands/command.rb in licensed-3.2.2 vs lib/licensed/commands/command.rb in licensed-3.2.3

- old
+ new

@@ -119,16 +119,19 @@ # # app - The application configuration for the source # source - A dependency source enumerator # report - A report object for this source # - # Returns whether the command succeeded for the dependency source enumerator + # Returns whether the command succeeded, failed, or was skipped for the dependency source enumerator def run_source(app, source, report) reporter.begin_report_source(source, report) if !sources_overrides.empty? && !sources_overrides.include?(source.class.type) report.warnings << "skipped source" - return true + + # return a symbol to speficy the source was skipped. + # This is truthy and will result in the source being considered successful + return :skipped end dependencies = source.dependencies.sort_by { |dependency| dependency.name } results = dependencies.map do |dependency| dependency_report = Licensed::Report.new(name: [report.name, dependency.name].join("."), target: dependency)