Sha256: 118dadf0f77947ed30a0b92a050ea1560f030bd2771a38ce388697c10b7d3721
Contents?: true
Size: 749 Bytes
Versions: 3
Compression:
Stored size: 749 Bytes
Contents
module Bundler module Audit module Presenter class Base attr_reader :options attr_reader :shell def initialize(shell, options) @shell = shell @options = options @warnings = [] @advisory_bundles = [] end def push_warning(message) @warnings.push(message) end def push_advisory(advisory) @advisory_bundles.push(advisory) end def print_report raise RuntimeError, "Not Implemented" end def exit_code problematic? ? 1 : 0 end protected def problematic? @warnings.any? || @advisory_bundles.any? end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bundler-budit-0.6.3 | lib/bundler/audit/presenter/base.rb |
bundler-budit-0.6.2 | lib/bundler/audit/presenter/base.rb |
bundler-budit-0.6.1 | lib/bundler/audit/presenter/base.rb |