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

Version Path
pixelforce_recipes-3.9.1 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb
pixelforce_recipes-3.9 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb
pixelforce_recipes-3.8 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb
pixelforce_recipes-3.7 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb