module Kafkat::Formatting

Public Instance Methods

justify(field, width=2) click to toggle source
# File lib/kafkat/utility/formatting.rb, line 3
def justify(field, width=2)
  field = field.to_s
  count = [width - (field.length / 8), 1].max
  field + "\t" * count
end
print_assignment(assignment) click to toggle source
print_assignment_header() click to toggle source
print_broker(broker) click to toggle source
print_broker_header() click to toggle source
print_partition(partition) click to toggle source
print_partition_header() click to toggle source
print_topic(topic) click to toggle source
print_topic_header() click to toggle source
print_topic_name(topic_name) click to toggle source