capistrano_multiconfig_parallel 0.28.3 → 0.28.4
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa78a70bc3dc26a8ad8fba2629f620f79a2e5885
|
4
|
+
data.tar.gz: 9b18a8a0abdd29c8f8a82d6b59ab0e48a8894e82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2235b4e160ab6a0369dc1a9c1416fc6703f6eeac4a4579d94cee567aba60ee3985f1454936f76afd10ab25eb2b033ce6f58a0c2aaacf757f6e37fa2e11ba95c2
|
7
|
+
data.tar.gz: 188e3825b51fee53bdd042a6d04acc089f80003b80702b3bdc243042c95c58fa667e6133edc2fc318398c602abab9f95deca7bbf18b630b34ee60cb87cfd61bb
|
@@ -25,6 +25,13 @@ module CapistranoMulticonfigParallel
|
|
25
25
|
handle_string_display(position, clear_scren, string)
|
26
26
|
end
|
27
27
|
|
28
|
+
def move_to_home!
|
29
|
+
position_cursor(2, 1)
|
30
|
+
erase_from_current_line_to_bottom
|
31
|
+
end
|
32
|
+
|
33
|
+
private
|
34
|
+
|
28
35
|
def handle_string_display(position, clear_scren, string)
|
29
36
|
if clear_scren.to_s == 'true'
|
30
37
|
terminal_clear_display(string)
|
@@ -39,23 +46,22 @@ module CapistranoMulticonfigParallel
|
|
39
46
|
end
|
40
47
|
|
41
48
|
def display_string_at_position(position, string)
|
42
|
-
|
49
|
+
go_to_position(position)
|
43
50
|
erase_from_current_line_to_bottom
|
44
|
-
|
51
|
+
go_to_position(position)
|
45
52
|
puts string
|
46
53
|
end
|
47
54
|
|
48
|
-
def move_to_home!
|
49
|
-
position_cursor(2, 1)
|
50
|
-
erase_from_current_line_to_bottom
|
51
|
-
end
|
52
|
-
|
53
55
|
def erase_from_current_line_to_bottom
|
54
56
|
puts "\e[J"
|
55
57
|
end
|
56
58
|
|
59
|
+
def go_to_position(position)
|
60
|
+
position_cursor(position[:row], position[:column])
|
61
|
+
end
|
62
|
+
|
57
63
|
def position_cursor(line, column)
|
58
|
-
puts("\
|
64
|
+
puts("\e[#{line};#{column}H")
|
59
65
|
end
|
60
66
|
|
61
67
|
def terminal_clear
|