class Guard::Bosh::EffectivePropertiesCalculator
The effective set of properties is the union of:
-
The default properties declared in the job spec
-
The properties declared at the top-level of the manifest
-
The properties declared at the job-level of the manifest
Public Class Methods
new(loaders:)
click to toggle source
# File lib/guard/bosh/effective_properties_calculator.rb, line 10 def initialize(loaders:) @loaders = loaders end
Public Instance Methods
calculate_effective_properties(job)
click to toggle source
# File lib/guard/bosh/effective_properties_calculator.rb, line 14 def calculate_effective_properties(job) @loaders.inject({}) do |result, loader| result.deep_merge!(loader.load_properties(job)) end end