Commit c0300905 authored by Olivier Halligon's avatar Olivier Halligon

UI.labelled now accepts an optional parameter to specify the justification amount

parent 543245f6
......@@ -184,10 +184,10 @@ module Pod
# Prints a message with a label.
#
def labeled(label, value)
def labeled(label, value, justification = 16)
if value
''.tap do |t|
t << " - #{label}:".ljust(16)
t << " - #{label}:".ljust(justification)
if value.is_a?(Array)
separator = "\n - "
puts_indented t << separator << value.join(separator)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment