Wrap puppetlabs_spec_helper in a begin/rescue
This Rakefile includes extra tasks beyond the standard set included with spechelper. Wrapping the spechelper load in a begin/rescue allows using these custom tasks without having the puppetlabs_spec_helper gem installed.
This commit is contained in:
8
Rakefile
8
Rakefile
@@ -5,7 +5,13 @@
|
||||
#
|
||||
#
|
||||
|
||||
require 'puppetlabs_spec_helper/rake_tasks'
|
||||
begin
|
||||
require 'puppetlabs_spec_helper/rake_tasks'
|
||||
rescue LoadError
|
||||
puts "!!!!!"
|
||||
puts "puppetlabs_spec_helper not found. This may cause some rake tasks to be unavailable."
|
||||
puts "!!!!!"
|
||||
end
|
||||
|
||||
repo_file = 'other_repos.yaml'
|
||||
default_modulepath = '/etc/puppet/modules'
|
||||
|
Reference in New Issue
Block a user