Skip to content

AnkurGel/bazinga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bazinga

Inspired by 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 staging

Customization:

You can modify the app name by adding the following in your project's config/application.rb (inside class Application) :

    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