Class: Pipeline::BundleAudit
- Includes:
- Util
- Defined in:
- lib/pipeline/tasks/bundle-audit.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) ⇒ BundleAudit
constructor
A new instance of BundleAudit.
- #run ⇒ Object
- #supported? ⇒ Boolean
Methods included from Util
#fingerprint, #relative_path, #runsystem, #strip_archive_path
Methods inherited from BaseTask
#directories_with?, #report, #severity, #warn
Constructor Details
#initialize(trigger, tracker) ⇒ BundleAudit
Returns a new instance of BundleAudit.
10 11 12 13 14 15 16 17 |
# File 'lib/pipeline/tasks/bundle-audit.rb', line 10 def initialize(trigger, tracker) super(trigger, tracker) @name = "BundleAudit" @description = "Dependency Checker analysis for Ruby" @stage = :code @labels << "code" << "ruby" @results = {} end |
Instance Method Details
#analyze ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/pipeline/tasks/bundle-audit.rb', line 28 def analyze # puts @result begin get_warnings rescue Exception => e Pipeline.warn e. Pipeline.notify "Appears not to be a project with Gemfile.lock or there was another problem ... bundle-audit skipped." end end |