Method: Compliance::Configuration#legacy_check!

Defined in:
lib/bundles/inspec-compliance/configuration.rb

#legacy_check!(feature) ⇒ Object

exit 1 if the version of compliance that we’re working with doesn’t support odic



73
74
75
76
77
78
79
# File 'lib/bundles/inspec-compliance/configuration.rb', line 73

def legacy_check!(feature)
  if !supported?(feature)
    puts "This feature (#{feature}) is not available for legacy installations."
    puts 'Please upgrade to a recent version of Chef Compliance.'
    exit 1
  end
end