Class: RSwim::StatusReport

Inherits:
Object
  • Object
show all
Defined in:
lib/rswim/status_report.rb

Class Method Summary collapse

Class Method Details



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/rswim/status_report.rb', line 7

def print(node_member_id, members)
  b = members.map { |k, m| "#{k}: #{m.prepare_update_entry.status}\n" }.join
  a = <<~REPORT

  ==========================================
  Status report for node #{node_member_id}:
  ==========================================

  #{b}
  ==========================================

  REPORT
  logger.info(a)
end