capun 0.0.7 → 0.0.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8038f30fd81406257aba6ba7ad6b34b1817d3226
|
4
|
+
data.tar.gz: b120c3d1010cba77b11b306974fb309db11db3bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
@@ -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
|
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.
|
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-
|
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
|