-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quote paths for windows compatability #567
Conversation
This may or may not break our unofficial recommendation to use We should provide a better way to create those then… |
I'm not familiar with that pattern - could you give me an example and I can see if I can rework? |
See Location's documentation as an example, scroll down to where we explain: <Location ~ "/(extra|special)/data"> |
OK - wasn't sure if the Match directives were any different. Would it make sense on this PR to add a test for the Match directives for a ~ as the first character and quote them as your comment above, else quote as here? Am I over-simplifying the problem? |
I think the easiest way would actually be to fix this in Erb: path = directory['path']
directive = directory['provider']
if directory[path] =~ '^~' {
path = substring (or whatevz)
directive += 'Match'
} |
K - I'll take a look at that a bit later and see if I can improve this. Thanks! |
I'd recommend we land this one first, then the *Match stuff in a new pr. |
Works for me. Let me know if there's anything else I need to update in this. |
But before go down that road, could you please also fix up the spec/acceptance tests? |
With the switch to beaker I haven't been able to get it to run successfully on master (let alone my own branch). What's the command to kick it off (or is it documented somewhere I didn't see)? |
sigh I should've documented that a long time ago :S |
Wait, I did document it. https://github.com/puppetlabs/puppetlabs-apache/blob/master/CONTRIBUTING.md#getting-started |
Awesome! I haven't looked in there forever since it's always been very out of date. Sorry I didn't check though. I'll get the acceptance tests updated. |
David Schmidt On Jan 13, 2014, at 7:48 AM, Igor Galić [email protected] wrote:
|
It seemed like the best way to fix the acceptance tests was just to implement Match, everything should be happy now. |
Can you please also add support for Then it'll be perfect ;) (if we also had some new tests) |
Actually, no. Let's do this in a new PR. But you should still fix up the tests under spec/acceptance. @apenney is planning to axe the spec/system tests soon. |
This PR no longer merges cleanly, you will need to rebase against master. |
Rebased, anything else needed to merge this? |
👍 |
quote paths for windows compatability
(MODULES-10387) fix dependencies
I believe I have found all of the paths to quote for spaces in the paths for Windows compatibility, but I'd love some other eyes to review my changes. I think I correctly quoted the type:path paths as well as straight paths. Since I had to change the tests for my new quoting it is possible I did something incorrectly.
Fixes #472