Add skeleton of yardoc face

Currently just reads in a path to a `.pp` file and runs it through a Pops
parser.
This commit is contained in:
Charlie Sharpsteen 2014-05-16 10:54:34 -07:00
parent a9408c792b
commit 3d71143614
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,4 @@
require 'puppet/application/face_base'
class Puppet::Application::Yardoc < Puppet::Application::FaceBase
end

16
lib/puppet/face/yardoc.rb Normal file
View File

@ -0,0 +1,16 @@
require 'puppet/face'
require 'puppet/pops'
Puppet::Face.define(:yardoc, '0.0.1') do
action(:yardoc) do
default
when_invoked do |*args|
parser = Puppet::Pops::Parser::Parser.new()
parse_result = parser.parse_file(args[0])
return 0
end
end
end