class Licensed::Commands::Environment

Public Instance Methods

default_reporter(options) click to toggle source

Returns the default reporter to use during the command run

options - The options the command was run with

Returns a Licensed::Reporters::StatusReporter

# File lib/licensed/commands/environment.rb, line 37
def default_reporter(options)
  Licensed::Reporters::YamlReporter.new
end

Protected Instance Methods

run_app(app, report) click to toggle source
Calls superclass method Licensed::Commands::Command#run_app
# File lib/licensed/commands/environment.rb, line 48
def run_app(app, report)
  report.merge! AppEnvironment.new(app).to_h
  super
end
run_command(report) click to toggle source
Calls superclass method Licensed::Commands::Command#run_command
# File lib/licensed/commands/environment.rb, line 43
def run_command(report)
  report["git_repo"] = Licensed::Git.git_repo?
  super
end
run_source(app, source, report) click to toggle source
# File lib/licensed/commands/environment.rb, line 53
def run_source(app, source, report)
  true
end