mirror of
https://github.com/inspec/inspec
synced 2025-03-03 06:47:22 +00:00
* Plugin example, CLI resource lister * Move example plugin into a directory to look like a regular project * Skeleton of testing for example plugin * Example plugin unit tests work * Functional tests added, using core helper * Add a global method to determine InSpec install root * Add linter support to the example * Adjust inspec project rubocop to run linter on example plugins * Linter autocorrections * Update readme Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
9 lines
222 B
Ruby
9 lines
222 B
Ruby
module Inspec
|
|
def self.config_dir
|
|
ENV['INSPEC_CONFIG_DIR'] ? ENV['INSPEC_CONFIG_DIR'] : File.join(Dir.home, '.inspec')
|
|
end
|
|
|
|
def self.src_root
|
|
File.expand_path(File.join(__FILE__, '..', '..', '..'))
|
|
end
|
|
end
|