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:
Branan Purvine-Riley
2012-06-15 16:22:45 -07:00
parent e5c6153ee1
commit d834dafdd4

View File

@@ -5,7 +5,13 @@
#
#
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'