Class: CarrierWave::Storage::SFTP

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

Defined Under Namespace

Classes: File

Instance Method Summary collapse

Instance Method Details

#retrieve!(identifier) ⇒ Object



13
14
15
# File 'lib/carrierwave/storage/sftp.rb', line 13

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

#store!(file) ⇒ Object



7
8
9
10
11
# File 'lib/carrierwave/storage/sftp.rb', line 7

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