module EacRubyUtils::Fs::Temp

def on_directory(*tempfile_args)

when the block is finished.
Run a block while a temporary directory pathname is provided. The directory is deleted
def on_directory(*tempfile_args)
  temp_dir = directory(*tempfile_args)
  begin
    yield(temp_dir)
  ensure
    temp_dir.remove
  end
end