capistrano_multiconfig_parallel 0.15.6 → 0.16.0

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.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +25 -0
  3. data/.gitignore +0 -1
  4. data/Gemfile.lock +327 -0
  5. data/README.md +1 -1
  6. data/lib/capistrano_multiconfig_parallel/all.rb +16 -1
  7. data/lib/capistrano_multiconfig_parallel/application.rb +340 -11
  8. data/lib/capistrano_multiconfig_parallel/base.rb +8 -8
  9. data/lib/capistrano_multiconfig_parallel/celluloid/celluloid_manager.rb +3 -6
  10. data/lib/capistrano_multiconfig_parallel/celluloid/celluloid_worker.rb +6 -0
  11. data/lib/capistrano_multiconfig_parallel/cli.rb +8 -1
  12. data/lib/capistrano_multiconfig_parallel/configuration.rb +8 -30
  13. data/lib/capistrano_multiconfig_parallel/extensions/rake.rb +1 -1
  14. data/lib/capistrano_multiconfig_parallel/{multi_app_helpers → helpers}/dependency_tracker.rb +5 -5
  15. data/lib/capistrano_multiconfig_parallel/helpers/helper.rb +9 -0
  16. data/lib/capistrano_multiconfig_parallel/{extensions → helpers}/rake_hook_actor.rb +0 -1
  17. data/lib/capistrano_multiconfig_parallel/initializers/conf.rb +2 -3
  18. data/lib/capistrano_multiconfig_parallel/initializers/default.yml +3 -3
  19. data/lib/capistrano_multiconfig_parallel/version.rb +2 -2
  20. metadata +11 -9
  21. data/lib/capistrano_multiconfig_parallel/managers/base_manager.rb +0 -348
  22. /data/lib/capistrano_multiconfig_parallel/{extensions → helpers}/input_stream.rb +0 -0
  23. /data/lib/capistrano_multiconfig_parallel/{multi_app_helpers → helpers}/interactive_menu.rb +0 -0
  24. /data/lib/capistrano_multiconfig_parallel/{extensions → helpers}/output_stream.rb +0 -0
  25. /data/lib/capistrano_multiconfig_parallel/{managers → helpers}/standard_deploy.rb +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d670bac33692dac58e4499796c9b05998ce94b5f
4
- data.tar.gz: 4b6618a06b135cd04261526a9973d0b43c4bb6d2
3
+ metadata.gz: 3ce2dc9cdc3056f52c0f0f06facbc8208eb341a8
4
+ data.tar.gz: f014527c0c1545dd27d0561bb2188df5816a6eaf
5
5
  SHA512:
6
- metadata.gz: c8eaa6377ba9f5fbe842a15fb71461777b69be8d21c4d689c8cf8c43ae0a20259035a1d21ba15ff5eb1b5a18ccef58f1be48c62ca9ec1dd27bfe0a97e297b3d0
7
- data.tar.gz: 749246e82c4795cb48aeebd9c7e9ea60a75a5dc4c95c4c1477990abd7433c44e6095fb7fbbba171d9024bc5f1b1bf5980bd3c0f4a92e8c631f543640dd8fdee5
6
+ metadata.gz: 3749cf237d9070a98da9ddf7b7b939b23d440b7edb318fd1dd26c227d3c47b04fd7738c9e5251e459cb7ac73fed714783cf1ea7e66a07309684cc0ff6f8667a0
7
+ data.tar.gz: 67b528fcfcecf9a5ac5a87f85a22e9cd4467a0ce47ed421f1587ea3167e0882784e035c05c0a71998d0de1f14658a7995459bd46dc4ee4f729cf07076bbc6093
data/.codeclimate.yml ADDED
@@ -0,0 +1,25 @@
1
+ ---
2
+ engines:
3
+ bundler-audit:
4
+ enabled: true
5
+ csslint:
6
+ enabled: true
7
+ eslint:
8
+ enabled: true
9
+ fixme:
10
+ enabled: true
11
+ rubocop:
12
+ enabled: true
13
+ ratings:
14
+ paths:
15
+ - Gemfile.lock
16
+ - "**.css"
17
+ - "**.js"
18
+ - "**.jsx"
19
+ - "**.rb"
20
+ exclude_paths:
21
+ - spec/**/*
22
+ - test/**/*
23
+ - vendor/**/*
24
+ - bin/**/*
25
+ - .codeclimate.yml
data/.gitignore CHANGED
@@ -11,7 +11,6 @@ spec/dummy/log/*.log
11
11
  spec/dummy/tmp/
12
12
  coverage
13
13
  tags
14
- Gemfile.lock
15
14
  /nbproject/
16
15
  /.git-rewrite/
17
16
  /bin/**/*
