capistrano3-puma 3.0.2 → 3.0.3
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/jungle.rb +4 -6
- data/lib/capistrano/puma/version.rb +1 -1
- data/lib/capistrano/tasks/jungle.rake +2 -3
- 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: 55d549d7cb3e0dbaeec810b62a92d8849b2dc8b4
|
4
|
+
data.tar.gz: 53ee26a9429adca7d5d333393ba93c9439398f55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cc4f3473a175e4c74af3244c8b5e758626db8b556bdd0c72501b7053a2995ddecd18c3f0b42eb5764b6e948d73f8b62274e012e4171ca701ce03508b618b30d
|
7
|
+
data.tar.gz: e9669146b2f239bd934ac1b014e4e24af981b78325accdba11dc2f1c2c8191c1aec2a331cda7c24d1323bbd2fb61ff6cd01c4bc5751b39080950169b0ea579aa
|
@@ -11,17 +11,15 @@ module Capistrano
|
|
11
11
|
eval_rakefile File.expand_path('../../tasks/jungle.rake', __FILE__)
|
12
12
|
end
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
def debian_install
|
17
|
-
template_puma 'puma-deb', "#{fetch(:tmp_dir)}/puma", @role
|
14
|
+
def debian_install(role)
|
15
|
+
template_puma 'puma-deb', "#{fetch(:tmp_dir)}/puma", role
|
18
16
|
execute "chmod +x #{fetch(:tmp_dir)}/puma"
|
19
17
|
sudo "mv #{fetch(:tmp_dir)}/puma /etc/init.d/puma"
|
20
18
|
sudo 'update-rc.d -f puma defaults'
|
21
19
|
end
|
22
20
|
|
23
|
-
def rhel_install
|
24
|
-
template_puma 'puma-rpm', "#{fetch(:tmp_dir)}/puma",
|
21
|
+
def rhel_install(role)
|
22
|
+
template_puma 'puma-rpm', "#{fetch(:tmp_dir)}/puma", role
|
25
23
|
execute "chmod +x #{fetch(:tmp_dir)}/puma"
|
26
24
|
sudo "mv #{fetch(:tmp_dir)}/puma /etc/init.d/puma"
|
27
25
|
sudo 'chkconfig --add puma'
|
@@ -5,16 +5,15 @@ namespace :puma do
|
|
5
5
|
desc 'Install Puma jungle'
|
6
6
|
task :install do
|
7
7
|
on roles(fetch(:puma_role)) do |role|
|
8
|
-
@role = role
|
9
8
|
git_plugin.template_puma 'run-puma', "#{fetch(:tmp_dir)}/run-puma", role
|
10
9
|
execute "chmod +x #{fetch(:tmp_dir)}/run-puma"
|
11
10
|
sudo "mv #{fetch(:tmp_dir)}/run-puma #{fetch(:puma_run_path)}"
|
12
11
|
if test '[ -f /etc/redhat-release ]'
|
13
12
|
#RHEL flavor OS
|
14
|
-
git_plugin.rhel_install
|
13
|
+
git_plugin.rhel_install(role)
|
15
14
|
elsif test '[ -f /etc/lsb-release ]'
|
16
15
|
#Debian flavor OS
|
17
|
-
git_plugin.debian_install
|
16
|
+
git_plugin.debian_install(role)
|
18
17
|
else
|
19
18
|
#Some other OS
|
20
19
|
error 'This task is not supported for your OS'
|
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.3
|
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-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|