Sha256: fd4b89ddeb612d63bcf4749f7766599756770de713b73b42668d05d402c837ed
Contents?: true
Size: 455 Bytes
Versions: 27
Compression:
Stored size: 455 Bytes
Contents
module ForemanOpenscap module LogExtensions extend ActiveSupport::Concern included do SCAP_RESULT = %w[pass fail error unknown notapplicable notchecked notselected informational fixed].freeze validate :scap_result end private def scap_result if report.is_a? ForemanOpenscap::ArfReport errors.add(:result, _('is not included in SCAP_RESULT')) unless SCAP_RESULT.include? result end end end end
Version data entries
27 entries across 27 versions & 1 rubygems