lib/rscm/path_converter.rb in rscm-0.1.0.1338 vs lib/rscm/path_converter.rb in rscm-0.2.0

- old
+ new

@@ -19,13 +19,14 @@ # Can't use Dir.chdir{ block } - will fail with multithreaded code. # http://www.ruby-doc.org/core/classes/Dir.html#M000790 # prev = Dir.pwd begin - Log.info "Making directory: '#{File.expand_path(dir)}'" + dir = File.expand_path(dir) + Log.info "Making directory: '#{dir}'" FileUtils.mkdir_p(dir) Dir.chdir(dir) - Log.info "In directory: '#{File.expand_path(dir)}'" + Log.info "In directory: '#{dir}'" yield ensure Dir.chdir(prev) end end