capistrano / capistrano/sshkit
`test()` in `within(dir)` should run after cd into dir
Open
- Dominant language
- Ruby
- Stars
- 1.2k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
Given a `test()` in a `within()`,
```
within('/home/vagrant/app1/current') do
if test '[ -e tmp/pids/server.pid ]'
execute :kill, '-INT', 'tmp/pids/server.pid'
end
end
```
Does it make sense to generate the following commands?
```
cd /home/vagrant/app1/current && [ -e tmp/pids/server.pid ]
cd /home/vagrant/app1/current && (/usr/bin/env kill -INT tmp/pids/server.pid)
```
However, currently it doesn't cd into the given directory when generate test() command:
```
[ -e tmp/pids/server.pid ]
cd /home/vagrant/app1/current && (/usr/bin/env kill -INT tmp/pids/server.pid)
```
Contributor guide
Assessment
This issue has not been assessed yet.