MasshtabDevTools
Tools for specific company tasks.
Installation
Add this line to your application's Gemfile:
gem 'masshtab_dev_tools', group: :development
And then execute:
$ bundle
Or install it yourself as:
$ gem install masshtab_dev_tools
Usage
Deployment tool
From project folder:
rails generate masshtab:deploy USER_NAME SERVER_NAME []
Options:
[--repository=REPOSITORY] # Full address of the git repository. If empty server name and application name will be used
[--branch=BRANCH] # Branch name to deploy from
# Default: master
[--application-name=APPLICATION_NAME] # Name of rails application
Runtime options:
-f, [--force] # Overwrite files that already exist
-p, [--pretend] # Run but do not make any changes
-q, [--quiet] # Suppress status output
-s, [--skip] # Skip files that already exist
For example:
rails g masshtab:deploy alex example.com
Database configuration
rails generate masshtab:database []
Options:
[--application-name=APPLICATION_NAME] # Rails application name
Runtime options:
-f, [--force] # Overwrite files that already exist
-p, [--pretend] # Run but do not make any changes
-q, [--quiet] # Suppress status output
-s, [--skip] # Skip files that already exist
Generates database.yml configured on mysql2 for OS X and linux
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request