capistrano_multiconfig_parallel 0.15.5 → 0.15.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d670bac33692dac58e4499796c9b05998ce94b5f
|
4
|
+
data.tar.gz: 4b6618a06b135cd04261526a9973d0b43c4bb6d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8eaa6377ba9f5fbe842a15fb71461777b69be8d21c4d689c8cf8c43ae0a20259035a1d21ba15ff5eb1b5a18ccef58f1be48c62ca9ec1dd27bfe0a97e297b3d0
|
7
|
+
data.tar.gz: 749246e82c4795cb48aeebd9c7e9ea60a75a5dc4c95c4c1477990abd7433c44e6095fb7fbbba171d9024bc5f1b1bf5980bd3c0f4a92e8c631f543640dd8fdee5
|
@@ -17,14 +17,24 @@ module CapistranoMulticonfigParallel
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def fetch_stages
|
20
|
+
fetch_stages_paths do |paths|
|
21
|
+
paths.reject! { |path| check_stage_path(paths, path) }.sort
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def check_stage_path(paths, path)
|
26
|
+
paths.any? { |another| another != path && another.start_with?(path + ':') }
|
27
|
+
end
|
28
|
+
|
29
|
+
def stages_paths
|
20
30
|
stages_root = 'config/deploy'
|
21
31
|
Dir["#{stages_root}/**/*.rb"].map do |file|
|
22
32
|
file.slice(stages_root.size + 1..-4).tr('/', ':')
|
23
|
-
end
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def fetch_stages_paths
|
37
|
+
stages_paths.tap { |paths| yield paths if block_given? }
|
28
38
|
end
|
29
39
|
|
30
40
|
def run
|
@@ -280,8 +290,7 @@ module CapistranoMulticonfigParallel
|
|
280
290
|
task_arguments: options['task_arguments'],
|
281
291
|
env_options: job_env_options
|
282
292
|
}
|
283
|
-
|
284
|
-
@jobs << job
|
293
|
+
@jobs << job.stringify_keys
|
285
294
|
end
|
286
295
|
|
287
296
|
def prepare_options(options)
|