Consolidation of work on slicefiying application with original app
[merb_mart.git] / lib / merb_mart / upload_processor / static_file_processor.rb
blob3c87adf1b63b4d7d6c9eb847c6de256be257bdd7
1 class MerbMart::StaticFileProcessor
2   attr_accessor :temp_file, :raw_data
4   def process
5     case
6     when @temp_file.nil? && @raw_data
7       @location = store_file(save_to_disk(@raw_data))
8     when @temp_file
9       @location = store_file(@temp_file)
10     else raise "unable to process your upload"
11     end
12   end
13 end