Class: Longleaf::StorageLocationValidator

Inherits:
ConfigurationValidator show all
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

#result

Instance Method Summary collapse

Methods inherited from ConfigurationValidator

#assert, #fail, #register_error, #register_on_failure, #validate_config

Constructor Details

#initialize(config) ⇒ StorageLocationValidator

Returns a new instance of StorageLocationValidator.

Parameters:

  • config (Hash)

    hash containing the application configuration



21
22
23
24
# File 'lib/longleaf/services/storage_location_validator.rb', line 21

def initialize(config)
  super(config)
  @existing_paths = Array.new
end