modulesync 4.0.0-10-g1c946c3

This commit is contained in:
Bram Vogelaar 2021-01-11 22:31:05 +01:00
parent 264d4ab24b
commit 0da811dfc6
No known key found for this signature in database
GPG key ID: 02374F82C00E4984
19 changed files with 682 additions and 0 deletions

18
spec/spec_helper.rb Normal file
View file

@ -0,0 +1,18 @@
# This file is managed via modulesync
# https://github.com/voxpupuli/modulesync
# https://github.com/voxpupuli/modulesync_config
# puppetlabs_spec_helper will set up coverage if the env variable is set.
# We want to do this if lib exists and it hasn't been explicitly set.
ENV['COVERAGE'] ||= 'yes' if Dir.exist?(File.expand_path('../../lib', __FILE__))
require 'voxpupuli/test/spec_helper'
if File.exist?(File.join(__dir__, 'default_module_facts.yml'))
facts = YAML.safe_load(File.read(File.join(__dir__, 'default_module_facts.yml')))
if facts
facts.each do |name, value|
add_custom_fact name.to_sym, value
end
end
end