capun 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08cab72d1d6e2e79e0b99f52f94438abfa6cb339
4
- data.tar.gz: 567c084aa68d2a7cfe99c89e688a3e72db2fe3eb
3
+ metadata.gz: 8038f30fd81406257aba6ba7ad6b34b1817d3226
4
+ data.tar.gz: b120c3d1010cba77b11b306974fb309db11db3bf
5
5
  SHA512:
6
- metadata.gz: f431e2e6e2a50ed53aac9d01f5622ae48a7a206c6e4e7c497a57a3dc171e467fe7575ac0f6e3e5ff327539b535727c446260e162b9afed46b2611ed61711b678
7
- data.tar.gz: bb2ad16a58c08ad2b2ecc851b7ece7a323b6ccf1d85f7a2086c960af7b7a6356cf6a2510fc3e79de01a11b978b86e8cb9032603ef1bf05a31f9c833db6a0fb0c
6
+ metadata.gz: ad054a518b88a5228e860bf7798a0e60510816edacc7bc1a7d122e84025aa223bd082ffee10ddbf417b9fc822f8bcbed3845121a6923f390446ac447280736a5
7
+ data.tar.gz: a2b8018245f012e7f5ed2277b5a87c34aad604e63a7eaed82c0a14945f543ee861d471d14b2561b4a6baaa18c43f9743f2151fedd356b5d8e09dc3e495fcb224
data/lib/capun/setup.rb CHANGED
@@ -37,6 +37,7 @@ set :symlinks, []
37
37
  set :std_symlinks, [
38
38
  {what: "nginx.conf", where: '/etc/nginx/sites-enabled/#{fetch(:application)}'},
39
39
  {what: "logstash.config", where: '/etc/logstash/conf.d/#{fetch(:application)}'},
40
+ {what: "lograge.config", where: '/etc/logrotate.d/#{fetch(:application)}'},
40
41
  {what: "database.yml", where: '#{release_path}/config/database.yml'},
41
42
  {what: "application.yml", where: '#{release_path}/config/application.yml'}
42
43
  ]
data/lib/capun/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Capun
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -16,6 +16,7 @@ module Capun
16
16
  @password = ask("Basic authentication password [ex.: secret]:")
17
17
  end
18
18
  @addELK = ask("Would you like to add ELK-compatible logging? [Y/n]").capitalize == 'Y'
19
+ @addlograge = ask("Would you like to add lograge configuration to stage? [Y/n]").capitalize == 'Y'
19
20
  end
20
21
 
21
22
  def add_stage
@@ -73,6 +74,11 @@ module Capun
73
74
  end
74
75
  end
75
76
 
77
+ def add_lograge
78
+ if @addlograge
79
+ copy_file "lograge.config.erb", "config/deploy/lograge.config.erb"
80
+ end
81
+ end
82
+
76
83
  end
77
84
  end
78
- end
@@ -0,0 +1,7 @@
1
+ /home/<%= fetch(:user) %>/apps/<%= fetch(:application) %>/shared/log/*.log {
2
+ daily
3
+ missingok
4
+ copytruncate
5
+ rotate 52
6
+ dateext
7
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Zamylin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-06 00:00:00.000000000 Z
11
+ date: 2016-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -134,6 +134,7 @@ files:
134
134
  - lib/generators/capun/templates/deploy.rb.erb
135
135
  - lib/generators/capun/templates/lograge_env_config.excerpt
136
136
  - lib/generators/capun/templates/lograge_initializer.rb
137
+ - lib/generators/capun/templates/logrotate.config.erb
137
138
  - lib/generators/capun/templates/logstash.config.erb
138
139
  - lib/generators/capun/templates/nginx.conf.erb
139
140
  - lib/generators/capun/templates/stage.rb.erb