Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ankurgel/bazinga
Color coded environment tags in rails console
https://github.com/ankurgel/bazinga
color console production production-management rails-console ruby rubygem utility
Last synced: 27 days ago
JSON representation
Color coded environment tags in rails console
- Host: GitHub
- URL: https://github.com/ankurgel/bazinga
- Owner: AnkurGel
- License: mit
- Created: 2016-02-07T09:23:03.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-20T10:21:05.000Z (almost 9 years ago)
- Last Synced: 2024-10-27T23:44:28.912Z (3 months ago)
- Topics: color, console, production, production-management, rails-console, ruby, rubygem, utility
- Language: Ruby
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Bazinga
Inspired by [marco-polo](https://github.com/arches/marco-polo), Bazinga gives color-coded tags of your Rails app name and environment in _console_, to prevent devs' bad karma to balance on production.## Installation
Add this line to your Rails project's Gemfile:
gem 'bazinga'
And then execute:
$ bundle
## Usage
Just run `rails console`.
![dev](https://www.dropbox.com/s/7hdoy6b21qnm3or/Screenshot%202016-02-07%2018.58.28.png?raw=1)
![staging](https://www.dropbox.com/s/3o4jmna8bd9dsyk/Screenshot%202016-02-07%2019.02.46.png?raw=1)
## Customization:
You can modify the app name by adding the following in your project's `config/application.rb` (inside `class Application`) :
```ruby
console do
Bazinga::APP_NAME = 'railsApp' if defined? Bazinga
end
```
or start the console by customized environment tag:
`BAZINGA_APP_NAME=myAwesomeApp rails console production`## Pipeline
* Add support for `pry-rails`
* Prevent sql write queries in _production_.## Contributing
1. Fork it ( https://github.com/AnkurGel/bazinga/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request