Class: CarrierWave::Storage::Aliyun

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

Defined Under Namespace

Classes: Connection, File

Instance Method Summary collapse

Instance Method Details

#retrieve!(identifier) ⇒ Object



169
170
171
# File 'lib/carrierwave/storage/aliyun.rb', line 169

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

#store!(file) ⇒ Object



163
164
165
166
167
# File 'lib/carrierwave/storage/aliyun.rb', line 163

def store!(file)
  f = CarrierWave::Storage::Aliyun::File.new(uploader, self, uploader.store_path)
  f.store(file.read, :content_type => file.content_type)
  f
end