Class: Pipeline::BaseReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/pipeline/reporters/base_reporter.rb

Direct Known Subclasses

CSVReporter, JSONReporter, JiraReporter, TextReporter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBaseReporter

Returns a new instance of BaseReporter.



6
7
# File 'lib/pipeline/reporters/base_reporter.rb', line 6

def initialize()
end

Instance Attribute Details

#formatObject

Returns the value of attribute format.



4
5
6
# File 'lib/pipeline/reporters/base_reporter.rb', line 4

def format
  @format
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/pipeline/reporters/base_reporter.rb', line 4

def name
  @name
end

Instance Method Details

#out(finding) ⇒ Object



18
19
# File 'lib/pipeline/reporters/base_reporter.rb', line 18

def out(finding)
end

#run_report(tracker) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/pipeline/reporters/base_reporter.rb', line 9

def run_report(tracker)
	Pipeline.notify "Running base reoprt..."
	output = ""
      tracker.findings.each do |finding|
  	  output += out(finding)
      end
      output
end