Class: Licensed::Reporters::Reporter

Inherits:
Object
  • Object
show all
Defined in:
lib/licensed/reporters/reporter.rb

Defined Under Namespace

Classes: ReportingError

Instance Method Summary collapse

Constructor Details

#initialize(shell = Licensed::UI::Shell.new) ⇒ Reporter

Returns a new instance of Reporter.



7
8
9
# File 'lib/licensed/reporters/reporter.rb', line 7

def initialize(shell = Licensed::UI::Shell.new)
  @shell = shell
end

Instance Method Details

#begin_report_app(app, report) ⇒ Object

Report the beginning of an app evaluation

app - An application configuration report - A report object containing information about the app evaluation



29
30
# File 'lib/licensed/reporters/reporter.rb', line 29

def begin_report_app(app, report)
end

#begin_report_command(command, report) ⇒ Object

Report the beginning of a command evaluation

command - The command being run report - A report object containing information about the command run



15
16
# File 'lib/licensed/reporters/reporter.rb', line 15

def begin_report_command(command, report)
end

#begin_report_dependency(dependency, report) ⇒ Object

Report the beginning of a dependency evaluation

dependency - An application dependency source - A report object containing information about the dependency evaluation



57
58
# File 'lib/licensed/reporters/reporter.rb', line 57

def begin_report_dependency(dependency, report)
end

#begin_report_source(source, report) ⇒ Object

Report the beginning of a source evaluation

source - A dependency source enumerator report - A report object containing information about the source evaluation



43
44
# File 'lib/licensed/reporters/reporter.rb', line 43

def begin_report_source(source, report)
end

#end_report_app(app, report) ⇒ Object

Report the end of an app evaluation

app - An application configuration report - A report object containing information about the app evaluation



36
37
# File 'lib/licensed/reporters/reporter.rb', line 36

def end_report_app(app, report)
end

#end_report_command(command, report) ⇒ Object

Report the end of a command evaluation

command - The command being run report - A report object containing information about the command run



22
23
# File 'lib/licensed/reporters/reporter.rb', line 22

def end_report_command(command, report)
end

#end_report_dependency(dependency, report) ⇒ Object

Report the end of a dependency evaluation

dependency - An application dependency source - A report object containing information about the dependency evaluation



64
65
# File 'lib/licensed/reporters/reporter.rb', line 64

def end_report_dependency(dependency, report)
end

#end_report_source(source, report) ⇒ Object

Report the end of a source evaluation

source - A dependency source enumerator report - A report object containing information about the source evaluation



50
51
# File 'lib/licensed/reporters/reporter.rb', line 50

def end_report_source(source, report)
end