files.rb revision ac2169141f0b549fc8917a4b1d778f4ba3cab0bf
aead985e48027c9df1ef553b17df29dd378757aaJulian Kornberger # virtual attribute for upload
ac2169141f0b549fc8917a4b1d778f4ba3cab0bfJulian Kornberger Rails.root.join("tmp","commits",commit_oid)
ac2169141f0b549fc8917a4b1d778f4ba3cab0bfJulian Kornberger # path to the raw file
ac2169141f0b549fc8917a4b1d778f4ba3cab0bfJulian Kornberger # path to the raw file, checks out the raw file if is missing
ac2169141f0b549fc8917a4b1d778f4ba3cab0bfJulian Kornberger # path to xml file (hets output)
ac2169141f0b549fc8917a4b1d778f4ba3cab0bfJulian Kornberger # checks out the raw file
ac2169141f0b549fc8917a4b1d778f4ba3cab0bfJulian Kornberger File.open(raw_path, "w"){|f| f.write raw_data }
ac2169141f0b549fc8917a4b1d778f4ba3cab0bfJulian Kornberger # returns the raw data directly from the repository