capistrano_multiconfig_parallel 0.20.6 → 0.20.7
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: 1e5998865a618f48611e5f55d210f0ee90d98f53
|
4
|
+
data.tar.gz: 2ddff8229556e05d2b411a054ce427ecf4c9de2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 403aceb49472e6bd0ab07c407f9f758cc7816c5576a2b7a5dabd236fb9e49fc449349186a3620fbaf27b126544acc9eed335e3de2830e60db46ed3dbac3a391d
|
7
|
+
data.tar.gz: 505dac4bec1de50634874a7678fb0303759ff01791bf6b13674c120699bf4cfa352aab1727e2321fed4067fe8fdc96dd2fb1c22824852c7e21e82bf55b378e1e
|
@@ -11,18 +11,17 @@ module CapistranoMulticonfigParallel
|
|
11
11
|
check_terminal_tty
|
12
12
|
arguments = multi_fetch_argv(ARGV.dup)
|
13
13
|
if arguments[CapistranoMulticonfigParallel::ENV_KEY_JOB_ID].blank?
|
14
|
-
|
15
|
-
verify_validation
|
16
|
-
CapistranoMulticonfigParallel::Application.new.start
|
17
|
-
end
|
14
|
+
run_the_application
|
18
15
|
else
|
19
16
|
Capistrano::Application.new.run
|
20
17
|
end
|
21
18
|
end
|
22
19
|
|
23
|
-
def
|
24
|
-
|
25
|
-
|
20
|
+
def run_the_application
|
21
|
+
execute_with_rescue('stderr') do
|
22
|
+
verify_validation
|
23
|
+
CapistranoMulticonfigParallel::Application.new.start
|
24
|
+
end
|
26
25
|
end
|
27
26
|
end
|
28
27
|
end
|
@@ -19,6 +19,11 @@ module CapistranoMulticonfigParallel
|
|
19
19
|
CapistranoMulticonfigParallel.logger
|
20
20
|
end
|
21
21
|
|
22
|
+
def verify_validation
|
23
|
+
CapistranoMulticonfigParallel.original_args = ARGV.dup
|
24
|
+
CapistranoMulticonfigParallel.configuration_valid?
|
25
|
+
end
|
26
|
+
|
22
27
|
def check_terminal_tty
|
23
28
|
$stdin.sync = true if $stdin.isatty
|
24
29
|
$stdout.sync = true if $stdout.isatty
|