Issue #20223 has been updated by Frederic Schaer.

Seems I found a work around : in the shipped ruby, change the following file :
sys/ruby/lib/ruby/1.8/rdoc/generators/html_generator.rb

Change line 1291 from :

op_file = item.path

to

op_file = item.path.gsub(':','')

Et voilĂ , doc seems generated in windows.
This still looks like a bug in the shipped ruby, so it's still relevant I guess.

Regards

----------------------------------------
Bug #20223: puppet doc fails under windows
https://projects.puppetlabs.com/issues/20223#change-89233

* Author: Frederic Schaer
* Status: Unreviewed
* Priority: Normal
* Assignee: 
* Category: documentation
* Target version: 
* Affected Puppet version: 3.1.1
* Keywords: puppet rdoc
* Branch: 
----------------------------------------
Hi,

puppet 3.1.1 seems unable to generate documentation on windows, either under 
cygwin or in a plain DOS cmd.

It fails with the attached error (I don't know how to paste code in here).

It seems it is trying to create the files/C: dir, and all other directories 
using the "C:" part of the path.
I'm not sure this is a puppet or a ruby issue, but since ruby is shipped with 
puppet under windows...

I tried to see if I could work around that with string substitution (replace 
the '/' with '\', and the ':' with '_', but since I'm a ruby newbie, I've been 
unable for now to find out what generates the file listes used everywhere in 
the code.

Regards


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to