capistrano / capistrano/sshkit
`test()` in `within(dir)` should run after cd into dir
- Lingua principale
- Ruby
- Stelle
- 1.2k
- Fork
- 257
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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)
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start by tracing the within and test entry points that generate the shown shell commands, then reproduce the example from the issue. Done means the test command runs after changing into the within directory and the generated commands consistently use that directory, matching the expected output.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- ruby, shell
- Ambito
- devops
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100