Sha256: 82435abfdf19a0ab6e85f780018b1613b12872992ad3b9d1829ce2475b785fff

Contents?: true

Size: 1.07 KB

Versions: 29

Compression:

Stored size: 1.07 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')

  implementation_class Bolt::ResultSet
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
bolt-2.10.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.9.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.8.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.7.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.6.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.5.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.4.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.3.1 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.3.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.2.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.1.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.0.1 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-2.0.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-1.49.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-1.48.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-1.47.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-1.45.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-1.44.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-1.43.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
bolt-1.42.0 bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb