module Compass::CommandLineHelper

def within_tmp_directory(dir = "tmp")

def within_tmp_directory(dir = "tmp")
  d = absolutize(dir)
  FileUtils.mkdir_p(d)
  Dir.chdir(d) do
    yield
  end
ensure
  FileUtils.rm_rf(d)
end