Class: BiblioTech::Builders::File
- Defined in:
- lib/bibliotech/builders/file.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
adapter_registry, for, #initialize, null_adapter, register, registry, supported_adapters
Constructor Details
This class inherits a constructor from BiblioTech::Builders::Base
Class Method Details
.find_class(config) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/bibliotech/builders/file.rb', line 6 def self.find_class(config) explicit = find_explicit(config) return explicit unless explicit.nil? file = config.backup_file adapter_registry.fetch(file){ identity_adapter } rescue Config::MissingConfig return NullAdapter end |
Instance Method Details
#file ⇒ Object
16 17 18 |
# File 'lib/bibliotech/builders/file.rb', line 16 def file config.backup_file end |