Sha256: cd8f9a87acb1e57208b83c32ee5be070f71e8b8892f941e42d82102513b73dcc

Contents?: true

Size: 576 Bytes

Versions: 28

Compression:

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

  implementation_class Bolt::Result
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
bolt-1.41.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-1.40.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-1.39.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-1.38.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-1.37.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-1.36.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-1.35.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb
bolt-1.34.0 bolt-modules/boltlib/lib/puppet/datatypes/result.rb