Method: Puppet::Util::FileType#cronargs

Defined in:
lib/puppet/util/filetype.rb

#cronargsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Arguments that will be passed to the execute method. Will set the uid to the target user if the target user and the current user are not the same



90
91
92
93
94
95
96
97
# File 'lib/puppet/util/filetype.rb', line 90

def cronargs
  uid = Puppet::Util.uid(@path)
  if uid && uid == Puppet::Util::SUIDManager.uid
    {:failonfail => true, :combine => true}
  else
    {:failonfail => true, :combine => true, :uid => @path}
  end
end