Sha256: 453377c3881d6ef15bd9409af203ef66a193a3991c1d0d992d44422241ba62b6

Contents?: true

Size: 720 Bytes

Versions: 17

Compression:

Stored size: 720 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]],
      action => Callable[[], String],
      status => Callable[[], String],
      to_data => Callable[[], Hash],
      ok => Callable[[], Boolean],
      '[]' => Callable[[String[1]], 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

17 entries across 17 versions & 1 rubygems

Version Path
bolt-2.25.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-2.24.1 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-2.24.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-2.23.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-2.22.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-2.21.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-2.20.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-2.19.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-2.18.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-2.17.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-2.16.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-2.15.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-2.14.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-2.13.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-2.12.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-2.11.1 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-2.11.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb