lib/licensed/commands/command.rb in licensed-2.13.0 vs lib/licensed/commands/command.rb in licensed-2.14.0

- old
+ new

@@ -70,9 +70,15 @@ # app - An application configuration # # Returns whether the command succeeded for the application. def run_app(app) reporter.report_app(app) do |report| + # ensure the app source path exists before evaluation + if !Dir.exist?(app.source_path) + report.errors << "No such directory #{app.source_path}" + next false + end + Dir.chdir app.source_path do begin # allow additional report data to be given by commands if block_given? next true if (yield report) == :skip