Skip to content

A set of tools to help with refactorings in component-based Rails applications #cbra

License

Notifications You must be signed in to change notification settings

shageman/cbratools

Repository files navigation

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, stephan.hagemann@gmail.com, @shageman

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

About

A set of tools to help with refactorings in component-based Rails applications #cbra

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published