def inside_sandbox(&block)
      Strainer.ui.debug "Changing working directory to '#{Strainer.sandbox_path}'"
      original_pwd = ENV['PWD']

      ENV['PWD'] = Strainer.sandbox_path.to_s
      success = Dir.chdir(Strainer.sandbox_path, &block)
      ENV['PWD'] = original_pwd

      Strainer.ui.debug "Restored working directory to '#{original_pwd}'"
      success
    end
def inside_sandbox(&block)
      Strainer.ui.debug "Changing working directory to '#{Strainer.sandbox_path}'"
      original_pwd = ENV['PWD']

      ENV['PWD'] = Strainer.sandbox_path.to_s
      success = Dir.chdir(Strainer.sandbox_path, &block)
      ENV['PWD'] = original_pwd

      Strainer.ui.debug "Restored working directory to '#{original_pwd}'"
      success
    end
Execute a block inside the sandbox directory defined in 'Strainer.sandbox_path'.
 This will first change the 'PWD' env variable to the sandbox path, and then
 pass the given block into 'Dir.chdir'. 'PWD' is restored to the original value
 when the block is finished.

 @yield The block to execute inside the sandbox
 @return [Boolean]
   `true` if the command exited successfully, `false` otherwise