Parse module lib directories along with manifests

The `puppet yardoc` face now parses any files matching `lib/**/*.rb` when
operating on modules.
This commit is contained in:
Charlie Sharpsteen 2014-06-02 21:55:27 -07:00
parent fd3a08bfc2
commit cb45a80928
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ Puppet::Face.define(:yardoc, '0.0.1') do
#
# TODO: It would be awesome if we could somehow override/append to the
# default file list that YARD uses. Consider an upstream PR for this.
MODULE_SOURCEFILES = ['manifests/**/*.pp']
MODULE_SOURCEFILES = ['manifests/**/*.pp', 'lib/**/*.rb']
action(:yardoc) do
default
@ -50,7 +50,7 @@ Puppet::Face.define(:yardoc, '0.0.1') do
opts = args.pop
# For now, assume the remaining positional args are a list of manifest
# files to parse.
# and ruby files to parse.
yard_args = (args.empty? ? MODULE_SOURCEFILES : args)
merge_puppet_args!(yard_args)