Class: Pipeline::ScanJS
- Defined in:
- lib/pipeline/tasks/scanjs.rb
Instance Attribute Summary
Attributes inherited from BaseTask
#appname, #description, #findings, #labels, #name, #stage, #trigger, #warnings
Instance Method Summary collapse
- #analyze ⇒ Object
-
#initialize(trigger, tracker) ⇒ ScanJS
constructor
WIP Pipeline::Tasks.add self.
- #run ⇒ Object
- #supported? ⇒ Boolean
Methods inherited from BaseTask
#directories_with?, #report, #severity, #warn
Constructor Details
Instance Method Details
#analyze ⇒ Object
22 23 24 |
# File 'lib/pipeline/tasks/scanjs.rb', line 22 def analyze puts @result end |
#run ⇒ Object
16 17 18 19 20 |
# File 'lib/pipeline/tasks/scanjs.rb', line 16 def run Pipeline.notify "#{@name}" rootpath = @trigger.path @result=`scanner.js -t "#{rootpath}"` end |
#supported? ⇒ Boolean
26 27 28 29 |
# File 'lib/pipeline/tasks/scanjs.rb', line 26 def supported? # In future, verify tool is available. return true end |