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 +4 -4
- data/README.md +4 -1
- data/lib/capistrano/logrotate/version.rb +1 -1
- data/lib/capistrano/tasks/logrotate.rake +1 -0
- data/lib/capistrano/templates/logrotate.erb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4679131c1a6ab1a03b6daeecc5425fc650cadf3
|
4
|
+
data.tar.gz: 94b674544dd4975d4904037194f32d80b1d1eb8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
@@ -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
|
|
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.
|
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:
|
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.
|
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:
|