-
Notifications
You must be signed in to change notification settings - Fork 72
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
Allow spec.hosts.files to have url sources, set owner, fix dir recursion #231
Conversation
@kke Looks great, this should fix a lot of use cases. 💯 |
Note to self: see it doesn't break the permissions that were fixed in #248 |
Needs smoke tests for peace of mind |
Some unexpectedly complicated stuff going on here .. |
Lint Add smoke tests, this probably fails as the abs-paths need to be cut Maybe fix globbing The amount of little stuff for such a simple thing.. Remove debug output Dont upload plain directories Simplified, fixed Wrong dir in test Another wrong dir Chmod test Extra space More debug output Even more debug output Go get deprecated Wrong dir again Configurable chown and dirchmod Test owner and dirPerm Update README.md Chown fixes Quotes quotes quotes Rebase aftermath
@bephinix It's finally done. It has integration tests so I'm fairly confident it works, but feel free to play around and confirm if you have the time :) |
There's other stuff that warrant a beta, I'll merge this and we'll fix any issues that come up. |
@kke Thanks! Seems to work but I will test it the next days in more complex deployments. :) |
Will this work when the file already exists? |
I believe it will overwrite it. |
Fixes #224
Fixes #244
File
src
can now be a URL:Also
dst
is added so it is possible to rename the files:You can also combine it with
dstDir
:The file/dir ownership can now be set:
The perm can now be a string or an octal (or an integer if you really want to):
If you omit the permission, local permissions will be replicated. Local executables will be executable on remote hosts.
You can set the perm-mode for created directories:
If the
src
is a directory, it can now recurse into it.