title: Temporarily change current directory in Rake
body: <p>I would like to run multiple commands need to be (or is easier to be) in another directory, then once they're done, return back to the previous working directory.</p>
  
  <p>I'm envisioning something similar to <a href="http://docs.fabfile.org/en/1.4.0/api/core/context_managers.html#fabric.context_managers.cd">Fabric's <code>with cd(path):</code></a>, e.g.:</p>
  
  <pre><code>cd('.git') do
     File.unlink('config')
  end
  </code></pre>
  
  <p>Is there an inbuilt way of doing this in Rake, or should I be writing a custom method that accepts a block, etc.?</p>