Do this as a block, e.g.

```rb
cd 'src/parent' do
  # stuff
end
```