Class: CarrierWave::Storage::FTP

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

Defined Under Namespace

Classes: File

Instance Method Summary collapse

Instance Method Details

#retrieve!(identifier) ⇒ Object



14
15
16
# File 'lib/carrierwave/storage/ftp.rb', line 14

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

#store!(file) ⇒ Object



8
9
10
11
12
# File 'lib/carrierwave/storage/ftp.rb', line 8

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