Sha256: e131a0985cb4127c2a27b0b08810ef695ffedf35803a0e14a581803e92ac5a83
Contents?: true
Size: 612 Bytes
Versions: 2
Compression:
Stored size: 612 Bytes
Contents
namespace :syslogd do desc <<-DESC Add entry to syslog for application. "Source":#{link_to_source(__FILE__)} DESC task_arg(:syslog_program_name, "Syslog program name. What you used for @SyslogLogger.new(\"program_name_here\")@") task_arg(:syslog_log_path, "Path to log") task_arg(:syslog_conf_path, :default => "/etc/syslog.conf") task :setup_conf do utils.append_to(syslog_conf_path, <<-DATA, "^!#{syslog_program_name}") # Entry for #{syslog_program_name} !#{syslog_program_name} *.* #{syslog_log_path} DATA end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
calas-capitate-0.3.6 | lib/recipes/syslogd.rb |
capitate-0.3.6 | lib/recipes/syslogd.rb |