Module: Adrift::Storage

Defined in:
lib/adrift/storage.rb

Overview

Namespace containing the storage objects used by Attachment.

They are used to save and remove files, and need to satisfy the following interface:

#store(source_path, destination_path)

Adds a file to be stored.

#remove(path)

Indicates that a file will be removed.

#flush

Store and remove the previously specified files.

#stored

Array of stored files in the last flush.

#removed

Array of removed files in the last flush.

Defined Under Namespace

Classes: Filesystem