Class: Longleaf::StorageLocationValidator
- Inherits:
-
ConfigurationValidator
- Object
- ConfigurationValidator
- Longleaf::StorageLocationValidator
- Defined in:
- lib/longleaf/services/storage_location_validator.rb
Overview
Validates application configuration of storage locations
Constant Summary collapse
- @@storage_type_mappings =
{ ST::FILESYSTEM_STORAGE_TYPE => Longleaf::FilesystemLocationValidator, ST::S3_STORAGE_TYPE => Longleaf::S3LocationValidator }
Instance Attribute Summary
Attributes inherited from ConfigurationValidator
Instance Method Summary collapse
-
#initialize(config) ⇒ StorageLocationValidator
constructor
A new instance of StorageLocationValidator.
Methods inherited from ConfigurationValidator
#assert, #fail, #register_error, #register_on_failure, #validate_config
Constructor Details
#initialize(config) ⇒ StorageLocationValidator
Returns a new instance of StorageLocationValidator.
21 22 23 24 |
# File 'lib/longleaf/services/storage_location_validator.rb', line 21 def initialize(config) super(config) @existing_paths = Array.new end |