Sha256: 850f6fa85bf4c79a52c2eb5866415c6891ed00289919cc963328d30adcdf7f29

Contents?: true

Size: 301 Bytes

Versions: 3

Compression:

Stored size: 301 Bytes

Contents

# Merges two ResultSets into a new ResultSet
Puppet::Functions.create_function(:'canary::merge') do
  dispatch :merge_results do
    param 'ResultSet', :merger
    param 'ResultSet', :mergee
  end

  def merge_results(merger, mergee)
    Bolt::ResultSet.new(merger.results + mergee.results)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bolt-0.17.2 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-0.17.1 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-0.17.0 modules/canary/lib/puppet/functions/canary/merge.rb