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: 9f8bd1e8d2bba139b5f06d0d2fa855cc2a3f030a
4
- data.tar.gz: a155314cc93bf556b955d53574f712db877e3b4b
3
+ metadata.gz: 8ffb9f8955151a5a8ce57ab416c2ec74cb9d31ac
4
+ data.tar.gz: 0c6177dfcb70b86bb9c4226c71b1081374215375
5
5
  SHA512:
6
- metadata.gz: f95cf147ee0237298c9b04a1f518cb674ebeb25585cfd6cb57a300fc302c0e8a488a6cc7619604d5f63f3015d03b09f8142b165b880b5f64d4d66f5cb36268b9
7
- data.tar.gz: 9fef095a975df04cba640842fc9b06803b1dc27545d830a4d9556cb8dab426c307a5aef466db276ea4c599e8cb3b1e8cfd2d459dad9079a08cf4e07c917e780f
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 position.present?
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
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 30
11
- TINY = 1
11
+ TINY = 2
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.30.1
4
+ version: 0.30.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada