Method: Puppet::Type#purging?

Defined in:
lib/puppet/type.rb

#purging?Boolean

Returns whether this resource is being purged or not. This method is used by transactions to forbid deletion when there are dependencies.

Returns:

  • (Boolean)

    the current “purging” state



2551
2552
2553
2554
2555
2556
2557
# File 'lib/puppet/type.rb', line 2551

def purging?
  if defined?(@purging)
    @purging
  else
    false
  end
end