capistrano_multiconfig_parallel 0.30.1 → 0.30.2
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: 8ffb9f8955151a5a8ce57ab416c2ec74cb9d31ac
|
4
|
+
data.tar.gz: 0c6177dfcb70b86bb9c4226c71b1081374215375
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7811010142715281a427828f1632123912cab8b0bb9e31bd40e80d00bb65c8723405f3ccbc426b8c3e625372c48adb9979883840f3443336581497d61820932d
|
7
|
+
data.tar.gz: ed38c71e9b577fa2cb4553eaa91044443d98b1dbdbf775431541db008a19789cbdb5500ea13796b425e1f3173f23bffcbf65f11d7938443bb79d0c4ea9295bca
|
@@ -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("\n#{table}\n", @options.merge(position: @position, table_size: table_size))
|
57
|
+
@position, @terminal_rows, @screen_erased = CapistranoMulticonfigParallel::Cursor.display_on_screen("\n#{table}\n", @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
|
@@ -11,6 +11,8 @@ module CapistranoMulticonfigParallel
|
|
11
11
|
handle_string_display(string, options)
|
12
12
|
end
|
13
13
|
|
14
|
+
private
|
15
|
+
|
14
16
|
def move_to_home!(row = 0, column = 1)
|
15
17
|
erase_screen
|
16
18
|
position_cursor(row, column)
|
@@ -22,12 +24,12 @@ module CapistranoMulticonfigParallel
|
|
22
24
|
{ rows: size[0].to_i, columns: size[1].to_i }
|
23
25
|
end
|
24
26
|
|
25
|
-
def fetch_cursor_position(table_size, position)
|
27
|
+
def fetch_cursor_position(table_size, position, previously_erased_screen)
|
26
28
|
final_position = position
|
27
29
|
terminal_rows = fetch_terminal_size
|
28
30
|
screen_erased = refetch_position?(table_size, terminal_rows, position)
|
29
|
-
if screen_erased
|
30
|
-
move_to_home! if
|
31
|
+
if screen_erased == true
|
32
|
+
move_to_home! if previously_erased_screen != true
|
31
33
|
final_position = fetch_position
|
32
34
|
terminal_rows = fetch_terminal_size
|
33
35
|
end
|
@@ -72,7 +74,7 @@ module CapistranoMulticonfigParallel
|
|
72
74
|
terminal_clear_display(string)
|
73
75
|
[0, 0, false]
|
74
76
|
else
|
75
|
-
new_position, terminal_rows, screen_erased = fetch_cursor_position(table_size, position)
|
77
|
+
new_position, terminal_rows, screen_erased = fetch_cursor_position(table_size, position, options.fetch('screen_erased', false))
|
76
78
|
display_string_at_position(new_position, string)
|
77
79
|
[new_position, terminal_rows, screen_erased]
|
78
80
|
end
|