Comments (3)
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.
ENV['SSHKIT_COLOR'] = '1'
did the trick. Thank you for your great gems!
from airbrussh.
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)
- AppVeyor CI (Windows) builds failing with net-ssh 4.0.0
- command_output HOT 9
- Circular dependency warning
- Empty console output HOT 9
- Customize output to show server hostname HOT 1
- Mocha::NotInitializedError on stubbed tests when running minitest locally HOT 2
- "invalid byte sequence in UTF-8" when rsyncing files with international character
- Make rake a gem dependency HOT 3
- Make ConsoleFormatter's context configurable HOT 5
- Console error only when using Spring HOT 1
- Test on ruby 3
- Travis-CI builds are no longer working HOT 3
- Replace Travis with CircleCI HOT 1
- Switch from alias_method to prepend HOT 7
- Colorize LogMessages again HOT 3
- IO.console can be nil
- Vague and unhelpful error message if log cannot be created HOT 4
- Hostname in output HOT 1
- Tests fail under Ruby 2.4.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airbrussh.