summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2010-07-25 15:26:01 +0200
committerMarkus Roberts <Markus@reality.com>2010-07-25 22:24:48 -0700
commit67bdf89ac91a753171ad354b070546c62e09ce1a (patch)
treeec6125ff2f91069c5a5480b96d41bb1ec54b9c41 /lib
parent13c71b97d93edf033897dc09093861f68c9dd23a (diff)
downloadpuppet-67bdf89ac91a753171ad354b070546c62e09ce1a.tar.gz
puppet-67bdf89ac91a753171ad354b070546c62e09ce1a.tar.xz
puppet-67bdf89ac91a753171ad354b070546c62e09ce1a.zip
Fix #4348 - Puppet doc single manifest broken
The refactoring of using environment instances instead of strings for initializing the parser, rdoc wasn't updated, thus was unable to initialize the parser. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/util/rdoc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/util/rdoc.rb b/lib/puppet/util/rdoc.rb
index 4a80b069b..085d8ec93 100644
--- a/lib/puppet/util/rdoc.rb
+++ b/lib/puppet/util/rdoc.rb
@@ -41,7 +41,7 @@ module Puppet::Util::RDoc
def manifestdoc(files)
Puppet[:ignoreimport] = true
files.select { |f| FileTest.file?(f) }.each do |f|
- parser = Puppet::Parser::Parser.new(:environment => Puppet[:environment])
+ parser = Puppet::Parser::Parser.new(Puppet::Node::Environment.new(Puppet[:environment]))
parser.file = f
ast = parser.parse
output(f, ast)