Sha256: 4aaa897fad2ec92072b80578ae6fa30fb802408c7936bfdff51ec335cc9f3c97

Contents?: true

Size: 919 Bytes

Versions: 4

Compression:

Stored size: 919 Bytes

Contents

module Scaptimony
  class XccdfRule < ActiveRecord::Base
    # This is just an enumeration of ID's that have been found in the XCCDF contents uploaded
    # to Scaptimony.
    #
    # Each Xccdf:Rule may have contain other data useful to users (Title, idents, and description,
    # ...). These however needs to be carried by different entity (XccdfContentRule presumably).
    # That is because different XCCDF contents may refer to the very same ID, even though it may
    # have slightly different meaning in the context of given policy.
    #
    # There is still value in being able to enumerate the rules regardless of the policy. As we
    # can expect that when the ID matches, most of the things will match as well (consider
    # different version of the same policy). User may then want to search the results for a given
    # rule.
    #
    validates :xid, :presence => true, :uniqueness => true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
scaptimony-0.3.2 app/models/scaptimony/xccdf_rule.rb
scaptimony-0.3.1 app/models/scaptimony/xccdf_rule.rb
scaptimony-0.3.0 app/models/scaptimony/xccdf_rule.rb
scaptimony-0.2.0 app/models/scaptimony/xccdf_rule.rb