lib/puppet/reports/wavefront.rb
def run_by
  prog = launched_from(Process.pid)

  case prog
  when %r{/sshd$}, '/usr/bin/login'
    'interactive'
  when 'sshd:', '/usr/bin/python', '/lib/svc/bin/svc.startd'
    'bootstrapper'
  when /cron/
    'cron'
  else
    prog
  end
end
# A wrapper around launched_from() to make tags simpler to
# understand
#
# @return [String]
#
A wrapper around launched_from() to make tags simpler to
understand
A wrapper around launched_from () to make tags simpler to understand
def run_by
  prog = launched_from(Process.pid)
  case prog
  when %r{/sshd$}, '/usr/bin/login'
    'interactive'
  when 'sshd:', '/usr/bin/python', '/lib/svc/bin/svc.startd'
    'bootstrapper'
  when /cron/
    'cron'
  else
    prog
  end
end
def run_by prog = launched_from ( Process . pid ) case prog when %r{ /sshd$ } , '/usr/bin/login' 'interactive' when 'sshd:' , '/usr/bin/python' , '/lib/svc/bin/svc.startd' 'bootstrapper' when / cron / 'cron' else prog end end
A wrapper around launched_from() to make tags simpler to
understand
A wrapper around launched_from () to make tags simpler to understand
None
String