Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Label to LogMessage and colorize it #95

Merged
merged 2 commits into from
Apr 11, 2017
Merged

add Label to LogMessage and colorize it #95

merged 2 commits into from
Apr 11, 2017

Commits on Apr 10, 2017

  1. colorize LogMessage level

    Luka Lüdicke committed Apr 10, 2017
    Configuration menu
    Copy the full SHA
    73db44d View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2017

  1. Fix color-related test failures

    The `red`, `yellow`, etc. helpers within `formatter_test.rb` are
    specifically used only for testing logfile output, not console output.
    Since color is not present in logfile output for SSHKit > 1.7.1, these
    helpers essentially do nothing in the latest SSHKit.
    
    Therefore, when asserting color console output, it is necessary to use
    the actual ANSI color control codes, as this commit does in the
    `test_log_message_levels`. Note that tests that require color must
    explicitly turn on color using `airbrussh_config.color = true`.
    
    I removed the color expectations from `test_handles_rake_tasks`, since
    color is not enabled for that test.
    mattbrictson authored and Luka Lüdicke committed Apr 11, 2017
    Configuration menu
    Copy the full SHA
    3dd45fc View commit details
    Browse the repository at this point in the history