rake -T, Dari Gak Sengaja Jadi Sengsara Membawa Nikmat

Posted: December 11, 2007 in ノート, Rails, Ruby on Rails, Technology

Walau nggak sering pelototin source code rails kalau nggak terpaksa (alias terpaksa memang musti ngeliat source code gara-gara dokumentasi rails kurang lengkap). dulunya iseng jalanin rake -T tapi liatlah makin melorot aja nih panjangnya :D dokumentasinya juga jauh makin membaik ya (dibanding waktu jamannya dulu belum ditemukan metode helper buat a href sih -_-).

m:nikmat arie$ script/about
About your application's environment
Ruby version              1.8.6 (universal-darwin9.0)
RubyGems version          0.9.5
Rails version             2.0.1
Active Record version     2.0.1
Action Pack version       2.0.1
Active Resource version   2.0.1
Action Mailer version     2.0.1
Active Support version    2.0.1
Application root          /Users/arie/Downloads/nikmat
Environment               development
Database adapter          sqlite3
m:nikmat arie$ rake -T
(in /Users/arie/Downloads/nikmat)
rake db:abort_if_pending_migrations  # Raises an error if there are pending migrations
rake db:charset                      # Retrieves the charset for the current environment's database
rake db:collation                    # Retrieves the collation for the current environment's database
rake db:create                       # Create the database defined in config/database.yml for the current RAILS_ENV
rake db:create:all                   # Create all the local databases defined in config/database.yml
rake db:drop                         # Drops the database for the current RAILS_ENV
rake db:drop:all                     # Drops all the local databases defined in config/database.yml
rake db:fixtures:identify            # Search for a fixture given a LABEL or ID.
rake db:fixtures:load                # Load fixtures into the current environment's database.  Load specific fixtures using FIXTURES=x,y
rake db:migrate                      # Migrate the database through scripts in db/migrate. Target specific version with VERSION=x. Turn off output with VERBOSE=false.
rake db:reset                        # Drops and recreates the database from db/schema.rb for the current environment.
rake db:rollback                     # Rolls the schema back to the previous version. Specify the number of steps with 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:sessions:clear               # Clear the sessions table
rake db:sessions:create              # Creates a sessions migration for use with CGI::Session::ActiveRecordStore
rake db:structure:dump               # Dump the database structure to a SQL file
rake db:test:clone                   # Recreate the test database from the current environment's database schema
rake db:test:clone_structure         # Recreate the test databases from the development structure
rake db:test:prepare                 # Prepare the test database and load the schema
rake db:test:purge                   # Empty the test database
rake db:version                      # Retrieves the current schema version number
rake doc:app                         # Build the app HTML Files
rake doc:clobber_app                 # Remove rdoc products
rake doc:clobber_plugins             # Remove plugin documentation
rake doc:clobber_rails               # Remove rdoc products
rake doc:plugins                     # Generate documentation for all installed plugins
rake doc:rails                       # Build the rails HTML Files
rake doc:reapp                       # Force a rebuild of the RDOC files
rake doc:rerails                     # Force a rebuild of the RDOC files
rake log:clear                       # Truncates all *.log files in log/ to zero bytes
rake notes                           # Enumerate all annotations
rake notes:fixme                     # Enumerate all FIXME annotations
rake notes:optimize                  # Enumerate all OPTIMIZE annotations
rake notes:todo                      # Enumerate all TODO annotations
rake rails:freeze:edge               # Lock to latest Edge Rails or a specific revision with REVISION=X (ex: REVISION=4021) or a tag with TAG=Y (ex: TAG=rel_1-1-0)
rake rails:freeze:gems               # Lock this application to the current gems (by unpacking them into vendor/rails)
rake rails:unfreeze                  # Unlock this application from freeze of gems or edge and return to a fluid use of system gems
rake rails:update                    # Update both configs, scripts and public/javascripts from Rails
rake rails:update:configs            # Update config/boot.rb from your current rails install
rake rails:update:javascripts        # Update your javascripts from your current rails install
rake rails:update:scripts            # Add new scripts to the application script/ directory
rake routes                          # Print out all defined routes in match order, with names.
rake spec                            # Run all specs in spec directory (excluding plugin specs)
rake spec:clobber_rcov               # Remove rcov products for rcov
rake spec:controllers                # Run the specs under spec/controllers
rake spec:db:fixtures:load           # Load fixtures (from spec/fixtures) into the current environment's database.  Load specific fixtures using FIXTURES=x,y
rake spec:doc                        # Print Specdoc for all specs (excluding plugin specs)
rake spec:helpers                    # Run the specs under spec/helpers
rake spec:lib                        # Run the specs under spec/lib
rake spec:models                     # Run the specs under spec/models
rake spec:plugin_doc                 # Print Specdoc for all plugin specs
rake spec:plugins                    # Run the specs under vendor/plugins (except RSpec's own)
rake spec:plugins:rspec_on_rails     # Runs the examples for rspec_on_rails
rake spec:rcov                       # Run all specs in spec directory with RCov (excluding plugin specs)
rake spec:server:restart             # reload spec_server.
rake spec:server:start               # start spec_server.
rake spec:server:stop                # stop spec_server.
rake spec:translate                  # Translate/upgrade specs using the built-in translator
rake spec:views                      # Run the specs under spec/views
rake stats                           # Report code statistics (KLOCs, etc) from the application
rake test                            # Test all units and functionals
rake test:functionals                # Run the functional tests in test/functional
rake test:integration                # Run the integration tests in test/integration
rake test:plugins                    # Run the plugin tests in vendor/plugins/*/**/test (or specify with PLUGIN=name)
rake test:recent                     # Test recent changes
rake test:uncommitted                # Test changes since last checkin (only Subversion)
rake test:units                      # Run the unit tests in test/unit
rake tmp:cache:clear                 # Clears all files and directories in tmp/cache
rake tmp:clear                       # Clear session, cache, and socket files from tmp/
rake tmp:create                      # Creates tmp directories for sessions, cache, and sockets
rake tmp:pids:clear                  # Clears all files in tmp/pids
rake tmp:sessions:clear              # Clears all files in tmp/sessions
rake tmp:sockets:clear               # Clears all files in tmp/sockets
m:nikmat arie$ 

UPDATE ( April 12, 2008 , Kuala Lumpur, Malaysia )

Jalankan saja terus pokoknya rake -T ini dimana kita biasa berada di project project Ruby, misalkan rubinius, merb, bahkan juga berbentuk buku merb yang open source itu.

tinggalkan feedback konstruktif atau lebih baik diam

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s