capistrano-rdws 0.0.3 → 0.0.4

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 25b7fdcc8da700b84d747af125b75b492a5c2601
4
+ data.tar.gz: 5e19ffc91375af9c65eaa725f2ef79aaccb6405b
5
+ SHA512:
6
+ metadata.gz: 47ea574af62912c0235d45c498ca5b1d9a513db76e2136fecdc70f0a3b562fbcc944a8abf5e0d4a094366f40d5158b4a4a0beebb309b2e4e261e34a89bfaae2e
7
+ data.tar.gz: f4753dbf01fbf4da344226b291acb21bce4ee3473a5b7cdbead12d768d5b7cf2ba600d7871d3d8a9217ff7f2516f50d01f10ff643cba03891876b4c36a09e088
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Rdws
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -1,6 +1,11 @@
1
+ namespace :load do
2
+ task :defaults do
3
+ set :unicorn_pid, -> { "#{current_path}/tmp/pids/unicorn.pid" }
4
+ end
5
+ end
6
+
7
+
1
8
  namespace :unicorn do
2
- pid_path = "#{fetch(:shared_path)}/tmp/pids"
3
- unicorn_pid = "#{pid_path}/unicorn.pid"
4
9
 
5
10
  def run_unicorn
6
11
  within release_path do
@@ -18,8 +23,8 @@ namespace :unicorn do
18
23
  desc 'Stop unicorn'
19
24
  task :stop do
20
25
  on roles(:app) do
21
- if test "[ -f #{unicorn_pid} ]"
22
- execute :kill, "-QUIT `cat #{unicorn_pid}`"
26
+ if test "[ -f #{fetch(:unicorn_pid)} ]"
27
+ execute :kill, "-QUIT `cat #{fetch(:unicorn_pid)}`"
23
28
  end
24
29
  end
25
30
  end
@@ -27,9 +32,9 @@ namespace :unicorn do
27
32
  desc 'Force stop unicorn (kill -9)'
28
33
  task :force_stop do
29
34
  on roles(:app) do
30
- if test "[ -f #{unicorn_pid} ]"
31
- execute :kill, "-9 `cat #{unicorn_pid}`"
32
- execute :rm, unicorn_pid
35
+ if test "[ -f #{fetch(:unicorn_pid)} ]"
36
+ execute :kill, "-9 `cat #{fetch(:unicorn_pid)}`"
37
+ execute :rm, fetch(:unicorn_pid)
33
38
  end
34
39
  end
35
40
  end
@@ -37,8 +42,8 @@ namespace :unicorn do
37
42
  desc 'Restart unicorn'
38
43
  task :restart do
39
44
  on roles(:app) do
40
- if test "[ -f #{unicorn_pid} ]"
41
- execute :kill, "-USR2 `cat #{unicorn_pid}`"
45
+ if test "[ -f #{fetch(:unicorn_pid)} ]"
46
+ execute :kill, "-USR2 `cat #{fetch(:unicorn_pid)}`"
42
47
  else
43
48
  run_unicorn
44
49
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-rdws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Rydkin Maxim
@@ -14,65 +13,57 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.3'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.3'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: capistrano
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: '3.1'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: '3.1'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: capistrano-bundler
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
61
  version: '1.1'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
68
  version: '1.1'
78
69
  description: This gem is a bundle of capistrano 3 recipes used for RDWS projects
@@ -82,8 +73,8 @@ executables: []
82
73
  extensions: []
83
74
  extra_rdoc_files: []
84
75
  files:
85
- - .DS_Store
86
- - .gitignore
76
+ - ".DS_Store"
77
+ - ".gitignore"
87
78
  - Gemfile
88
79
  - LICENSE.txt
89
80
  - README.md
@@ -105,26 +96,25 @@ files:
105
96
  homepage: ''
106
97
  licenses:
107
98
  - MIT
99
+ metadata: {}
108
100
  post_install_message:
109
101
  rdoc_options: []
110
102
  require_paths:
111
103
  - lib
112
104
  required_ruby_version: !ruby/object:Gem::Requirement
113
- none: false
114
105
  requirements:
115
- - - ! '>='
106
+ - - ">="
116
107
  - !ruby/object:Gem::Version
117
108
  version: '0'
118
109
  required_rubygems_version: !ruby/object:Gem::Requirement
119
- none: false
120
110
  requirements:
121
- - - ! '>='
111
+ - - ">="
122
112
  - !ruby/object:Gem::Version
123
113
  version: '0'
124
114
  requirements: []
125
115
  rubyforge_project:
126
- rubygems_version: 1.8.25
116
+ rubygems_version: 2.1.11
127
117
  signing_key:
128
- specification_version: 3
118
+ specification_version: 4
129
119
  summary: ''
130
120
  test_files: []