Sha256: 2029b2f3179518922ca9d1d98a26b913d8dc1ad4a0d4812f8bc13378e0487dc9

Contents?: true

Size: 1.22 KB

Versions: 44

Compression:

Stored size: 1.22 KB

Contents

# frozen_string_literal: true

Puppet::DataTypes.create_type('ResultSet') do
  interface <<-PUPPET
    attributes => {
      'results' => Array[Variant[Result, ApplyResult]],
    },
    functions => {
      count => Callable[[], Integer],
      empty => Callable[[], Boolean],
      error_set => Callable[[], ResultSet],
      filter_set => Callable[[Callable], ResultSet],
      find => Callable[[String[1]], Optional[Variant[Result, ApplyResult]]],
      first => Callable[[], Optional[Variant[Result, ApplyResult]]],
      names => Callable[[], Array[String[1]]],
      ok => Callable[[], Boolean],
      ok_set => Callable[[], ResultSet],
      targets => Callable[[], Array[Target]],
      to_data => Callable[[], Array[Hash]],
      '[]' => Variant[Callable[[Integer], Optional[Variant[Result, ApplyResult, Array[Variant[Result, ApplyResult]]]]],
                      Callable[[Integer, Integer], Optional[Variant[Result, ApplyResult, Array[Variant[Result, ApplyResult]]]]]
                     ]
    }
  PUPPET

  load_file('bolt/result_set')

  # Needed for Puppet to recognize Bolt::ResultSet as a Puppet object when deserializing
  Bolt::ResultSet.include(Puppet::Pops::Types::PuppetObject)
  implementation_class Bolt::ResultSet
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
bolt-3.7.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-3.6.1 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-3.6.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-3.5.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-3.4.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-3.3.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-3.1.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-3.0.1 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-3.0.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.44.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.42.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.40.2 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.40.1 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.38.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.37.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.36.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.35.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.34.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.33.2 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.33.1 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb