Last active
November 30, 2015 18:56
-
-
Save trlinkin/534be912bcf1cb23d210 to your computer and use it in GitHub Desktop.
Simple Boilerplate Rakefile for Puppet Module testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'puppetlabs_spec_helper/rake_tasks' | |
| require 'puppet-lint/tasks/puppet-lint' | |
| desc "Validate Puppefile with R10k" | |
| task :puppetfile do | |
| begin | |
| require 'r10k' | |
| sh "r10k puppetfile check" | |
| rescue LoadError => e | |
| warn "Skipping Puppetfile validation; the r10k gem was not found" | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment