capistrano3-puma 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/puma.rb +1 -0
- data/lib/capistrano/puma/monit.rb +1 -0
- data/lib/capistrano/puma/version.rb +1 -1
- data/lib/capistrano/tasks/monit.rake +9 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 295ce1965bf0542da23256821eebd0d685325b3c
|
4
|
+
data.tar.gz: 67eb6c5435933c7ca2836ea4800459811af03122
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 062b7cef6c9049a77d1bddb8d71ebd378792047dba509cb4e1dc82c6c6f1ecc879f6dfdc9a0560c9a51496fc44edab884427026dc7d71ec61e8d2648729ba44c
|
7
|
+
data.tar.gz: a3c8ab6aee4cd7c2f3393c31043fa21169ccface4d0ea56abb4bbf5f10745bf15c75b69eb4fcf071534406efef4804011640e0ad9148edbf25e290b66ae0df6a
|
data/lib/capistrano/puma.rb
CHANGED
@@ -5,10 +5,9 @@ namespace :puma do
|
|
5
5
|
desc 'Config Puma monit-service'
|
6
6
|
task :config do
|
7
7
|
on roles(fetch(:puma_role)) do |role|
|
8
|
-
|
9
|
-
git_plugin.
|
10
|
-
sudo_if_needed "
|
11
|
-
sudo_if_needed "#{fetch(:puma_monit_bin)} reload"
|
8
|
+
git_plugin.template_puma 'puma_monit.conf', "#{fetch(:tmp_dir)}/monit.conf", role
|
9
|
+
git_plugin.sudo_if_needed "mv #{fetch(:tmp_dir)}/monit.conf #{fetch(:puma_monit_conf_dir)}"
|
10
|
+
git_plugin.sudo_if_needed "#{fetch(:puma_monit_bin)} reload"
|
12
11
|
end
|
13
12
|
end
|
14
13
|
|
@@ -16,10 +15,10 @@ namespace :puma do
|
|
16
15
|
task :monitor do
|
17
16
|
on roles(fetch(:puma_role)) do
|
18
17
|
begin
|
19
|
-
sudo_if_needed "#{fetch(:puma_monit_bin)} monitor #{puma_monit_service_name}"
|
18
|
+
git_plugin.sudo_if_needed "#{fetch(:puma_monit_bin)} monitor #{puma_monit_service_name}"
|
20
19
|
rescue
|
21
20
|
invoke 'puma:monit:config'
|
22
|
-
sudo_if_needed "#{fetch(:puma_monit_bin)} monitor #{puma_monit_service_name}"
|
21
|
+
git_plugin.sudo_if_needed "#{fetch(:puma_monit_bin)} monitor #{puma_monit_service_name}"
|
23
22
|
end
|
24
23
|
end
|
25
24
|
end
|
@@ -28,7 +27,7 @@ namespace :puma do
|
|
28
27
|
task :unmonitor do
|
29
28
|
on roles(fetch(:puma_role)) do
|
30
29
|
begin
|
31
|
-
sudo_if_needed "#{fetch(:puma_monit_bin)} unmonitor #{puma_monit_service_name}"
|
30
|
+
git_plugin.sudo_if_needed "#{fetch(:puma_monit_bin)} unmonitor #{puma_monit_service_name}"
|
32
31
|
rescue
|
33
32
|
# no worries here (still no monitoring)
|
34
33
|
end
|
@@ -38,21 +37,21 @@ namespace :puma do
|
|
38
37
|
desc 'Start Puma monit-service'
|
39
38
|
task :start do
|
40
39
|
on roles(fetch(:puma_role)) do
|
41
|
-
sudo_if_needed "#{fetch(:puma_monit_bin)} start #{puma_monit_service_name}"
|
40
|
+
git_plugin.sudo_if_needed "#{fetch(:puma_monit_bin)} start #{puma_monit_service_name}"
|
42
41
|
end
|
43
42
|
end
|
44
43
|
|
45
44
|
desc 'Stop Puma monit-service'
|
46
45
|
task :stop do
|
47
46
|
on roles(fetch(:puma_role)) do
|
48
|
-
sudo_if_needed "#{fetch(:puma_monit_bin)} stop #{puma_monit_service_name}"
|
47
|
+
git_plugin.sudo_if_needed "#{fetch(:puma_monit_bin)} stop #{puma_monit_service_name}"
|
49
48
|
end
|
50
49
|
end
|
51
50
|
|
52
51
|
desc 'Restart Puma monit-service'
|
53
52
|
task :restart do
|
54
53
|
on roles(fetch(:puma_role)) do
|
55
|
-
sudo_if_needed "#{fetch(:puma_monit_bin)} restart #{puma_monit_service_name}"
|
54
|
+
git_plugin.sudo_if_needed "#{fetch(:puma_monit_bin)} restart #{puma_monit_service_name}"
|
56
55
|
end
|
57
56
|
end
|
58
57
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano3-puma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abdelkader Boudih
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|