From 30957d9159d761c0a96bdcaf537a34ff855d7f6f Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Fri, 15 Feb 2019 13:23:23 +0200 Subject: [PATCH] (maint) load rake tasks from optional libraries This removes the need for the same loading code in pdk-templates at https://github.com/puppetlabs/pdk-templates/blob/7281db56ead0feeacbc70e5d5dfb3bb885c554ba/moduleroot/Rakefile.erb#L13-L16 Note that `puppet-syntax/tasks/puppet-syntax` was already loaded in this file further down. --- lib/puppetlabs_spec_helper/rake_tasks.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lib/puppetlabs_spec_helper/rake_tasks.rb b/lib/puppetlabs_spec_helper/rake_tasks.rb index f628ef2a..fe7518f4 100644 --- a/lib/puppetlabs_spec_helper/rake_tasks.rb +++ b/lib/puppetlabs_spec_helper/rake_tasks.rb @@ -16,6 +16,24 @@ # ignore end +begin + require 'puppet_blacksmith/rake_tasks' +rescue LoadError + # ignore +end + +begin + require 'github_changelog_generator/task' +rescue LoadError + # ignore +end + +begin + require 'puppet-strings/tasks' +rescue LoadError + # ignore +end + parallel_tests_loaded = false begin require 'parallel_tests'