Sha256: f85e83a07fcb8fd652900845c17318cbf828cb246722eb1c7af966fb0c4f893a

Contents?: true

Size: 780 Bytes

Versions: 22

Compression:

Stored size: 780 Bytes

Contents

Puppet::Type.newtype(:whit) do
  desc "Whits are internal artifacts of Puppet's current implementation, and
    Puppet suppresses their appearance in all logs. We make no guarantee of
    the whit's continued existence, and it should never be used in an actual
    manifest. Use the `anchor` type from the puppetlabs-stdlib module if you
    need arbitrary whit-like no-op resources."

  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 propagation.
  end
end

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/puppet-2.7.18/lib/puppet/type/whit.rb
puppet-2.7.19 lib/puppet/type/whit.rb
supply_drop-0.11.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/type/whit.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/puppet-2.7.18/lib/puppet/type/whit.rb
supply_drop-0.10.2 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/type/whit.rb
puppet-2.7.18 lib/puppet/type/whit.rb
supply_drop-0.10.1 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/type/whit.rb
supply_drop-0.10.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/type/whit.rb
puppet-2.7.17 lib/puppet/type/whit.rb
puppet-2.7.16 lib/puppet/type/whit.rb
puppet-2.7.14 lib/puppet/type/whit.rb
puppet-2.7.13 lib/puppet/type/whit.rb
supply_drop-0.9.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/type/whit.rb
supply_drop-0.8.1 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/type/whit.rb
supply_drop-0.8.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/type/whit.rb
puppet-2.7.12 lib/puppet/type/whit.rb
puppet-2.7.11 lib/puppet/type/whit.rb
supply_drop-0.7.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/type/whit.rb
supply_drop-0.6.1 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/type/whit.rb
supply_drop-0.6.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/type/whit.rb