class Bundler::Audit::Presenter::Base
Attributes
options[R]
shell[R]
Public Class Methods
new(shell, options)
click to toggle source
# File lib/bundler/audit/presenter/base.rb, line 8 def initialize(shell, options) @shell = shell @options = options @warnings = [] @advisory_bundles = [] end
Public Instance Methods
exit_code()
click to toggle source
# File lib/bundler/audit/presenter/base.rb, line 27 def exit_code problematic? ? 1 : 0 end
print_report()
click to toggle source
# File lib/bundler/audit/presenter/base.rb, line 23 def print_report raise RuntimeError, "Not Implemented" end
push_advisory(advisory)
click to toggle source
# File lib/bundler/audit/presenter/base.rb, line 19 def push_advisory(advisory) @advisory_bundles.push(advisory) end
push_warning(message)
click to toggle source
# File lib/bundler/audit/presenter/base.rb, line 15 def push_warning(message) @warnings.push(message) end
Protected Instance Methods
problematic?()
click to toggle source
# File lib/bundler/audit/presenter/base.rb, line 33 def problematic? @warnings.any? || @advisory_bundles.any? end