module Aio::Ui::Verbose

Public Instance Methods

clear_line() click to toggle source
# File lib/aio/ui/verbose.rb, line 27
def clear_line
        printf("#{' ' * 100}\r")
end
print_error(str) click to toggle source
print_good(str) click to toggle source
progress_bar(total, num, info) click to toggle source
# File lib/aio/ui/verbose.rb, line 8
def progress_bar(total, num, info)
        percent = ((num.to_f / total.to_f) * 100).to_i
        buf = "#" * (percent / 2)
        #printf("#{' ' * 120}\r")
        printf("[%-50s] [%d%%], [%s]\r", buf, percent, info)
end