# frozen_string_literal: true

require 'puppet/type'

# Manages Credential Manager credentials on Windows systems.
Puppet::Type.newtype(:credential) do
  desc 'Manages Credential Manager credentials on Windows systems.'

  ensurable

  newparam(target, namevar: true) do
    desc 'Conjur / DAP URL'
  end

  newproperty(:username) do
    desc 'The identity used to authenticate to the Conjur / DAP instance'
  end

  newproperty(:value) do
    desc 'The API key matching the Conjur / DAP identity'
  end
end

# frozen_string_literal: true

require 'puppet/type'

# Manages Credential Manager credentials on Windows systems.
Puppet::Type.newtype(:credential) do
  @doc = 'Manages Credential Manager credentials on Windows systems.'

  ensurable

  newparam(:target, namevar: true) do
    desc 'Conjur / DAP URL'
  end

  newproperty(:username) do
    desc 'The identity used to authenticate to the Conjur / DAP instance'
  end

  newproperty(:value) do
    desc 'The API key matching the Conjur / DAP identity'
  end
end

Fix problems with using `puppet strings` on the codebase
Fix problems with using `puppet strings` on the codebase

Old code wasn't using the exact specification for custom types and would
thus fail to generate the documentation. The change just makes sure that
we use the proper construct which makes the process correctly generate
the reference documentation.
