Skip to content
Snippets Groups Projects
Unverified Commit b5a51de8 authored by Jonathan Gazeley's avatar Jonathan Gazeley
Browse files

Convert to PDK

parent edd5fce5
No related branches found
No related tags found
No related merge requests found
---
*.rb eol=lf
*.erb eol=lf
*.pp eol=lf
*.sh eol=lf
*.epp eol=lf
*.swp .git/
pkg/ .*.sw[op]
spec/fixures/ .metadata
.gemfile.lock .yardoc
Gemfile.lock .yardwarns
*.iml
/.bundle/
/.idea/
/.vagrant/
/coverage/
/bin/
/doc/
/Gemfile.local
/Gemfile.lock
/junit/
/log/
/pkg/
/spec/fixtures/manifests/ /spec/fixtures/manifests/
/spec/fixtures/modules/ /spec/fixtures/modules/
.ruby-gemset /tmp/
.ruby-version /vendor/
/convert_report.txt
/update_report.txt
.DS_Store
.project
.envrc
/inventory.yaml
---
stages:
- syntax
- unit
cache:
paths:
- vendor/bundle
before_script:
- bundle -v
- rm Gemfile.lock || true
- gem update --system $RUBYGEMS_VERSION
- gem --version
- bundle -v
- bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop-Ruby 2.5.3-Puppet ~> 6:
stage: syntax
image: ruby:2.5.3
script:
- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
variables:
PUPPET_GEM_VERSION: '~> 6'
parallel_spec-Ruby 2.5.3-Puppet ~> 6:
stage: unit
image: ruby:2.5.3
script:
- bundle exec rake parallel_spec
variables:
PUPPET_GEM_VERSION: '~> 6'
parallel_spec-Ruby 2.4.5-Puppet ~> 5:
stage: unit
image: ruby:2.4.5
script:
- bundle exec rake parallel_spec
variables:
PUPPET_GEM_VERSION: '~> 5'
.git/
.*.sw[op]
.metadata
.yardoc
.yardwarns
*.iml
/.bundle/
/.idea/
/.vagrant/
/coverage/
/bin/
/doc/
/Gemfile.local
/Gemfile.lock
/junit/
/log/
/pkg/
/spec/fixtures/manifests/
/spec/fixtures/modules/
/tmp/
/vendor/
/convert_report.txt
/update_report.txt
.DS_Store
.project
.envrc
/inventory.yaml
/appveyor.yml
/.fixtures.yml
/Gemfile
/.gitattributes
/.gitignore
/.gitlab-ci.yml
/.pdkignore
/Rakefile
/rakelib/
/.rspec
/.rubocop.yml
/.travis.yml
/.yardopts
/spec/
/.vscode/
# Use this file to instruct puppet-lint to ignore certain checks. --relative
# For the complete list of checks and flags to disable them,
# refer to <http://puppet-lint.com/checks/>.
# Examples (uncomment before use):
#--no-80chars-check
#--no-class_inherits_from_params_class-check
#--no-inherits_across_namespaces-check
.rspec 0 → 100644
--color
--format documentation
---
require:
- rubocop-rspec
- rubocop-i18n
AllCops:
DisplayCopNames: true
TargetRubyVersion: '2.1'
Include:
- "./**/*.rb"
Exclude:
- bin/*
- ".vendor/**/*"
- "**/Gemfile"
- "**/Rakefile"
- pkg/**/*
- spec/fixtures/**/*
- vendor/**/*
- "**/Puppetfile"
- "**/Vagrantfile"
- "**/Guardfile"
Metrics/LineLength:
Description: People have wide screens, use them.
Max: 200
GetText:
Enabled: false
GetText/DecorateString:
Description: We don't want to decorate test output.
Exclude:
- spec/**/*
RSpec/BeforeAfterAll:
Description: Beware of using after(:all) as it may cause state to leak between tests.
A necessary evil in acceptance testing.
Exclude:
- spec/acceptance/**/*.rb
RSpec/HookArgument:
Description: Prefer explicit :each argument, matching existing module's style
EnforcedStyle: each
Style/BlockDelimiters:
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
be consistent then.
EnforcedStyle: braces_for_chaining
Style/ClassAndModuleChildren:
Description: Compact style reduces the required amount of indentation.
EnforcedStyle: compact
Style/EmptyElse:
Description: Enforce against empty else clauses, but allow `nil` for clarity.
EnforcedStyle: empty
Style/FormatString:
Description: Following the main puppet project's style, prefer the % format format.
EnforcedStyle: percent
Style/FormatStringToken:
Description: Following the main puppet project's style, prefer the simpler template
tokens over annotated ones.
EnforcedStyle: template
Style/Lambda:
Description: Prefer the keyword for easier discoverability.
EnforcedStyle: literal
Style/RegexpLiteral:
Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
EnforcedStyle: percent_r
Style/TernaryParentheses:
Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
on complex expressions for better readability, but seriously consider breaking
it up.
EnforcedStyle: require_parentheses_when_complex
Style/TrailingCommaInArguments:
Description: Prefer always trailing comma on multiline argument lists. This makes
diffs, and re-ordering nicer.
EnforcedStyleForMultiline: comma
Style/TrailingCommaInLiteral:
Description: Prefer always trailing comma on multiline literals. This makes diffs,
and re-ordering nicer.
EnforcedStyleForMultiline: comma
Style/SymbolArray:
Description: Using percent style obscures symbolic intent of array's contents.
EnforcedStyle: brackets
RSpec/MessageSpies:
EnforcedStyle: receive
Style/Documentation:
Exclude:
- lib/puppet/parser/functions/**/*
- spec/**/*
Style/WordArray:
EnforcedStyle: brackets
Style/CollectionMethods:
Enabled: true
Style/MethodCalledOnDoEndBlock:
Enabled: true
Style/StringMethods:
Enabled: true
Layout/EndOfLine:
Enabled: false
Layout/IndentHeredoc:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/ParameterLists:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
RSpec/DescribeClass:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/MessageExpectation:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/NestedGroups:
Enabled: false
Style/AsciiComments:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/SymbolProc:
Enabled: false
---
dist: xenial
language: ruby
cache: bundler
before_install:
- bundle -v
- rm -f Gemfile.lock
- gem update --system $RUBYGEMS_VERSION
- gem --version
- bundle -v
script:
- 'bundle exec rake $CHECK'
bundler_args: --without system_tests
rvm:
- 2.5.3
stages:
- static
- spec
- acceptance
-
if: tag =~ ^v\d
name: deploy
matrix:
fast_finish: true
include:
-
env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint"
stage: static
-
env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
rvm: 2.4.5
stage: spec
-
env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
rvm: 2.5.3
stage: spec
-
env: DEPLOY_TO_FORGE=yes
stage: deploy
branches:
only:
- master
- /^v\d/
notifications:
email: false
{
"recommendations": [
"jpogran.puppet-vscode",
"rebornix.Ruby"
]
}
--markup markdown
source "https://rubygems.org" source ENV['GEM_SOURCE'] || 'https://rubygems.org'
group :test do def location_for(place_or_version, fake_version = nil)
gem "rake" git_url_regex = %r{\A(?<url>(https?|git)[:@][^#]*)(#(?<branch>.*))?}
gem "puppet", ENV['PUPPET_VERSION'] || '~> 3.8.3' file_url_regex = %r{\Afile:\/\/(?<path>.*)}
gem "rspec-puppet", :git => 'https://github.com/rodjek/rspec-puppet.git'
gem "puppetlabs_spec_helper"
gem 'rspec-puppet-utils', :git => 'https://github.com/Accuity/rspec-puppet-utils.git'
gem 'hiera-puppet-helper', :git => 'https://github.com/bobtfish/hiera-puppet-helper.git'
gem "metadata-json-lint"
gem 'puppet-syntax'
gem 'puppet-lint'
end
group :integration do if place_or_version && (git_url = place_or_version.match(git_url_regex))
gem "beaker", :git => 'https://github.com/puppetlabs/beaker.git' [fake_version, { git: git_url[:url], branch: git_url[:branch], require: false }].compact
gem "beaker-rspec", :git => 'https://github.com/puppetlabs/beaker-rspec.git' elsif place_or_version && (file_url = place_or_version.match(file_url_regex))
gem "vagrant-wrapper" ['>= 0', { path: File.expand_path(file_url[:path]), require: false }]
gem 'serverspec' else
[place_or_version, { require: false }]
end
end end
ruby_version_segments = Gem::Version.new(RUBY_VERSION.dup).segments
minor_version = ruby_version_segments[0..1].join('.')
group :development do group :development do
gem "travis" gem "fast_gettext", '1.1.0', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.1.0')
gem "travis-lint" gem "fast_gettext", require: false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.1.0')
gem "puppet-blacksmith" gem "json_pure", '<= 2.0.1', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
gem "guard-rake" gem "json", '= 1.8.1', require: false if Gem::Version.new(RUBY_VERSION.dup) == Gem::Version.new('2.1.9')
gem "json", '= 2.0.4', require: false if Gem::Requirement.create('~> 2.4.2').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "rb-readline", '= 0.5.5', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "puppet-module-posix-default-r#{minor_version}", '~> 0.3', require: false, platforms: [:ruby]
gem "puppet-module-posix-dev-r#{minor_version}", '~> 0.3', require: false, platforms: [:ruby]
gem "puppet-module-win-default-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "puppet-module-win-dev-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
end
puppet_version = ENV['PUPPET_GEM_VERSION']
facter_version = ENV['FACTER_GEM_VERSION']
hiera_version = ENV['HIERA_GEM_VERSION']
gems = {}
gems['puppet'] = location_for(puppet_version)
# If facter or hiera versions have been specified via the environment
# variables
gems['facter'] = location_for(facter_version) if facter_version
gems['hiera'] = location_for(hiera_version) if hiera_version
if Gem.win_platform? && puppet_version =~ %r{^(file:///|git://)}
# If we're using a Puppet gem on Windows which handles its own win32-xxx gem
# dependencies (>= 3.5.0), set the maximum versions (see PUP-6445).
gems['win32-dir'] = ['<= 0.4.9', require: false]
gems['win32-eventlog'] = ['<= 0.6.5', require: false]
gems['win32-process'] = ['<= 0.7.5', require: false]
gems['win32-security'] = ['<= 0.2.5', require: false]
gems['win32-service'] = ['0.8.8', require: false]
end
gems.each do |gem_name, gem_params|
gem gem_name, *gem_params
end
# Evaluate Gemfile.local and ~/.gemfile if they exist
extra_gemfiles = [
"#{__FILE__}.local",
File.join(Dir.home, '.gemfile'),
]
extra_gemfiles.each do |gemfile|
if File.file?(gemfile) && File.readable?(gemfile)
eval(File.read(gemfile), binding)
end
end end
# vim: syntax=ruby
require 'puppet_litmus/rake_tasks' if Bundler.rubygems.find_name('puppet_litmus').any?
require 'puppetlabs_spec_helper/rake_tasks' require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'
require 'puppet-syntax/tasks/puppet-syntax' require 'puppet-syntax/tasks/puppet-syntax'
require 'puppet_blacksmith/rake_tasks' if Bundler.rubygems.find_name('puppet-blacksmith').any?
require 'github_changelog_generator/task' if Bundler.rubygems.find_name('github_changelog_generator').any?
require 'puppet-strings/tasks' if Bundler.rubygems.find_name('puppet-strings').any?
# These two gems aren't always present, for instance def changelog_user
# on Travis with --without development return unless Rake.application.top_level_tasks.include? "changelog"
begin returnVal = nil || JSON.load(File.read('metadata.json'))['author']
require 'puppet_blacksmith/rake_tasks' raise "unable to find the changelog_user in .sync.yml, or the author in metadata.json" if returnVal.nil?
Blacksmith::RakeTask.new do |t| puts "GitHubChangelogGenerator user:#{returnVal}"
t.tag_pattern = "v%s" # Use a custom pattern with git tag. %s is replaced with the version number. returnVal
end end
rescue LoadError
end
PuppetLint.configuration.relative = true
PuppetLint.configuration.send("disable_80chars")
PuppetLint.configuration.log_format = "%{path}:%{linenumber}:%{check}:%{KIND}:%{message}"
PuppetLint.configuration.fail_on_warnings = true
# Forsake support for Puppet 2.6.2 for the benefit of cleaner code.
# http://puppet-lint.com/checks/class_parameter_defaults/
PuppetLint.configuration.send('disable_class_parameter_defaults')
# http://puppet-lint.com/checks/class_inherits_from_params_class/
PuppetLint.configuration.send('disable_class_inherits_from_params_class')
exclude_paths = [ def changelog_project
"pkg/**/*", return unless Rake.application.top_level_tasks.include? "changelog"
"vendor/**/*", returnVal = nil || JSON.load(File.read('metadata.json'))['source'].match(%r{.*/([^/]*)})[1]
"spec/**/*", raise "unable to find the changelog_project in .sync.yml or the name in metadata.json" if returnVal.nil?
] puts "GitHubChangelogGenerator project:#{returnVal}"
PuppetLint.configuration.ignore_paths = exclude_paths returnVal
PuppetSyntax.exclude_paths = exclude_paths
task :metadata do
sh "metadata-json-lint metadata.json"
end end
desc "Run syntax, lint, and spec tests." def changelog_future_release
task :test => [ return unless Rake.application.top_level_tasks.include? "changelog"
:syntax, returnVal = "v%s" % JSON.load(File.read('metadata.json'))['version']
:lint, raise "unable to find the future_release (version) in metadata.json" if returnVal.nil?
:spec, puts "GitHubChangelogGenerator future_release:#{returnVal}"
:metadata, returnVal
]
def io_popen(command)
IO.popen(command) do |io|
io.each do |line|
print line
yield line if block_given?
end
end
end end
desc 'Vagrant VM power up and provision' PuppetLint.configuration.send('disable_relative')
task :vagrant_up, [:manifest, :hostname] do |t, args|
args.with_defaults(:manifest => 'init.pp', :hostname => '') if Bundler.rubygems.find_name('github_changelog_generator').any?
Rake::Task['spec_prep'].execute GitHubChangelogGenerator::RakeTask.new :changelog do |config|
ENV['VAGRANT_MANIFEST'] = args[:manifest] raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake.application.top_level_tasks.include? "changelog" and ENV['CHANGELOG_GITHUB_TOKEN'].nil?
provision = false config.user = "#{changelog_user}"
io_popen("vagrant up #{args[:hostname]}") do |line| config.project = "#{changelog_project}"
provision = true if line =~ /is already running./ config.future_release = "#{changelog_future_release}"
config.exclude_labels = ['maintenance']
config.header = "# Change log\n\nAll notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org)."
config.add_pr_wo_labels = true
config.issues = false
config.merge_prefix = "### UNCATEGORIZED PRS; GO LABEL THEM"
config.configure_sections = {
"Changed" => {
"prefix" => "### Changed",
"labels" => ["backwards-incompatible"],
},
"Added" => {
"prefix" => "### Added",
"labels" => ["feature", "enhancement"],
},
"Fixed" => {
"prefix" => "### Fixed",
"labels" => ["bugfix"],
},
}
end end
io_popen("vagrant provision #{args[:hostname]}") if provision else
desc 'Generate a Changelog from GitHub'
task :changelog do
raise <<EOM
The changelog tasks depends on unreleased features of the github_changelog_generator gem.
Please manually add it to your .sync.yml for now, and run `pdk update`:
---
Gemfile:
optional:
':development':
- gem: 'github_changelog_generator'
git: 'https://github.com/skywinder/github-changelog-generator'
ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018'
condition: "Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')"
EOM
end end
# Cleanup vagrant environment
desc 'Vagrant VM shutdown and fixtures cleanup'
task :vagrant_destroy do
Rake::Task['spec_prep'].execute
`vagrant destroy -f`
Rake::Task['spec_clean'].execute
end end
---
version: 1.1.x.{build}
branches:
only:
- master
- release
skip_commits:
message: /^\(?doc\)?.*/
clone_depth: 10
init:
- SET
- 'mkdir C:\ProgramData\PuppetLabs\code && exit 0'
- 'mkdir C:\ProgramData\PuppetLabs\facter && exit 0'
- 'mkdir C:\ProgramData\PuppetLabs\hiera && exit 0'
- 'mkdir C:\ProgramData\PuppetLabs\puppet\var && exit 0'
environment:
matrix:
-
RUBY_VERSION: 24-x64
CHECK: syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
-
PUPPET_GEM_VERSION: ~> 5.0
RUBY_VERSION: 24
CHECK: parallel_spec
-
PUPPET_GEM_VERSION: ~> 5.0
RUBY_VERSION: 24-x64
CHECK: parallel_spec
-
PUPPET_GEM_VERSION: ~> 6.0
RUBY_VERSION: 25
CHECK: parallel_spec
-
PUPPET_GEM_VERSION: ~> 6.0
RUBY_VERSION: 25-x64
CHECK: parallel_spec
matrix:
fast_finish: true
install:
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
- bundle install --jobs 4 --retry 2 --without system_tests
- type Gemfile.lock
build: off
test_script:
- bundle exec puppet -V
- ruby -v
- gem -v
- bundle -v
- bundle exec rake %CHECK%
notifications:
- provider: Email
to:
- nobody@nowhere.com
on_build_success: false
on_build_failure: false
on_build_status_changed: false
...@@ -7,6 +7,28 @@ ...@@ -7,6 +7,28 @@
"source": "https://github.com/djjudas21/puppet-freeradius", "source": "https://github.com/djjudas21/puppet-freeradius",
"project_page": "https://github.com/djjudas21/puppet-freeradius", "project_page": "https://github.com/djjudas21/puppet-freeradius",
"issues_url": "https://github.com/djjudas21/puppet-freeradius/issues", "issues_url": "https://github.com/djjudas21/puppet-freeradius/issues",
"dependencies": [
{
"name": "puppetlabs/stdlib",
"version_range": ">=4.0.0"
},
{
"name": "puppetlabs/firewall",
"version_range": ">=1.0.0 <2.0.0"
},
{
"name": "saz/rsyslog",
"version_range": ">=3.0.0"
},
{
"name": "puppet/logrotate",
"version_range": ">=1.4.0"
},
{
"name": "puppetlabs/concat",
"version_range": ">=1.0.0"
}
],
"operatingsystem_support": [ "operatingsystem_support": [
{ {
"operatingsystem": "RedHat", "operatingsystem": "RedHat",
...@@ -36,32 +58,13 @@ ...@@ -36,32 +58,13 @@
] ]
} }
], ],
"dependencies": [
{
"name": "puppetlabs/stdlib",
"version_range": ">=4.0.0"
},
{
"name": "puppetlabs/firewall",
"version_range": ">=1.0.0 <2.0.0"
},
{
"name": "saz/rsyslog",
"version_range": ">=3.0.0"
},
{
"name": "puppet/logrotate",
"version_range": ">=1.4.0"
},
{
"name": "puppetlabs/concat",
"version_range": ">=1.0.0"
}
],
"requirements": [ "requirements": [
{ {
"name": "puppet", "name": "puppet",
"version_requirement": ">=4.0.0 <5.0.0" "version_requirement": ">=4.0.0 <5.0.0"
} }
] ],
"pdk-version": "1.12.0",
"template-url": "pdk-default#1.12.0",
"template-ref": "1.12.0-0-g55d9ae2"
} }
# Use default_module_facts.yml for module specific facts.
#
# Facts specified here will override the values provided by rspec-puppet-facts.
---
ipaddress: "172.16.254.254"
is_pe: false
macaddress: "AA:AA:AA:AA:AA:AA"
require 'puppetlabs_spec_helper/module_spec_helper' require 'puppetlabs_spec_helper/module_spec_helper'
require 'rspec-puppet-utils' require 'rspec-puppet-facts'
# if your using puppet4, the following gem seems to causes issues
require 'hiera-puppet-helper'
# Uncomment this to show coverage report, also useful for debugging require 'spec_helper_local' if File.file?(File.join(File.dirname(__FILE__), 'spec_helper_local.rb'))
#at_exit { RSpec::Puppet::Coverage.report! }
#set to "yes" to enable the future parser, the equivalent of setting parser=future in puppet.conf. include RspecPuppetFacts
#ENV['FUTURE_PARSER'] = 'yes'
# set to "yes" to enable strict variable checking, the equivalent of setting strict_variables=true in puppet.conf. default_facts = {
#ENV['STRICT_VARIABLES'] = 'yes' puppetversion: Puppet.version,
facterversion: Facter.version,
}
# set to the desired ordering method ("title-hash", "manifest", or "random") to set the order of unrelated resources default_fact_files = [
# when applying a catalog. Leave unset for the default behavior, currently "random". This is equivalent to setting File.expand_path(File.join(File.dirname(__FILE__), 'default_facts.yml')),
# ordering in puppet.conf. File.expand_path(File.join(File.dirname(__FILE__), 'default_module_facts.yml')),
#ENV['ORDERING'] = 'random' ]
# set to "no" to enable structured facts, otherwise leave unset to retain the current default behavior. default_fact_files.each do |f|
# This is equivalent to setting stringify_facts=false in puppet.conf. next unless File.exist?(f) && File.readable?(f) && File.size?(f)
#ENV['STRINGIFY_FACTS'] = 'no'
# set to "yes" to enable the $facts hash and trusted node data, which enabled $facts and $trusted hashes. begin
# This is equivalent to setting trusted_node_data=true in puppet.conf. default_facts.merge!(YAML.safe_load(File.read(f), [], [], true))
#ENV['TRUSTED_NODE_DATA'] = 'yes' rescue => e
RSpec.configuration.reporter.message "WARNING: Unable to load #{f}: #{e}"
end
end
# read default_facts and merge them over what is provided by facterdb
default_facts.each do |fact, value|
add_custom_fact fact, value
end
RSpec.configure do |c| RSpec.configure do |c|
c.formatter = 'documentation' c.default_facts = default_facts
c.mock_with :rspec c.before :each do
# set to strictest setting for testing
# by default Puppet runs at warning level
Puppet.settings[:strict] = :warning
end
c.filter_run_excluding(bolt: true) unless ENV['GEM_BOLT']
c.after(:suite) do
end end
end
# Ensures that a module is defined
# @param module_name Name of the module
def ensure_module_defined(module_name)
module_name.split('::').reduce(Object) do |last_module, next_module|
last_module.const_set(next_module, Module.new) unless last_module.const_defined?(next_module, false)
last_module.const_get(next_module, false)
end
end
# 'spec_overrides' from sync.yml will appear below this line
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment