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'
|
require 'puppetx/yardoc/yard/plugin'
|
||||||
|
|
||||||
parser = Puppetx::Yardoc::YARD::PuppetParser.new(File.read(manifest), manifest)
|
# Hand off to YARD for further processing.
|
||||||
parser.parse
|
YARD::CLI::Yardoc.run(manifest)
|
||||||
|
|
||||||
return parser.enumerator.map {|s| s.comments}
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue