Class: PactBroker::Config::Load
- Inherits:
-
Object
- Object
- PactBroker::Config::Load
- Includes:
- Logging
- Defined in:
- lib/pact_broker/config/load.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(runtime_configuration) ⇒ Load
constructor
A new instance of Load.
Methods included from Logging
included, #log_error, #log_with_tag, #measure_info
Constructor Details
#initialize(runtime_configuration) ⇒ Load
Returns a new instance of Load.
16 17 18 |
# File 'lib/pact_broker/config/load.rb', line 16 def initialize runtime_configuration @runtime_configuration = runtime_configuration end |
Class Method Details
.call(runtime_configuration) ⇒ Object
12 13 14 |
# File 'lib/pact_broker/config/load.rb', line 12 def self.call runtime_configuration new(runtime_configuration).call end |
Instance Method Details
#call ⇒ Object
20 21 22 23 24 |
# File 'lib/pact_broker/config/load.rb', line 20 def call Setting.each do | setting | set_value_on_configuration setting end end |