Documented lib/inspec/resources.rb current usage.

Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
Ryan Davis 2019-08-20 15:48:31 -07:00
parent 3b69967cc8
commit 4590fee51d

View file

@ -1,3 +1,12 @@
##
# Now that resources are lazily loaded, this file is ONLY here for one
# reason at this point, to load all the resources in order to populate
# the registry for `inspec shell`'s `help commands`. There has to be a
# cheaper way to do this, but this will do for now.
#
# NOTE: I intentionally didn't convert this to a loop over a simple
# glob so this remains a sort of manifest for our resources.
require "inspec/resource" require "inspec/resource"
# Detect if we are running the stripped-down inspec-core # Detect if we are running the stripped-down inspec-core