diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2013-09-23 11:54:54 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2013-09-27 17:16:22 -0700 |
commit | 1322bfaeb1322ee8f8ece7b5420e38c91dccfa33 (patch) | |
tree | 21154311754c024569354e3dd2f074e2b842c9e8 /Rakefile | |
parent | f6bba53945cb06846807ab70941674db1b35772a (diff) | |
download | chef-1322bfaeb1322ee8f8ece7b5420e38c91dccfa33.tar.gz |
ignore ronn if its not in the bundle
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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') |