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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d6d5723170d3691d85ccab8996a4f3d933c6cbe
4
- data.tar.gz: cf71691c34d8f677ba375aedd3cc10bba20eb1dd
3
+ metadata.gz: 55d549d7cb3e0dbaeec810b62a92d8849b2dc8b4
4
+ data.tar.gz: 53ee26a9429adca7d5d333393ba93c9439398f55
5
5
  SHA512:
6
- metadata.gz: 227f4e7aa92e32912054004fdb6148dbb4133f9899ddcc1883ccaa0bc05183dcbec5664c1ce2ad00c47ebe1069d3fff69c84fdb9252237e47c5c0be7453b440e
7
- data.tar.gz: 44cf805c5ccf839f6c204c75942cbb7384a41e34db31990cd690e5c2f16081d7330ca717c75c9587a00551666829f91e62d4b847f6d286b0e35e4a3041e40519
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
- private
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", @role
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'
@@ -1,3 +1,3 @@
1
1
  module Capistrano
2
- PumaVERSION = '3.0.2'
2
+ PumaVERSION = '3.0.3'
3
3
  end
@@ -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.2
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-22 00:00:00.000000000 Z
11
+ date: 2017-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano