Delegate processing to YARD::CLI::Yardoc

Loading `Puppetx::Yardoc::YARD::Plugin` registers the subsystems for Puppet
documentation with YARD. At this point, execution can be handed off to the
`YARD::CLI::Yardoc` tool.
This commit is contained in:
Charlie Sharpsteen 2014-05-25 19:14:52 -07:00
parent 5d5013b39d
commit 35e67f1187
1 changed files with 2 additions and 4 deletions

View File

@ -17,10 +17,8 @@ Puppet::Face.define(:yardoc, '0.0.1') do
require 'puppetx/yardoc/yard/plugin'
parser = Puppetx::Yardoc::YARD::PuppetParser.new(File.read(manifest), manifest)
parser.parse
return parser.enumerator.map {|s| s.comments}
# Hand off to YARD for further processing.
YARD::CLI::Yardoc.run(manifest)
end
end
end