Sha256: 68990be9e8d6e4f0bf5a53e1b3be792492289959223328174c81214bc9a1b139

Contents?: true

Size: 386 Bytes

Versions: 26

Compression:

Stored size: 386 Bytes

Contents

if Capistrano::Configuration.instance(false)

  Capistrano::Configuration.instance(true).load do |instance|

    namespace :logrotate do

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

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
pixelforce_recipes-3.9.2 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-3.9.1 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-3.9 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-3.8 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-3.7 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-3.6 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-3.5 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-3.4 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-3.3 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-3.2 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-3.1 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-3.0 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-2.4 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-2.3 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-2.1 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-2.0 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-1.8 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-1.6 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-1.5 lib/pixelforce_recipes/legacy_recipes/logrotate.rb
pixelforce_recipes-1.4 lib/pixelforce_recipes/legacy_recipes/logrotate.rb