lib/cloud_crowd/asset_store.rb in cloud-crowd-0.3.3 vs lib/cloud_crowd/asset_store.rb in cloud-crowd-0.4.0

- old
+ new

@@ -12,15 +12,17 @@ # a <tt>setup</tt> method that will be called once at initialization. class AssetStore autoload :S3Store, 'cloud_crowd/asset_store/s3_store' autoload :FilesystemStore, 'cloud_crowd/asset_store/filesystem_store' + autoload :CloudfilesStore, 'cloud_crowd/asset_store/cloudfiles_store' # Configure the AssetStore with the specific storage implementation # specified by 'storage' in <tt>config.yml</tt>. case CloudCrowd.config[:storage] - when 's3' then include S3Store when 'filesystem' then include FilesystemStore + when 's3' then include S3Store + when 'cloudfiles' then include CloudfilesStore 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 \ No newline at end of file