lib/cloud_crowd/asset_store.rb in documentcloud-cloud-crowd-0.1.0 vs lib/cloud_crowd/asset_store.rb in documentcloud-cloud-crowd-0.1.1
- old
+ new
@@ -23,12 +23,12 @@
else raise Error::StorageNotFound, "#{CloudCrowd.config[:storage]} is not a valid storage back end"
end
# Creating the AssetStore ensures that its scratch directory exists.
def initialize
- @use_auth = CloudCrowd.config[:use_s3_authentication]
FileUtils.mkdir_p temp_storage_path unless File.exists? temp_storage_path
raise Error::StorageNotWritable, "#{temp_storage_path} is not writable" unless File.writable?(temp_storage_path)
+ setup if respond_to? :setup
end
# Get the path to CloudCrowd's temporary local storage. All actions run
# in subdirectories of this.
def temp_storage_path
\ No newline at end of file