Sha256: 617560dae68ff7ec3057426e8f17a2cb31f33d72ff37b33677b41cff46b4d795

Contents?: true

Size: 760 Bytes

Versions: 9

Compression:

Stored size: 760 Bytes

Contents

namespace :backgroundrb do
  
  namespace :logrotate do
    
    desc <<-DESC
    Install logrotated conf for backgroundrb.
  
    <dl>
    <dt>backgroundrb_logrotate_path<dt>
    <dd>Backgroundrb logrotate paths.</dd>
    <dd class="default">Defaults to @\#{shared_path}/log/backgroundrb*.log@</dd>
    </dl>
    "Source":#{link_to_source(__FILE__)}    
    DESC
    task :install do
      fetch_or_default(:backgroundrb_logrotate_path, "#{shared_path}/log/backgroundrb*.log")
    
      set :logrotate_name, "backgroundrb_#{application}"
      set :logrotate_log_path, backgroundrb_logrotate_path
      set :logrotate_options, [ { :rotate => 2 }, :weekly, :missingok, :notifempty, :copytruncate ]
    
      logrotated.install_conf      
    end
  end
  
end

Version data entries

9 entries across 9 versions & 2 rubygems

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