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

Version Path
calas-capitate-0.3.6 lib/recipes/logrotate/mongrel_cluster.rb
capitate-0.2.14 lib/recipes/logrotate/mongrel_cluster.rb
capitate-0.2.15 lib/recipes/logrotate/mongrel_cluster.rb
capitate-0.3.4 lib/recipes/logrotate/mongrel_cluster.rb
capitate-0.3.1 lib/recipes/logrotate/mongrel_cluster.rb
capitate-0.3.6 lib/recipes/logrotate/mongrel_cluster.rb
capitate-0.3.5 lib/recipes/logrotate/mongrel_cluster.rb
capitate-0.3.2 lib/recipes/logrotate/mongrel_cluster.rb
capitate-0.3.3 lib/recipes/logrotate/mongrel_cluster.rb