Sha256: 9a1d988b720f6b06837a173fb6d480522749491dd6fabb8f8e0001d261cd11f2

Contents?: true

Size: 261 Bytes

Versions: 15

Compression:

Stored size: 261 Bytes

Contents

namespace :logrotate do
  desc "Setup logrotate configuration for this application"
  task :setup do
    on roles(:app) do
      template "logrotate.erb", "/tmp/logrotate"
      sudo "mv /tmp/logrotate /etc/logrotate.d/#{fetch(:application)}"
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
pixelforce_recipes-3.6 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb
pixelforce_recipes-3.5 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb
pixelforce_recipes-3.4 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb
pixelforce_recipes-3.3 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb
pixelforce_recipes-3.2 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb
pixelforce_recipes-3.1 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb
pixelforce_recipes-3.0 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb
pixelforce_recipes-2.4 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb
pixelforce_recipes-2.3 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb
pixelforce_recipes-2.1 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb
pixelforce_recipes-2.0 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb
pixelforce_recipes-1.8 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb
pixelforce_recipes-1.6 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb
pixelforce_recipes-1.5 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb
pixelforce_recipes-1.4 lib/pixelforce_recipes/capistrano_3_recipes/logrotate.rb