HomePhorge

Update Rakefile to make rspec optional
858e4b4b2045Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Update Rakefile to make rspec optional

Currently rspec is a hard dependency to using the Rakefile for puppet. This
means that users on platforms without native rspec packages can't use the
Rakefile to do other things, like build packages. This commit moves the require
on rspec and rspec/core/rake_task into a begin/rescue block and wraps the call
to Rspec::Core::RakeTask in an if defined? conditional so it is only invoked
if Rspec is loaded and available.

Details

Provenance
Matthaus Owens <matthaus@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUe6b841304bdc: Merge pull request #1244 from stahnma/fix_build_defaults_for_community
Branches
Unknown
Tags
Unknown

Event Timeline

Matthaus Owens <matthaus@puppetlabs.com> committed rPU858e4b4b2045: Update Rakefile to make rspec optional (authored by Matthaus Owens <matthaus@puppetlabs.com>).Oct 31 2012, 12:26 AM