Sha256: 72762947e920981b1f5d062402bdd8360f2b444277ff0e85d34b1f210d571ccc

Contents?: true

Size: 518 Bytes

Versions: 5

Compression:

Stored size: 518 Bytes

Contents

Puppet::Type.newtype(:whit) do
  desc "The smallest possible resource type, for when you need a resource and naught else."

  newparam :name do
    desc "The name of the whit, because it must have one."
  end


  # Hide the fact that we're a whit from logs
  def to_s
    name.sub(/^completed_|^admissible_/, "")
  end

  def path
    to_s
  end

  def refresh
    # We don't do anything with them, but we need this to
    #   show that we are "refresh aware" and not break the
    #   chain of propogation.
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
puppet-2.7.6 lib/puppet/type/whit.rb
puppet-2.7.5 lib/puppet/type/whit.rb
puppet-2.7.4 lib/puppet/type/whit.rb
puppet-2.7.3 lib/puppet/type/whit.rb
puppet-2.7.1 lib/puppet/type/whit.rb