Sha256: 4a5354c4b43fc8f1fe37ba1f1dd3a882e0c5a5f48a0170ba3c8dc5262d87369c
Contents?: true
Size: 437 Bytes
Versions: 2
Compression:
Stored size: 437 Bytes
Contents
namespace :logrotate do desc "Setup logs rotation for nginx and unicorn" task :setup do on roles(:web, :app) do logrotate_config = "#{fetch(:application)}_#{fetch(:stage)}" template("logrotate.erb", "/tmp/#{logrotate_config}_logrotate") sudo :mv, "/tmp/#{logrotate_config}_logrotate /etc/logrotate.d/#{logrotate_config}" sudo :chown, "root:root", "/etc/logrotate.d/#{logrotate_config}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capistrano-nginx-unicorn-0.1.0 | lib/capistrano/tasks/logrotate.rake |
capistrano-nginx-unicorn-0.1.0.pre | lib/capistrano/tasks/logrotate.rake |