data/Gemfile.lock ADDED
@@ -0,0 +1,327 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ capistrano_multiconfig_parallel (0.15.5)
5
+ activesupport (~> 4.0, >= 4.0)
6
+ capistrano (~> 3.0, >= 3.0)
7
+ celluloid-pmap (~> 0.2, >= 0.2.2)
8
+ celluloid_pubsub (~> 0.0, >= 0.0.21)
9
+ colorize (~> 0.7, >= 0.7)
10
+ composable_state_machine (~> 1.0, >= 1.0.2)
11
+ configliere (~> 0.4, >= 0.4)
12
+ devnull (~> 0.1, >= 0.1)
13
+ eventmachine (~> 1.0, >= 1.0.3)
14
+ inquirer (~> 0.2, >= 0.2)
15
+ right_popen (~> 1.1, >= 1.1.3)
16
+ terminal-table (~> 1.5, >= 1.5.2)
17
+ versionomy (~> 0.4, >= 0.4.4)
18
+
19
+ GEM
20
+ remote: http://rubygems.org/
21
+ specs:
22
+ abstract_type (0.0.7)
23
+ actionpack (4.2.5)
24
+ actionview (= 4.2.5)
25
+ activesupport (= 4.2.5)
26
+ rack (~> 1.6)
27
+ rack-test (~> 0.6.2)
28
+ rails-dom-testing (~> 1.0, >= 1.0.5)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
30
+ actionview (4.2.5)
31
+ activesupport (= 4.2.5)
32
+ builder (~> 3.1)
33
+ erubis (~> 2.7.0)
34
+ rails-dom-testing (~> 1.0, >= 1.0.5)
35
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
36
+ activesupport (4.2.5)
37
+ i18n (~> 0.7)
38
+ json (~> 1.7, >= 1.7.7)
39
+ minitest (~> 5.1)
40
+ thread_safe (~> 0.3, >= 0.3.4)
41
+ tzinfo (~> 1.1)
42
+ adamantium (0.2.0)
43
+ ice_nine (~> 0.11.0)
44
+ memoizable (~> 0.4.0)
45
+ addressable (2.3.8)
46
+ ast (2.1.0)
47
+ astrolabe (1.3.1)
48
+ parser (~> 2.2)
49
+ axiom-types (0.1.1)
50
+ descendants_tracker (~> 0.0.4)
51
+ ice_nine (~> 0.11.0)
52
+ thread_safe (~> 0.3, >= 0.3.1)
53
+ blockenspiel (0.4.5)
54
+ builder (3.2.2)
55
+ capistrano (3.4.0)
56
+ i18n
57
+ rake (>= 10.0.0)
58
+ sshkit (~> 1.3)
59
+ celluloid (0.16.0)
60
+ timers (~> 4.0.0)
61
+ celluloid-io (0.16.2)
62
+ celluloid (>= 0.16.0)
63
+ nio4r (>= 1.1.0)
64
+ celluloid-pmap (0.2.2)
65
+ celluloid (>= 0.16)
66
+ celluloid-websocket-client (0.0.1)
67
+ celluloid-io
68
+ websocket-protocol
69
+ celluloid_pubsub (0.0.21)
70
+ activesupport (~> 4.1, >= 4.1.0)
71
+ celluloid (~> 0.16.0, ~> 0.16)
72
+ celluloid-io (~> 0.16, >= 0.16.2)
73
+ celluloid-websocket-client (= 0.0.1)
74
+ reel (~> 0.5, >= 0.5.0)
75
+ codeclimate-engine-rb (0.1.0)
76
+ virtus (~> 1.0)
77
+ coderay (1.1.0)
78
+ coercible (1.0.0)
79
+ descendants_tracker (~> 0.0.1)
80
+ colored (1.2)
81
+ colorize (0.7.7)
82
+ composable_state_machine (1.0.2)
83
+ concord (0.1.5)
84
+ adamantium (~> 0.2.0)
85
+ equalizer (~> 0.0.9)
86
+ configliere (0.4.22)
87
+ highline (= 1.5.2)
88
+ multi_json (~> 1.10.1)
89
+ coveralls (0.8.9)
90
+ json (~> 1.8)
91
+ rest-client (>= 1.6.8, < 2)
92
+ simplecov (~> 0.10.0)
93
+ term-ansicolor (~> 1.3)
94
+ thor (~> 0.19.1)
95
+ tins (~> 1.6.0)
96
+ descendants_tracker (0.0.4)
97
+ thread_safe (~> 0.3, >= 0.3.1)
98
+ devnull (0.1.2)
99
+ diff-lcs (1.2.5)
100
+ docile (1.1.5)
101
+ domain_name (0.5.25)
102
+ unf (>= 0.0.5, < 1.0.0)
103
+ equalizer (0.0.11)
104
+ erubis (2.7.0)
105
+ eventmachine (1.0.8)
106
+ ffi (1.9.10)
107
+ formatador (0.2.5)
108
+ github-markup (1.4.0)
109
+ guard (2.13.0)
110
+ formatador (>= 0.2.4)
111
+ listen (>= 2.7, <= 4.0)
112
+ lumberjack (~> 1.0)
113
+ nenv (~> 0.1)
114
+ notiffany (~> 0.0)
115
+ pry (>= 0.9.12)
116
+ shellany (~> 0.0)
117
+ thor (>= 0.18.1)
118
+ guard-compat (1.2.1)
119
+ guard-inch (0.2.0)
120
+ guard (~> 2)
121
+ inch (~> 0)
122
+ guard-rspec (4.6.4)
123
+ guard (~> 2.1)
124
+ guard-compat (~> 1.1)
125
+ rspec (>= 2.99.0, < 4.0)
126
+ highline (1.5.2)
127
+ hitimes (1.2.3)
128
+ http (0.9.8)
129
+ addressable (~> 2.3)
130
+ http-cookie (~> 1.0)
131
+ http-form_data (~> 1.0.1)
132
+ http_parser.rb (~> 0.6.0)
133
+ http-cookie (1.0.2)
134
+ domain_name (~> 0.5)
135
+ http-form_data (1.0.1)
136
+ http_parser.rb (0.6.0)
137
+ i18n (0.7.0)
138
+ ice_nine (0.11.1)
139
+ inch (0.7.0)
140
+ pry
141
+ sparkr (>= 0.2.0)
142
+ term-ansicolor
143
+ yard (~> 0.8.7.5)
144
+ inquirer (0.2.1)
145
+ term-ansicolor (>= 1.2.2)
146
+ json (1.8.3)
147
+ listen (3.0.5)
148
+ rb-fsevent (>= 0.9.3)
149
+ rb-inotify (>= 0.9)
150
+ loofah (2.0.3)
151
+ nokogiri (>= 1.5.9)
152
+ lumberjack (1.0.9)
153
+ memoizable (0.4.2)
154
+ thread_safe (~> 0.3, >= 0.3.1)
155
+ metaclass (0.0.4)
156
+ method_source (0.8.2)
157
+ mime-types (2.99)
158
+ mini_portile (0.6.2)
159
+ minitest (5.8.3)
160
+ mob_spawner (1.0.0)
161
+ mocha (1.1.0)
162
+ metaclass (~> 0.0.1)
163
+ multi_json (1.10.1)
164
+ nenv (0.2.0)
165
+ net-scp (1.2.1)
166
+ net-ssh (>= 2.6.5)
167
+ net-ssh (3.0.1)
168
+ netrc (0.11.0)
169
+ nio4r (1.1.1)
170
+ nokogiri (1.6.6.4)
171
+ mini_portile (~> 0.6.0)
172
+ notiffany (0.0.8)
173
+ nenv (~> 0.1)
174
+ shellany (~> 0.0)
175
+ parser (2.2.3.0)
176
+ ast (>= 1.1, < 3.0)
177
+ powerpack (0.1.1)
178
+ private_attr (1.1.0)
179
+ procto (0.0.2)
180
+ pry (0.10.3)
181
+ coderay (~> 1.1.0)
182
+ method_source (~> 0.8.1)
183
+ slop (~> 3.4)
184
+ rack (1.6.4)
185
+ rack-test (0.6.3)
186
+ rack (>= 1.0)
187
+ rails-deprecated_sanitizer (1.0.3)
188
+ activesupport (>= 4.2.0.alpha)
189
+ rails-dom-testing (1.0.7)
190
+ activesupport (>= 4.2.0.beta, < 5.0)
191
+ nokogiri (~> 1.6.0)
192
+ rails-deprecated_sanitizer (>= 1.0.1)
193
+ rails-html-sanitizer (1.0.2)
194
+ loofah (~> 2.0)
195
+ railties (4.2.5)
196
+ actionpack (= 4.2.5)
197
+ activesupport (= 4.2.5)
198
+ rake (>= 0.8.7)
199
+ thor (>= 0.18.1, < 2.0)
200
+ rainbow (2.0.0)
201
+ rake (10.4.2)
202
+ rb-fsevent (0.9.6)
203
+ rb-inotify (0.9.5)
204
+ ffi (>= 0.5.0)
205
+ redcarpet (3.3.3)
206
+ reek (3.7.0)
207
+ codeclimate-engine-rb (~> 0.1.0)
208
+ parser (~> 2.2, >= 2.2.2.5)
209
+ private_attr (~> 1.1)
210
+ rainbow (~> 2.0)
211
+ unparser (~> 0.2.2)
212
+ reel (0.5.0)
213
+ celluloid (>= 0.15.1)
214
+ celluloid-io (>= 0.15.0)
215
+ http (>= 0.6.0.pre)
216
+ http_parser.rb (>= 0.6.0)
217
+ websocket_parser (>= 0.1.6)
218
+ rest-client (1.8.0)
219
+ http-cookie (>= 1.0.2, < 2.0)
220
+ mime-types (>= 1.16, < 3.0)
221
+ netrc (~> 0.7)
222
+ right_popen (1.1.3)
223
+ rspec (3.4.0)
224
+ rspec-core (~> 3.4.0)
225
+ rspec-expectations (~> 3.4.0)
226
+ rspec-mocks (~> 3.4.0)
227
+ rspec-core (3.4.1)
228
+ rspec-support (~> 3.4.0)
229
+ rspec-expectations (3.4.0)
230
+ diff-lcs (>= 1.2.0, < 2.0)
231
+ rspec-support (~> 3.4.0)
232
+ rspec-mocks (3.4.0)
233
+ diff-lcs (>= 1.2.0, < 2.0)
234
+ rspec-support (~> 3.4.0)
235
+ rspec-rails (3.4.0)
236
+ actionpack (>= 3.0, < 4.3)
237
+ activesupport (>= 3.0, < 4.3)
238
+ railties (>= 3.0, < 4.3)
239
+ rspec-core (~> 3.4.0)
240
+ rspec-expectations (~> 3.4.0)
241
+ rspec-mocks (~> 3.4.0)
242
+ rspec-support (~> 3.4.0)
243
+ rspec-support (3.4.1)
244
+ rubocop (0.35.1)
245
+ astrolabe (~> 1.3)
246
+ parser (>= 2.2.3.0, < 3.0)
247
+ powerpack (~> 0.1)
248
+ rainbow (>= 1.99.1, < 3.0)
249
+ ruby-progressbar (~> 1.7)
250
+ tins (<= 1.6.0)
251
+ ruby-progressbar (1.7.5)
252
+ rvm-tester (1.1.0)
253
+ mob_spawner
254
+ rake
255
+ shellany (0.0.1)
256
+ simplecov (0.10.0)
257
+ docile (~> 1.1.0)
258
+ json (~> 1.8)
259
+ simplecov-html (~> 0.10.0)
260
+ simplecov-html (0.10.0)
261
+ simplecov-summary (0.0.4)
262
+ colored
263
+ simplecov
264
+ slop (3.6.0)
265
+ sparkr (0.4.1)
266
+ sshkit (1.7.1)
267
+ colorize (>= 0.7.0)
268
+ net-scp (>= 1.1.2)
269
+ net-ssh (>= 2.8.0)
270
+ term-ansicolor (1.3.2)
271
+ tins (~> 1.0)
272
+ terminal-table (1.5.2)
273
+ thor (0.19.1)
274
+ thread_safe (0.3.5)
275
+ timers (4.0.4)
276
+ hitimes
277
+ tins (1.6.0)
278
+ tzinfo (1.2.2)
279
+ thread_safe (~> 0.1)
280
+ unf (0.1.4)
281
+ unf_ext
282
+ unf_ext (0.0.7.1)
283
+ unparser (0.2.4)
284
+ abstract_type (~> 0.0.7)
285
+ adamantium (~> 0.2.0)
286
+ concord (~> 0.1.5)
287
+ diff-lcs (~> 1.2.5)
288
+ equalizer (~> 0.0.9)
289
+ parser (~> 2.2.2)
290
+ procto (~> 0.0.2)
291
+ versionomy (0.4.4)
292
+ blockenspiel (>= 0.4.5)
293
+ virtus (1.0.5)
294
+ axiom-types (~> 0.1)
295
+ coercible (~> 1.0)
296
+ descendants_tracker (~> 0.0, >= 0.0.3)
297
+ equalizer (~> 0.0, >= 0.0.9)
298
+ websocket-protocol (0.0.0)
299
+ websocket_parser (1.0.0)
300
+ yard (0.8.7.6)
301
+ yard-rspec (0.1)
302
+ yard
303
+
304
+ PLATFORMS
305
+ ruby
306
+
307
+ DEPENDENCIES
308
+ capistrano_multiconfig_parallel!
309
+ coveralls (~> 0.7, >= 0.7)
310
+ github-markup (~> 1.3, >= 1.3.3)
311
+ guard (~> 2.13, >= 2.13)
312
+ guard-inch (~> 0.1, >= 0.1.0)
313
+ guard-rspec (~> 4.6, >= 4.6)
314
+ inch (~> 0.6, >= 0.6)
315
+ mocha (~> 1.1, >= 1.1)
316
+ redcarpet (~> 3.3, >= 3.3)
317
+ reek (~> 3.7, >= 3.7)
318
+ rspec-rails (~> 3.3, >= 3.3)
319
+ rubocop (~> 0.33, >= 0.33)
320
+ rvm-tester (~> 1.1, >= 1.1)
321
+ simplecov (~> 0.10, >= 0.10)
322
+ simplecov-summary (~> 0.0.4, >= 0.0.4)
323
+ yard (~> 0.8, >= 0.8.7)
324
+ yard-rspec (~> 0.1, >= 0.1)
325
+
326
+ BUNDLED WITH
327
+ 1.10.6
data/README.md CHANGED
@@ -108,7 +108,7 @@ Available command line options when executing a command
108
108
 
