Sha256: 91fde5214b2f2b98371077a557eb38fe3b45b5bfce993ddcdfc1077d25b616a8

Contents?: true

Size: 332 Bytes

Versions: 168

Compression:

Stored size: 332 Bytes

Contents

# frozen_string_literal: true

# 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

168 entries across 168 versions & 1 rubygems

Version Path
bolt-2.24.1 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.24.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.23.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.22.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.21.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.20.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.19.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.18.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.17.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.16.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.15.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.14.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.13.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.12.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.11.1 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.11.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.10.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.9.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.8.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-2.7.0 modules/canary/lib/puppet/functions/canary/merge.rb