Module: Kybus::Storage::Repository
Overview
Singleton storing all the implemented repositories. It also allows to register new repositories for extension.
Class Method Summary collapse
Class Method Details
.from_config(schema, sets, default) ⇒ Object
20 21 22 23 |
# File 'lib/kybus/storage/repository.rb', line 20 def self.from_config(schema, sets, default) conf = default.merge(sets || {}).merge('schema' => schema) resource(:repositories, conf['name']).from_config(conf) end |