summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2013-09-23 11:54:54 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2013-09-27 17:16:22 -0700
commit1322bfaeb1322ee8f8ece7b5420e38c91dccfa33 (patch)
tree21154311754c024569354e3dd2f074e2b842c9e8 /Rakefile
parentf6bba53945cb06846807ab70941674db1b35772a (diff)
downloadchef-1322bfaeb1322ee8f8ece7b5420e38c91dccfa33.tar.gz
ignore ronn if its not in the bundle
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index bdbaeda156..eb48b8e389 100644
--- a/Rakefile
+++ b/Rakefile
@@ -93,7 +93,15 @@ namespace :docs do
end
end
- if system('which ronn > /dev/null')
+ # we can have ronn in the path, but not in the bundle, require both
+ ronn_in_bundle = true
+ begin
+ require 'ronn'
+ rescue LoadError
+ ronn_in_bundle = false
+ end
+
+ if ronn_in_bundle && system('which ronn > /dev/null')
['distro/common/markdown/man1/*.mkd', 'distro/common/markdown/man8/*.mkd'].each do |dir|
Dir[dir].each do |mkd|
basename = File.basename(mkd, '.mkd')