Sha256: 4ce198ec6c504e1d38abb6c9462f05758bc92414d18a7e190ce15700c16a7032
Contents?: true
Size: 742 Bytes
Versions: 2
Compression:
Stored size: 742 Bytes
Contents
namespace :mongrel do namespace :cluster do namespace :logrotate do desc <<-DESC Install logrotated conf for mongrel cluster. *mongrel_cluster_logrotate_path*: Mongrel cluster logrotate path. _Defaults to <tt>{shared_path}/log/mongrel_cluster_*.log</tt>_ 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capitate-0.2.11 | lib/recipes/logrotate/mongrel_cluster.rb |
capitate-0.2.13 | lib/recipes/logrotate/mongrel_cluster.rb |