lib/puppet/provider/cron/filetype.rb
def newfiletype(name, &block)
        return if @filetypes&.key?(name)

        base_newfiletype(name, &block)
      end
# Puppet::Util::FileType.newfiletype will raise an exception if
# an already-defined filetype is re-defined. Unfortunately, there's
# a chance that this file could be loaded multiple times by Puppet's
# autoloader meaning that, without this wrapper, the crontab filetypes
# would be re-defined, causing Puppet to raise an exception.
:Util::FileType.newfiletype will raise an exception if
an already-defined filetype is re-defined. Unfortunately, there's
a chance that this file could be loaded multiple times by Puppet's
autoloader meaning that, without this wrapper, the crontab filetypes
would be re-defined, causing Puppet to raise an exception.
: Util :: FileType . newfiletype will raise an exception if an already - defined filetype is re - defined . Unfortunately there ' s a chance that this file could be loaded multiple times by Puppet ' s autoloader meaning that without this wrapper the crontab filetypes would be re - defined causing Puppet to raise an exception .
def newfiletype(name, &block)
        return if @filetypes&.key?(name)
        base_newfiletype(name, &block)
      end
def newfiletype ( name , & block ) return if @filetypes &. key? ( name ) base_newfiletype ( name , & block ) end
Puppet::Util::FileType.newfiletype will raise an exception if
an already-defined filetype is re-defined.
Puppet :: Util :: FileType . newfiletype will raise an exception if an already - defined filetype is re - defined .
name
block