class Licensed::Commands::Environment
Public Instance Methods
Source
# File lib/licensed/commands/environment.rb, line 37 def default_reporter(options) Licensed::Reporters::YamlReporter.new end
Returns the default reporter to use during the command run
options - The options the command was run with
Returns a Licensed::Reporters::StatusReporter
Protected Instance Methods
Source
# File lib/licensed/commands/environment.rb, line 48 def run_app(app, report) report.merge! AppEnvironment.new(app).to_h super end
Calls superclass method
Licensed::Commands::Command#run_app
Source
# File lib/licensed/commands/environment.rb, line 43 def run_command(report) report["git_repo"] = Licensed::Git.git_repo? super end
Calls superclass method
Licensed::Commands::Command#run_command
Source
# File lib/licensed/commands/environment.rb, line 53 def run_source(app, source, report) true end