lib/licensed/commands/environment.rb in licensed-3.1.0 vs lib/licensed/commands/environment.rb in licensed-3.2.0
- old
+ new
@@ -27,16 +27,10 @@
"root" => config.root
}
end
end
- def run(**options)
- super do |report|
- report["git_repo"] = Licensed::Git.git_repo?
- end
- end
-
# Returns the default reporter to use during the command run
#
# options - The options the command was run with
#
# Returns a Licensed::Reporters::StatusReporter
@@ -44,14 +38,21 @@
Licensed::Reporters::YamlReporter.new
end
protected
- def run_app(app)
- reporter.report_app(app) do |report|
- report.merge! AppEnvironment.new(app).to_h
- true
- end
+ def run_command(report)
+ report["git_repo"] = Licensed::Git.git_repo?
+ super
+ end
+
+ def run_app(app, report)
+ report.merge! AppEnvironment.new(app).to_h
+ super
+ end
+
+ def run_source(app, source, report)
+ true
end
end
end
end