rebuy_deployment 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/rebuy_deployment/deploy.rb +6 -12
  3. metadata +21 -37
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: fb1ba3a7077bdf6fa25de69382e5a5da6df97704
4
+ data.tar.gz: 3db9b3747a784985a3a6e8907c3c90f03e39b107
5
+ SHA512:
6
+ metadata.gz: b74802c00d31ba1510a725e3848b2f358a74407525b4983c61c472c31048e81e87bbf43b9c1375d62c7b0b208f7f4fbf28706886bc416f3a7ef2b4a2cffd0d57
7
+ data.tar.gz: 55bca1ba385cc39679b73312e365791a6b331b7aa78ed4d633e55a4a27629224048339a3b175257691556acf16d4387f61a2ea6240cf4822056ea48f9f8d11a6
@@ -152,13 +152,9 @@ namespace :deploy do
152
152
  when "php-fpm"
153
153
  run "#{try_sudo} /sbin/service php-fpm reload"
154
154
  when "svc"
155
- if exists?(:svc_name)
156
- run "#{try_sudo} /usr/bin/svc -d /service/#{svc_name}"
157
- run "#{try_sudo} /usr/bin/svc -u /service/#{svc_name}"
158
- else
159
- run "#{try_sudo} /usr/bin/svc -d /service/#{application}"
160
- run "#{try_sudo} /usr/bin/svc -u /service/#{application}"
161
- end
155
+ run "#{try_sudo} /usr/bin/systemctl restart #{application}"
156
+ when "systemd"
157
+ run "#{try_sudo} /usr/bin/systemctl restart #{application}"
162
158
  end
163
159
  end
164
160
 
@@ -171,11 +167,9 @@ namespace :deploy do
171
167
  when "php-fpm"
172
168
  restart = "#{try_sudo} /sbin/service php-fpm reload"
173
169
  when "svc"
174
- if exists?(:svc_name)
175
- restart = "#{try_sudo} /usr/bin/svc -d /service/#{svc_name} && #{try_sudo} /usr/bin/svc -u /service/#{svc_name}"
176
- else
177
- restart = "#{try_sudo} /usr/bin/svc -d /service/#{application} && #{try_sudo} /usr/bin/svc -u /service/#{application}"
178
- end
170
+ restart = "#{try_sudo} /usr/bin/systemctl restart #{application}"
171
+ when "systemd"
172
+ restart = "#{try_sudo} /usr/bin/systemctl restart #{application}"
179
173
  end
180
174
 
181
175
  servers = find_servers_for_task(current_task)
metadata CHANGED
@@ -1,126 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rebuy_deployment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
5
- prerelease:
4
+ version: 0.9.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - reBuy reCommerce GmbH
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2018-08-09 00:00:00.000000000 Z
11
+ date: 2019-05-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: capistrano
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: 2.15.4
22
20
  type: :runtime
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: 2.15.4
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: railsless-deploy
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: 1.0.2
38
34
  type: :runtime
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: 1.0.2
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rake
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
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: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: mail
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: 2.4.4
70
62
  type: :runtime
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: 2.4.4
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: zookeeper
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: 1.4.11
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: 1.4.11
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: zk
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - ">="
100
88
  - !ruby/object:Gem::Version
101
89
  version: 1.8.0
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - ">="
108
95
  - !ruby/object:Gem::Version
109
96
  version: 1.8.0
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: json
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - ">="
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :runtime
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - ">="
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
126
111
  description: This gem offers deployment for all rebuy.de projects
@@ -138,26 +123,25 @@ files:
138
123
  - lib/rebuy_deployment/rakefile
139
124
  homepage:
140
125
  licenses: []
126
+ metadata: {}
141
127
  post_install_message:
142
128
  rdoc_options: []
143
129
  require_paths:
144
130
  - lib
145
131
  required_ruby_version: !ruby/object:Gem::Requirement
146
- none: false
147
132
  requirements:
148
- - - ! '>='
133
+ - - ">="
149
134
  - !ruby/object:Gem::Version
150
135
  version: '0'
151
136
  required_rubygems_version: !ruby/object:Gem::Requirement
152
- none: false
153
137
  requirements:
154
- - - ! '>='
138
+ - - ">="
155
139
  - !ruby/object:Gem::Version
156
140
  version: '0'
157
141
  requirements: []
158
142
  rubyforge_project:
159
- rubygems_version: 1.8.23.2
143
+ rubygems_version: 2.5.2.3
160
144
  signing_key:
161
- specification_version: 3
145
+ specification_version: 4
162
146
  summary: Capistrano deployment for rebuy.de projects
163
147
  test_files: []