Class: RepoMgr::Backends
- Inherits:
-
Object
- Object
- RepoMgr::Backends
- Defined in:
- lib/repo_mgr/backends.rb
Overview
factory loader for RepoMgr::Backend::Foo objects
Class Method Summary collapse
Class Method Details
.load(backend, config) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/repo_mgr/backends.rb', line 9 def self.load(backend, config) @obj ||= {} @obj[backend] ||= Object.const_get( "RepoMgr::Backend::#{backend.capitalize}" ).new(config) @obj[backend] end |