class RedmineInstaller::Command::SilentFormatter
Public Class Methods
new()
click to toggle source
# File lib/redmine-installer/command.rb, line 70 def initialize @output = '' end
Public Instance Methods
print_end(success)
click to toggle source
# File lib/redmine-installer/command.rb, line 84 def print_end(success) if success @spinner.success else @spinner.error puts @output end end
print_line(line)
click to toggle source
# File lib/redmine-installer/command.rb, line 80 def print_line(line) @output << line end
print_title(title)
click to toggle source
# File lib/redmine-installer/command.rb, line 74 def print_title(title) format = "[#{pastel.yellow(':spinner')}] #{title}" @spinner = TTY::Spinner.new(format, success_mark: pastel.green('✔'), error_mark: pastel.red('✖')) @spinner.auto_spin end