class Inspec::Schema

Constants

CONTROL
CONTROL_GROUP
EXEC_JSON
EXEC_JSONMIN
LIST
MIN_CONTROL
PLATFORM
PLATFORMS

using a proc here so we can lazy load it when we need

PROFILE
REF
REFS
RESULT
STATISTICS
SUPPORTS
TAGS

Tags are open right, with simple key-value associations and not restrictions

Public Class Methods

json(name) click to toggle source
# File lib/inspec/schema.rb, line 237
def self.json(name)
  if !LIST.key?(name)
    raise("Cannot find schema #{name.inspect}.")
  elsif LIST[name].is_a?(Proc)
    v = LIST[name].call
  else
    v = LIST[name]
  end

  JSON.dump(v)
end
names() click to toggle source
# File lib/inspec/schema.rb, line 233
def self.names
  LIST.keys
end