cbratools Build Status Gem Version Code Climate Dependency Status

A set of tools to help with refactorings in component-based Rails applications. Specifically,

  • rnc: Renames a component and its references within a CBRA application
  • rnm: Creates renaming migrations of all component tables for a rename

Installation

Add this line to your application's Gemfile:

gem 'cbratools'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cbratools

Usage

rnc

rnc [-v] CurrentName NewName PATH

Rename CBRA components.

Pass no options to see this help text.

Option -v is for verbose output.

rnm

rnm [-v] CurrentName NewName MIGRATIONS_PATH SCHEMA_FILE_PATH

Create migrations to support CBRA component rename.

Pass no options to see this help text.

Option -v is for verbose output.

Todos

None yet

License

Copyright (c) 2015 Stephan Hagemann, [email protected], @shageman

Released under the MIT license. See LICENSE file for details.