Sha256: f994ef8efca11cf33e1412bb9350f7e834d9978520a1e3154051ee24da2b82c8

Contents?: true

Size: 508 Bytes

Versions: 13

Compression:

Stored size: 508 Bytes

Contents

require 'capistrano'
require 'kapify/base'

Capistrano::Configuration.instance.load do
  namespace :kapify do
    desc "Setup logs rotation for application logs"
    task :logrotate, roles: [:web, :app] do
      kapify_template("logrotate", "logrotate.erb", "/tmp/#{application}_logrotate")
      run "#{sudo} mv /tmp/#{application}_logrotate /etc/logrotate.d/#{application}"
      run "#{sudo} chown root:root /etc/logrotate.d/#{application}"
    end

    after "deploy:setup", "kapify:logrotate"
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
kapify-0.0.13 lib/kapify/logrotate/configuration.rb
kapify-0.0.12 lib/kapify/logrotate/configuration.rb
kapify-0.0.11 lib/kapify/logrotate/configuration.rb
kapify-0.0.10 lib/kapify/logrotate/configuration.rb
kapify-0.0.9 lib/kapify/logrotate/configuration.rb
kapify-0.0.8 lib/kapify/logrotate/configuration.rb
kapify-0.0.7 lib/kapify/logrotate/configuration.rb
kapify-0.0.6 lib/kapify/logrotate/configuration.rb
kapify-0.0.5 lib/kapify/logrotate/configuration.rb
kapify-0.0.4 lib/kapify/logrotate/configuration.rb
kapify-0.0.3 lib/kapify/logrotate/configuration.rb
kapify-0.0.2 lib/kapify/logrotate/configuration.rb
kapify-0.0.1 lib/kapify/logrotate/configuration.rb