summaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
authornfagerlund <nick.fagerlund@gmail.com>2011-02-17 11:56:55 -0800
committernfagerlund <nick.fagerlund@gmail.com>2011-02-17 12:01:18 -0800
commitb18f045d6349e4edf5d1593285d6788203fe81ae (patch)
tree979af558cf94f7bf2f66a7a553a18de130c4ea83 /tasks
parentae4112b4ea9631d402ecd072322bce738161fbc4 (diff)
downloadpuppet-b18f045d6349e4edf5d1593285d6788203fe81ae.tar.gz
(#1204) Make rake gen_manpages fail explicitly if ronn isn't present
Entire series: paired-with: Daniel Pittman <daniel@puppetlabs.com> paired-with: Paul Berry <paul@puppetlabs.com>
Diffstat (limited to 'tasks')
-rw-r--r--tasks/rake/manpages.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/rake/manpages.rake b/tasks/rake/manpages.rake
index f48e57cc7..f7275e4c3 100644
--- a/tasks/rake/manpages.rake
+++ b/tasks/rake/manpages.rake
@@ -7,8 +7,8 @@ task :gen_manpages do
bins = Dir.glob(%w{bin/*})
applications = Dir.glob(%w{lib/puppet/application/*})
# Locate ronn
- ronn = %x{which ronn}
- ronn.chomp!
+ ronn = %x{which ronn}.chomp
+ unless File.executable?(ronn) then fail("Ronn does not appear to be installed.") end
# Create puppet.conf.5 man page
%x{RUBYLIB=./lib:$RUBYLIB bin/puppetdoc --reference configuration > ./man/man5/puppetconf.5.ronn}