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:
parent
5d5013b39d
commit
35e67f1187
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue