Created
February 17, 2010 14:56
-
-
Save charlesroper/306678 to your computer and use it in GitHub Desktop.
If we're on Windows, try to load win32console to enable colours
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # If we're on Windows, try to load win32console to enable colours | |
| # Add it to config/environment.rb or config/environments/development.rb | |
| if RUBY_PLATFORM =~ /win32|mingw32/ | |
| begin | |
| require 'win32console' | |
| rescue LoadError | |
| puts "=> WARNING: win32console gem is not installed, colors are disabled." | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment