Sha256: 98080a5b12e78836395ff387f101a668264fda627144a24ba387a0ca90d7eea1
Contents?: true
Size: 330 Bytes
Versions: 4
Compression:
Stored size: 330 Bytes
Contents
namespace :logrotate do desc "Setup logrotate configuration for this application" task :setup do on roles(:web) do template "logrotate.erb", "/tmp/logrotate" sudo "mv /tmp/logrotate /etc/logrotate.d/#{fetch(:application)}" sudo "chown root:root /etc/logrotate.d/#{fetch(:application)}" end end end
Version data entries
4 entries across 4 versions & 1 rubygems