class Inspec::RunData

Constants

Control
Platform
Profile
Result
SCHEMA_VERSION

This is the data layout version of RunData. We plan to follow a data-oriented version of semver:

patch: fixing a bug in the provenance or description of a data element, no key changes
minor: adding new data elements
major: deleting or renaming data elements

Less than major version 1.0.0, the API is considered unstable. The current plan is to bump the major version to 1.0.0 when all of the existing core reporters have been migrated to plugins. It is probable that new data elements and new Hash compatibility behavior will be added during the core reporter plugin conversion process.

Statistics

{:duration=>0.018407, :controls=>{:total=>3, :passed=>{:total=>3}, :skipped=>{:total=>0}, :failed=>{:total=>0}}}

Public Class Methods

compatible_schema?(constraints) click to toggle source
# File lib/inspec/run_data.rb, line 52
def self.compatible_schema?(constraints)
  reqs = Gem::Requirement.create(constraints)
  reqs.satisfied_by?(Gem::Version.new(SCHEMA_VERSION))
end