Sha256: f505e4d8aabc6f3e8aa973cd684a43167dc26f44d003ce42ee177f4ee20d3f00

Contents?: true

Size: 730 Bytes

Versions: 4

Compression:

Stored size: 730 Bytes

Contents

# frozen_string_literal: true

Puppet::DataTypes.create_type('ContainerResult') do
  interface <<-PUPPET
    attributes => {
      'value' => Hash[String[1], Data],
    },
    functions => {
      '[]' => Callable[[String[1]], Data],
      error => Callable[[], Optional[Error]],
      ok => Callable[[], Boolean],
      status => Callable[[], String],
      stdout => Callable[[], String],
      stderr => Callable[[], String],
      to_data => Callable[[], Hash]
    }
  PUPPET

  load_file('bolt/container_result')

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bolt-3.7.0 bolt-modules/boltlib/lib/puppet/datatypes/containerresult.rb
bolt-3.6.1 bolt-modules/boltlib/lib/puppet/datatypes/containerresult.rb
bolt-3.6.0 bolt-modules/boltlib/lib/puppet/datatypes/containerresult.rb
bolt-3.5.0 bolt-modules/boltlib/lib/puppet/datatypes/containerresult.rb