<commit_before>CapistranoDbTasks
=================

Add database AND assets tasks to capistrano to a Rails project.

Currently

* It only supports mysql (both side remote and local)
* Only synchronize remote to local (cap db:local:sync)

Commands mysql, mysqldump, bzip2 and unbzip2 must be in your PATH

Feel free to fork and to add more database support or new tasks.

Install
=======

Add it as a plugin
    ./script/plugin install git://github.com/sgruhier/capistrano-db-tasks.git

Add to config/deploy.rb:
    require 'vendor/plugins/capistrano-db-tasks/lib/dbtasks'
  
    # if you haven't already specified
    set :rails_env, "production"
  
    # if you want to remove the dump file after loading
    set :db_local_clean, true  
    
    # If you want to import assets, you can change default asset dir (default = system)
    # This directory must be in your shared directory on the server
    set :assets_dir, %w(public/assets public/att)
    
    # if you want to work on a specific local environment (default = ENV['RAILS_ENV'] || 'development')
    set :locals_rails_env, "production"
    
Available tasks
===============

* db:local:sync      # Synchronize your local database using remote database data
* assets:local:sync  # Synchronize your local assets using remote assets
* app:local:sync     # Synchronize your local assets AND local database using remote assets and database

Example
=======

cap db:local:sync

or

cap production db:local:sync if you are using capistrano-ext to have multistages

Copyright (c) 2009 [<NAME> - XILINUS], released under the MIT license

TODO
====<commit_msg>nicer README<commit_after>CapistranoDbTasks
=================

Add database AND assets tasks to capistrano to a Rails project.

Currently

* It only supports mysql (both side remote and local)
* Only synchronize remote to local (cap db:local:sync)

Commands mysql, mysqldump, bzip2 and unbzip2 must be in your PATH

Feel free to fork and to add more database support or new tasks.

Install
=======

Add it as a plugin
    ./script/plugin install git://github.com/sgruhier/capistrano-db-tasks.git

Add to config/deploy.rb:
    require 'vendor/plugins/capistrano-db-tasks/lib/dbtasks'
  
    # if you haven't already specified
    set :rails_env, "production"
  
    # if you want to remove the dump file after loading
    set :db_local_clean, true  
    
    # If you want to import assets, you can change default asset dir (default = system)
    # This directory must be in your shared directory on the server
    set :assets_dir, %w(public/assets public/att)
    
    # if you want to work on a specific local environment (default = ENV['RAILS_ENV'] || 'development')
    set :locals_rails_env, "production"
    
Available tasks
===============

    db:local:sync      # Synchronize your local database using remote database data
    assets:local:sync  # Synchronize your local assets using remote assets
    app:local:sync     # Synchronize your local assets AND local database using remote assets and database

Example
=======

cap db:local:sync

or

cap production db:local:sync if you are using capistrano-ext to have multistages

Copyright (c) 2009 [<NAME> - XILINUS], released under the MIT license

TODO
====
{'fraction_non_alphanumeric': 0.09265571738456771, 'fraction_numerical': 0.0037186241090796405, 'mean_word_length': 3.8251121076233185, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1822583', 'n_tokens_mistral': 952, 'n_tokens_neox': 916, 'n_words': 383}