Method: CloudTempfile::Storage#delete_file
- Defined in:
- lib/cloud_tempfile/storage.rb
#delete_file(f) ⇒ Object
This action will delete a AWS::File from the specified directory
53 54 55 56 57 |
# File 'lib/cloud_tempfile/storage.rb', line 53 def delete_file(f) #return false if !f.kind_of?(Fog::Storage::AWS::File) || !storage_provider.eql?(:aws) log "Deleting: #{f.key}" return f.destroy end |