capistrano-logrotate 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a9ea927369be156cf68dd8176dd82a336a60cb0
4
- data.tar.gz: 7a95ed6aa15ed2a3bd5634324bbd2772cdc4a145
3
+ metadata.gz: c4679131c1a6ab1a03b6daeecc5425fc650cadf3
4
+ data.tar.gz: 94b674544dd4975d4904037194f32d80b1d1eb8c
5
5
  SHA512:
6
- metadata.gz: db39ecb37c4c711103ab72fcd6b419799445fbb341fbaa75b8ee4eaa86781966f7ca0072ea0f53971c4e4f2f6373d8cec0f5bdcff63ab7cf70ec52b7af427723
7
- data.tar.gz: 9aababf300ee19af7d20720b03f5e2114b0646abf7b4829ee39ad9638894084e8a2dc4575db5319393987874cec0fbf0d04d9c616bb1b9edc52fe6efc79b5dff
6
+ metadata.gz: c9412d945119bfc82d03a6317035ba5f017521653dba3db848cf003cbacca5196ae0675854cd91b26054f8a2e7f11b71214bcf4929817f6324ebad717d901898
7
+ data.tar.gz: c0665897665becc8bfb63c50d021d2178dab17e80d8679cea72bcfbc7bdffadb43154c15a20eed085a88ce35e7311b6a191e1f074105d00861c7c325535dca2e
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Capistrano::Logrotate
2
2
 
3
+ [![Code Climate](http://img.shields.io/codeclimate/github/linjunpop/capistrano-logrotate.svg)](https://codeclimate.com/github/linjunpop/capistrano-logrotate)
4
+ [![Gem Version](http://img.shields.io/gem/v/capistrano-logrotate.svg)](https://rubygems.org/gems/capistrano-logrotate)
5
+
3
6
  ## Installation
4
7
 
5
8
  Add this line to your application's Gemfile:
@@ -32,6 +35,7 @@ Configurable options, shown here with defaults: Please note the configuration op
32
35
  set :logrotate_role, :app
33
36
  set :logrotate_conf_path, -> { File.join('/etc', 'logrotate.d', "#{fetch(:application)}_#{fetch(:stage)}") }
34
37
  set :logrotate_log_path, -> { File.join(shared_path, 'log') }
38
+ set :logrotate_logs_keep, -> { 12 }
35
39
  ```
36
40
 
37
41
  ## Development
@@ -43,4 +47,3 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
43
47
  ## Contributing
44
48
 
45
49
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/capistrano-logrotate.
46
-
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Logrotate
3
- VERSION = "0.1.1"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -3,6 +3,7 @@ namespace :load do
3
3
  set :logrotate_role, :app
4
4
  set :logrotate_conf_path, -> { File.join('/etc', 'logrotate.d', "#{fetch(:application)}_#{fetch(:stage)}") }
5
5
  set :logrotate_log_path, -> { File.join(shared_path, 'log') }
6
+ set :logrotate_logs_keep, -> { 12 }
6
7
  end
7
8
  end
8
9
 
@@ -1,6 +1,6 @@
1
1
  <%= fetch(:logrotate_log_path) %>/*.log {
2
2
  daily
3
- rotate 52
3
+ rotate <%= fetch(:logrotate_logs_keep) %>
4
4
 
5
5
  missingok
6
6
  compress
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-logrotate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jun Lin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-03 00:00:00.000000000 Z
11
+ date: 2017-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -105,9 +105,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  version: '0'
106
106
  requirements: []
107
107
  rubyforge_project:
108
- rubygems_version: 2.4.8
108
+ rubygems_version: 2.6.11
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: Logrotate integration for Capistrano.
112
112
  test_files: []
113
- has_rdoc: