Sha256: 91fde5214b2f2b98371077a557eb38fe3b45b5bfce993ddcdfc1077d25b616a8

Contents?: true

Size: 332 Bytes

Versions: 169

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

169 entries across 169 versions & 1 rubygems

Version Path
bolt-3.16.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.15.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.14.1 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.13.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.12.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.11.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.10.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.9.2 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.9.1 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.9.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.8.1 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.8.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.7.1 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.7.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.6.1 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.6.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.5.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.4.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.3.0 modules/canary/lib/puppet/functions/canary/merge.rb
bolt-3.1.0 modules/canary/lib/puppet/functions/canary/merge.rb