Class: Class
- Inherits:
-
Object
- Object
- Class
- Defined in:
- lib/carioca/helpers.rb
Overview
Author : Romain GEORGES type : gem component library obj : Carioca Helpers definition Module
Instance Method Summary collapse
-
#preload_service(_options = {}) ⇒ Object
Usage: prelaod_service :name => ‘service’, :params => { :arg => ‘value’}.
- #use_configuration(_options = {}) ⇒ Object
Instance Method Details
#preload_service(_options = {}) ⇒ Object
Usage:
prelaod_service :name => 'service', :params => { :arg => 'value'}
11 12 13 |
# File 'lib/carioca/helpers.rb', line 11 def preload_service( = {}) Carioca::Services::Registry.init.start_service end |
#use_configuration(_options = {}) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/carioca/helpers.rb', line 15 def use_configuration( = {}) = Methodic.() .specify_classes_of :with_file => String .specify_default_value_for :with_file => 'services/registry.yml' .merge .validate! Carioca::Services::Registry.init.start_service :name => 'configuration', :params => { :config_file => [:with_file]} end |