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: 87a3ae1311b20e7a25290c5cf201bf7f31354597
4
- data.tar.gz: 22da2265ffe4165c9ba0c07e10b7338906ee536c
3
+ metadata.gz: fa78a70bc3dc26a8ad8fba2629f620f79a2e5885
4
+ data.tar.gz: 9b18a8a0abdd29c8f8a82d6b59ab0e48a8894e82
5
5
  SHA512:
6
- metadata.gz: d77c7149c98c002b214b66db4a10323d1555e0140481d4613cc111ff5ff41438de1a2c9aee617671a1c18fb8705ec280cf9f5a3259a249e81e7f57b0ebd1f6f2
7
- data.tar.gz: ee91903471cfed7b37715bb8db520b9b230fa11715f3f1ecea9086d655bab3b43d3cc3f855b40758182ff5126056709bf32d92f0e55417b947ef058df37c96fd
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
- position_cursor(position[:row], position[:column])
49
+ go_to_position(position)
43
50
  erase_from_current_line_to_bottom
44
- position_cursor(position[:row], position[:column])
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("\eD\e[#{line};#{column}H")
64
+ puts("\e[#{line};#{column}H")
59
65
  end
60
66
 
61
67
  def terminal_clear
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 28
11
- TINY = 3
11
+ TINY = 4
12
12
  PRE = nil
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_multiconfig_parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.3
4
+ version: 0.28.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada