Code Monkey home page Code Monkey logo

Comments (3)

robd avatar robd commented on June 16, 2024 1

Hey

Nothing to add really other than to say I think this change happened in SSHKit Version 1.8: capistrano/sshkit#246 (discussion here: capistrano/sshkit#245)

We made the assumption that most people would not want ansii color escape sequences in the log files since it makes them hard to read in a normal text editor. We kept support for the SSHKIT_COLOR env var so that people could override this, such as in your case.

You can also set this in Ruby using ENV['SSHKIT_COLOR'] = '1'. I guess the best place to do this would be the Capfile - correct me if I'm wrong @mattbrictson.

from airbrussh.

mbouchard avatar mbouchard commented on June 16, 2024 1

ENV['SSHKIT_COLOR'] = '1' did the trick. Thank you for your great gems!

from airbrussh.

mattbrictson avatar mattbrictson commented on June 16, 2024

Good question!

I am pretty sure this is due to a change in Capistrano itself. Capistrano now only uses color when it detects a color-capable console. Since a file is not a console, it automatically disables the color.

You can override this behavior by setting this environment variable:

SSHKIT_COLOR=1

There might be a way for Airbrussh to force the log file to always be color, without requiring the user to intervene by setting the environment variable. But I'm not sure if that is a behavior I want to hardcode. What do you think?

@robd any strong opinion on this one?

from airbrussh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.