capistrano / capistrano/sshkit
Bug: upload! within an `as 'root'` block will fail.
Open
- Dominant language
- Ruby
- Stars
- 1.2k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
The following will usually fail:
```
task :foo do
on roles(:web) do
as "root" do
upload! "/tmp/foo", "/var/bar/cuux"
end
end
end
```
Since scp will not su to root. Would you accept a PR that allows `upload!` to upload to `/tmp` and then `mv` the file into place, if the current user has been switched?
Contributor guide
Assessment
This issue has not been assessed yet.