This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ video_app git:(master) ✗ bundle exec rake -T | |
rake about # List versions of all Rails frameworks and the environment | |
rake bourbon:install[sass_path] # Move files to the Rails assets directory. | |
rake db:create # Create the database from config/database.yml for the current Rails.env (use db:create:all to create all dbs in the config) | |
rake db:drop # Drops the database for the current Rails.env (use db:drop:all to drop all databases) | |
rake db:fixtures:load # Load fixtures into the current environment's database. | |
rake db:migrate # Migrate the database (options: VERSION=x, VERBOSE=false). | |
rake db:migrate:status # Display status of migrations | |
rake db:rollback # Rolls the schema back to the previous version (specify steps w/ STEP=n). | |
rake db:schema:dump # Create a db/schema.rb file that can be portably used against any DB supported by AR | |
rake db:schema:load # Load a schema.rb file into the database | |
rake db:seed # Load the seed data from db/seeds.rb | |
rake db:setup # Create the database, load the schema, and initialize with the seed data (use db:reset to also drop the db first) | |
rake db:structure:dump # Dump the database structure to an SQL file | |
rake db:version # Retrieves the current schema version number | |
rake doc:app # Generate docs for the app -- also availble doc:rails, doc:guides, doc:plugins (options: TEMPLATE=/rdoc-template.rb, TITLE="Custom Title") | |
rake log:clear # Truncates all *.log files in log/ to zero bytes | |
rake middleware # Prints out your Rack middleware stack | |
rake notes # Enumerate all annotations (use notes:optimize, :fixme, :todo for focus) | |
rake notes:custom # Enumerate a custom annotation, specify with ANNOTATION=CUSTOM | |
rake rails:template # Applies the template supplied by LOCATION=/path/to/template | |
rake rails:update # Update both configs and public/javascripts from Rails (or use just update:javascripts or update:configs) | |
rake routes # Print out all defined routes in match order, with names. | |
rake secret # Generate a cryptographically secure secret key (this is typically used to generate a secret for cookie sessions). | |
rake stats # Report code statistics (KLOCs, etc) from the application | |
rake test # Runs test:units, test:functionals, test:integration together (also available: test:benchmark, test:profile, test:plugins) | |
rake test:recent # Run tests for {:recent=>"test:prepare"} / Test recent changes | |
rake test:uncommitted # Run tests for {:uncommitted=>"test:prepare"} / Test changes since last checkin (only Subversion and Git) | |
rake time:zones:all # Displays all time zones, also available: time:zones:us, time:zones:local -- filter with OFFSET parameter, e.g., OFFSET=-6 | |
rake tmp:clear # Clear session, cache, and socket files from tmp/ (narrow w/ tmp:sessions:clear, tmp:cache:clear, tmp:sockets:clear) | |
rake tmp:create # Creates tmp directories for sessions, cache, sockets, and pids | |
➜ video_app git:(master) ✗ | |
➜ video_app git:(master) ✗ rake stats | |
WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead. | |
at /Users/ioannis/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/rdoctask.rb | |
WARNING: Global access to Rake DSL methods is deprecated. Please include | |
... Rake::DSL into classes and modules which use the Rake DSL methods. | |
WARNING: DSL method VideoApp::Application#task called at /Users/ioannis/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.0.3/lib/rails/application.rb:214:in `initialize_tasks' | |
+----------------------+-------+-------+---------+---------+-----+-------+ | |
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M | | |
+----------------------+-------+-------+---------+---------+-----+-------+ | |
| Controllers | 1009 | 463 | 10 | 52 | 5 | 6 | | |
| Helpers | 45 | 24 | 0 | 2 | 0 | 10 | | |
| Models | 145 | 60 | 7 | 1 | 0 | 58 | | |
| Libraries | 0 | 0 | 0 | 0 | 0 | 0 | | |
| Functional tests | 121 | 93 | 10 | 0 | 0 | 0 | | |
| Unit tests | 92 | 69 | 16 | 0 | 0 | 0 | | |
+----------------------+-------+-------+---------+---------+-----+-------+ | |
| Total | 1412 | 709 | 43 | 55 | 1 | 10 | | |
+----------------------+-------+-------+---------+---------+-----+-------+ | |
Code LOC: 547 Test LOC: 162 Code to Test Ratio: 1:0.3 | |
➜ video_app git:(master) ✗ | |
http://erik.debill.org/2011/12/04/rake-for-rails-developers |
No comments:
Post a Comment