Class: Sluice::Storage::S3::ManifestScope

Inherits:
Object
  • Object
show all
Defined in:
lib/sluice/storage/s3/manifest.rb

Overview

Legitimate manifest scopes:

  1. :filename - store only the filename

    in the manifest
    
  2. :relpath - store the relative path

    to the file in the manifest
    
  3. :abspath - store the absolute path

    to the file in the manifest
    
  4. :bucket - store bucket PLUS absolute

    path to the file in the manifest
    

TODO: add support for 2-4. Currently only 1 supported

Constant Summary collapse

@@scopes =

TODO add :relpath, :abspath, :bucket

Set::[](:filename)

Class Method Summary collapse

Class Method Details

.valid?(val) ⇒ Boolean

Returns:

  • (Boolean)


39
40
41
42
# File 'lib/sluice/storage/s3/manifest.rb', line 39

def self.valid?(val)
  val.is_a?(Symbol) &&
    @@scopes.include?(val)
end