Sha256: b1c2019f9ea9a42cd74c9df9ac7f2827a41ba90064314e2f6879dace5577227c
Contents?: true
Size: 856 Bytes
Versions: 9
Compression:
Stored size: 856 Bytes
Contents
namespace :mongrel do namespace :cluster do namespace :logrotate do desc <<-DESC Install logrotated conf for mongrel cluster. <dl> <dt>mongrel_cluster_logrotate_path</dt> <dd>Mongrel cluster logrotate path</dd> <dd class="default">Defaults to @\#{shared_path}/log/mongrel_cluster_*.log@</dd> </dl> "Source":#{link_to_source(__FILE__)} DESC task :install do fetch_or_default(:mongrel_cluster_logrotate_path, "#{shared_path}/log/mongrel_cluster_*.log") set :logrotate_name, "mongrel_cluster_#{application}" set :logrotate_log_path, mongrel_cluster_logrotate_path set :logrotate_options, [ { :rotate => 7 }, :daily, :missingok, :notifempty, :copytruncate ] logrotated.install_conf end end end end
Version data entries
9 entries across 9 versions & 2 rubygems