109
109
  - --task_confirmations:
110
110
 
111
- - if option is present and has value an ARRAY of Strings, and --task_confirmation_active is TRUE , then will require a confirmation from user before executing the task. This will syncronize all workers to wait before executing that task, then a confirmation will be displayed, and when user will confirm , all workers will resume their operation.
111
+ - if option is present and has value an ARRAY of Strings (Task Names), then will require a confirmation from user before executing the task. This will syncronize all workers to wait before executing that task, then a confirmation will be displayed, and when user will confirm , all workers will resume their operation.
112
112
 
113
113
  - --application_dependencies
114
114
 
@@ -18,6 +18,7 @@ require 'celluloid_pubsub'
18
18
  require 'capistrano/all'
19
19
  require 'fileutils'
20
20
 
21
+ require 'configliere'
21
22
  require 'pp'
22
23
  require 'devnull'
23
24
  require 'inquirer'
@@ -28,10 +29,24 @@ Gem.find_files('composable_state_machine/**/*.rb').each { |path| require path }
28
29
 
29
30
  Gem.find_files('capistrano_multiconfig_parallel/initializers/**/*.rb').each { |path| require path }
30
31
  Gem.find_files('capistrano_multiconfig_parallel/helpers/**/*.rb').each { |path| require path }
31
- Gem.find_files('capistrano_multiconfig_parallel/managers/**/*.rb').each { |path| require path }
32
32
  Gem.find_files('capistrano_multiconfig_parallel/celluloid/**/*.rb').each { |path| require path }
33
33
 
34
34
  require_relative './version'
35
35
  require_relative './configuration'
36
36
  require_relative './base'
37
37
  require_relative './application'
38
+
39
+ # Signal.trap("TERM") do
40
+ # puts'aa'
41
+ # CapistranoMulticonfigParallel::Application.terminate
42
+ # end
43
+ #
44
+ # Signal.trap('USR1') do
45
+ # puts'aaaa3'
46
+ # CapistranoMulticonfigParallel::Application.terminate
47
+ # end
48
+ #
49
+ # Signal.trap('USR2') do
50
+ # puts'aaaa3'
51
+ # CapistranoMulticonfigParallel::Application.terminate
52
+ # end