Sha256: 69462afb46a823b3e4c30241cb716e7d7ced12b508172c2c90a4d4a6b5a0b4ad

Contents?: true

Size: 806 Bytes

Versions: 27

Compression:

Stored size: 806 Bytes

Contents

# frozen_string_literal: true

Puppet::DataTypes.create_type('Result') do
  interface <<-PUPPET
    attributes => {
      'value' => Hash[String[1], Data],
      'target' => Target
    },
    functions => {
      error => Callable[[], Optional[Error]],
      message => Callable[[], Optional[String]],
      sensitive => Callable[[], Optional[Sensitive[Data]]],
      action => Callable[[], String],
      status => Callable[[], String],
      to_data => Callable[[], Hash],
      ok => Callable[[], Boolean],
      '[]' => Callable[[String[1]], Variant[Data, Sensitive[Data]]]
    }
  PUPPET

  load_file('bolt/result')

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

Version data entries

27 entries across 27 versions & 1 rubygems

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