mardi, mars 28, 2006

[Rails] Comment avoir la liste des taches rake

J'oublie toujours la commande, alors je me la marque ici une bonne fois pour toute:
> rake --tasks

rake add_new_scripts          # Add new scripts to the application script/ directory
rake apidoc                   # Build the apidoc HTML Files
rake appdoc                   # Build the appdoc HTML Files
rake clear_logs               # Clears all *.log files in log/
rake clobber_apidoc           # Remove rdoc products
rake clobber_appdoc           # Remove rdoc products
rake clobber_plugindoc        # Remove plugin documentation
rake clone_schema_to_test     # Recreate the test database from the current environment's database schema.
rake clone_structure_to_test  # Recreate the test databases from the development structure
rake create_sessions_table    # Creates a sessions table for use with CGI::Session::ActiveRecordStore
rake db_schema_dump           # Create a db/schema.rb file that can be portably used against any DB supported by AR.
rake db_schema_import         # Import a schema.rb file into the database.
rake db_structure_dump        # Dump the database structure to a SQL file
rake default                  # Run all the tests on a fresh test database
rake drop_sessions_table      # Drop the sessions table
rake freeze_edge              # Lock this application to the Edge Rails (by exporting from Subversion).  Defaults to svn HEAD; do 'rake free
VISION=1234' to lock to a specific revision.
rake freeze_gems              # Lock this application to the current gems (by unpacking them into vendor/rails)
rake load_fixtures            # Load fixtures into the current environment's database
rake migrate                  # Migrate the database according to the migrate scripts in db/migrate (only supported on PG/MySQL). A specific
an be targetted with VERSION=x
rake plugindoc                # Generate documation for all installed plugins
rake prepare_test_database    # Prepare the test database and load the schema
rake purge_sessions_table     # Drop and recreate the session table (much faster than 'DELETE * FROM sessions')
rake purge_test_database      # Empty the test database
rake reapidoc                 # Force a rebuild of the RDOC files
rake reappdoc                 # Force a rebuild of the RDOC files
rake recent                   # Run tests for recentprepare_test_database
rake stats                    # Report code statistics (KLOCs, etc) from the application
rake test_functional          # Run tests for test_functionalprepare_test_database
rake test_plugins             # Run tests for test_pluginsenvironment
rake test_units               # Run tests for test_unitsprepare_test_database
rake unfreeze_rails           # Unlock this application from freeze of gems or edge and return to a fluid use of system gems
rake update_javascripts       # Update your javascripts from your current rails install.

rem: Ce n'est uniquement valable pour rails mais pour tous les rake.
Technorati tags:

1 commentaire:

FrederickRos a dit…

Et ca peut etre ecourte en "rake -T"