class Guard::Bosh::EffectivePropertiesCalculator

The effective set of properties is the union of:

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