Hi Mohamed, On Mon, Nov 28, 2011 at 1:15 PM, Mohamed Lrhazi <lrh...@gmail.com> wrote:
> I found where I read what I read... not directly Puppet, but Ruby: > > https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting: > > "If you notice those directories contain spaces, it might be because > you installed Ruby in a folder with spaces (highly not recommended) > or..." > > Thanks, > Mohamed. > > > > On Mon, Nov 28, 2011 at 4:11 PM, Mohamed Lrhazi <lrh...@gmail.com> wrote: > > I thought I read somewhere in Puppet docs/wiki... that it is > > "recommended" to avoid spaces in file paths, or some similar verbiage, > > but now I cant find it. > > > > Does Puppet have any known issues with spaces in file paths? It would > > of course scare Windows admins away... So I hope I am wrong in > > thinking I read that. > > > > Thanks a lot, > > Mohamed. > > > > I ran into trouble with spaces in file paths when setting RUBYLIB (in batch files that run our windows rspec tests). I had to convert the paths to their short names and convert backslashes to forward slashes. Without this, ruby would not load from files in directories with spaces. set PWD=%CD% for %%f in ("%PWD%") do set SHORT_PWD=%%~sf set RUBYLIB=%RUBYLIB%;%SHORT_PWD%/vendor/facter/lib set RUBYLIB=%RUBYLIB:\=/% Josh -- Josh Cooper Developer, Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.