Class: CarrierWave::Storage::S3cn

Inherits:
Abstract
  • Object
show all
Defined in:
lib/carrierwave/s3cn/storage.rb

Defined Under Namespace

Classes: Connection, File

Instance Method Summary collapse

Instance Method Details

#retrieve!(identifier) ⇒ Object



129
130
131
# File 'lib/carrierwave/s3cn/storage.rb', line 129

def retrieve!(identifier)
  ::CarrierWave::Storage::S3cn::File.new(uploader, uploader.store_path(identifier))
end

#store!(file) ⇒ Object



123
124
125
126
127
# File 'lib/carrierwave/s3cn/storage.rb', line 123

def store!(file)
  f = ::CarrierWave::Storage::S3cn::File.new(uploader, uploader.store_path(uploader.filename))
  f.store(file)
  f
end