capistrano_multiconfig_parallel 0.30.2 → 0.30.3
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: 58e2a9600daf2a4c5fe9616f6445f4b347059244
|
4
|
+
data.tar.gz: 9b3c580792789c8079ba4b1f29b2161443f0dfc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a829f654be313dff6ddc40e29ac8c0ee204923fe62eb29ae5d8b9ba2cbb6bac0f321d7df92e664076b962bc6f2bc90113e1aadcff3bbb0841e8202f01e660e38
|
7
|
+
data.tar.gz: 13b7ca2728d183796f047e1f65fbc5d19a70333d9e8f2895e9eecf8e81b06b8f1df4dad2413c89b7316107a27e201614b7b3385280c6e714ddfadfa88b22f2f9
|
@@ -54,7 +54,7 @@ module CapistranoMulticonfigParallel
|
|
54
54
|
|
55
55
|
def display_table_on_terminal(table, jobs)
|
56
56
|
table_size = fetch_table_size(jobs)
|
57
|
-
@position, @terminal_rows, @screen_erased = CapistranoMulticonfigParallel::Cursor.display_on_screen("
|
57
|
+
@position, @terminal_rows, @screen_erased = CapistranoMulticonfigParallel::Cursor.display_on_screen("#{table}", @options.merge(position: @position, table_size: table_size, screen_erased: @screen_erased ))
|
58
58
|
# puts [@position, @terminal_rows, table_size , (@terminal_rows[:rows] - @position[:row]), screen_erased].inspect
|
59
59
|
print_errors
|
60
60
|
signal_complete
|
@@ -25,9 +25,9 @@ module CapistranoMulticonfigParallel
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def fetch_cursor_position(table_size, position, previously_erased_screen)
|
28
|
-
final_position = position
|
28
|
+
final_position = position || fetch_position
|
29
29
|
terminal_rows = fetch_terminal_size
|
30
|
-
screen_erased = refetch_position?(table_size, terminal_rows,
|
30
|
+
screen_erased = refetch_position?(table_size, terminal_rows, final_position)
|
31
31
|
if screen_erased == true
|
32
32
|
move_to_home! if previously_erased_screen != true
|
33
33
|
final_position = fetch_position
|
@@ -37,7 +37,6 @@ module CapistranoMulticonfigParallel
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def refetch_position?(table_size, terminal_size, position)
|
40
|
-
return true if position.blank?
|
41
40
|
terminal_rows = terminal_size[:rows]
|
42
41
|
row_position = position[:row]
|
43
42
|
terminal_rows.zero? || (terminal_rows.nonzero? && row_position >= (terminal_rows / 2)) || (table_size >= (terminal_rows - row_position))
|