lib/licensed/reporters/reporter.rb
# Generate a report for a licensed app configuration
# Yields a report object which can be used to view or add
# data generated for this app
#
# app - An application configuration
#
# Returns the result of the yielded method
# Note - must be called from inside the `report_run` scope
Generate a report for a licensed app configuration
Yields a report object which can be used to view or add
data generated for this app

An application configuration

Returns the result of the yielded method
Note - must be called from inside the `report_run` scope
Generate a report for a licensed app configuration Yields a report object which can be used to view or add data generated for this app An application configuration Returns the result of the yielded method Note - must be called from inside the ` report_run ` scope
def report_app(app)
        raise ReportingError.new("Cannot call report_app with active app context") unless @app_report.nil?
        raise ReportingError.new("Call report_run before report_app") if @run_report.nil?
        result = nil
        @app_report = Report.new(name: app["name"], target: app)
        begin
          result = yield @app_report
        ensure
          @run_report.reports << @app_report
          @app_report = nil
        end
        result
      end
def report_app ( app ) raise ReportingError . new ( "Cannot call report_app with active app context" ) unless @app_report . nil? raise ReportingError . new ( "Call report_run before report_app" ) if @run_report . nil? result = nil @app_report = Report . new ( name : app [ "name" ] , target : app ) begin result = yield @app_report ensure @run_report . reports << @app_report @app_report = nil end result end
Generate a report for a licensed app configuration
Yields a report object which can be used to view or add
data generated for this app
Generate a report for a licensed app configuration Yields a report object which can be used to view or add data generated for this app
app
<not_specific>