Referência Sobre o Rake

Esta referência foi criada baseada na referência encontrada Aqui:

  • rake cache:clear #Limpa todas as páginas de cache
  • rake db:bootstrap # Carrega o arquivo schema.rb no banco e depois carrega as fixtures iniciais no banco.
  • rake db:bootstrap:copy_default_theme # Copia o tema default para o tema do site.
* rake db:migrate # Migrate the database through scripts in db/migrate. Target specific version with VERSION=x
  • rake db:schema:dump # Cria um arquivo db/schema.rb que pode ser usado portavelmente em qualquer DB suportado por AR
  • rake db:schema:load # Carrega o arquivo schema.rb no banco de dados
  • rake db:bootstrap:load # Carrega o banco de dados com as fixtures (em db/bootstrap/*.yml) no banco de dados do ambiente atual. Carrega as fixtures especificas usando FIXTURES=x,y
  • rake db:fixtures:load # Carrega as fixtures no banco do ambiente atual. Carrega fixtures específicas usando FIXTURES=x,y
  • rake db:sessions:clear # Limpa as sessões das tabelas
  • rake db:sessions:create # Cria as sessões da tabela para usar com CGI::Session::ActiveRecordStore
  • rake db:structure:dump # Copia toda a estrutura do banco de dados para um arquivo SQL
  • rake db:test:clone # Recria o banco de teste a partir esquema do banco de dados do ambiente atual
  • rake db:test:clone_structure # Recria o banco de dados de teste a partir da estrurura de desenvolvimento
  • rake db:test:prepare # Prepara o banco de teste e carrega o esquema
  • rake db:test:purge # Limpa o banco de dados teste
  • rake deploy #Push the latest revision into production using the release manager
  • rake diff_from_last_deploy # Descreve as diferenças entre o HEAD e a última versão de produção
  • rake doc:app # Constrói os arquivos HTML da aplicação
  • rake doc:clobber_app # Remove rdoc products
  • rake doc:clobber_plugins # Remove a documentação do plugin
  • rake doc:clobber_rails # Remove rdoc products
  • rake doc:plugins # Gera a documentação de todos os plugins instalados
  • rake doc:rails # Constrói os arquivos HTML do rails
  • rake doc:reapp #Força a reconstrução dos arquivo RDOC
  • rake doc:rerails # Força a reconstrução dos arquivo RDOC
  • rake edge # freeze rails edge
  • rake log:clear # Trunca todos os arquivos *.log em log/ para zero bytes

  • 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 remote_exec # Execute a specific action using the release manager
  • rake rollback # Rollback to the release before the current release in production
  • rake show_deploy_tasks # Enumerate all available deployment tasks
  • rake stats # Report code statistics (KLOCs, etc) from the application
  • rake test # Test all units and functionals
  • rake test:functionals # Run tests for functionalsdb:test:prepare
  • rake test:integration # Run tests for integrationdb:test:prepare
  • rake test:plugins # Run tests for pluginsenvironment
  • rake test:recent # Run tests for recentdb:test:prepare
  • rake test:uncommitted # Run tests for uncommitteddb:test:prepare
  • rake test:units # Run tests for unitsdb:test:prepare
  • 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:sock

-- LeandroNunes - 15 Jun 2007
Topic revision: r1 - 15 Jun 2007, LeandroNunes
 

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Wiki-Colivre? Send feedback