Class: Sluice::Storage::S3::ManifestScope
- Inherits:
-
Object
- Object
- Sluice::Storage::S3::ManifestScope
- Defined in:
- lib/sluice/storage/s3/manifest.rb
Overview
Legitimate manifest scopes:
-
:filename - store only the filename
in the manifest
-
:relpath - store the relative path
to the file in the manifest
-
:abspath - store the absolute path
to the file in the manifest
-
: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
40 41 42 43 |
# File 'lib/sluice/storage/s3/manifest.rb', line 40 def self.valid?(val) val.is_a?(Symbol) && @@scopes.include?(val) end |