ITeye博客

rake 命令一览

mike.gao · 2010-12-28 11:21 · rails · 编程语言 · Cache · Git · 数据结构 · Rails · 单元测试 · Markdown


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 
创建在config / database.yml中为当前数据库中定义RAILS_ENV

rake db:create:all                   
# Create all the local databases defined in config/database.yml 
创建所有在config / database.yml中所有定义的本地数据库

rake db:drop                         
# Drops the database for the current RAILS_ENV 
丢弃当前RAILS_ENV数据库

rake db:drop:all                     
# Drops all the local databases defined in config/database.yml 
丢弃在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.
加载到当前环境的数据库负载装置

rake db:migrate                      
# Migrate the database through scripts in db/migrate.
迁移数据库通过脚本在db /迁移

rake db:migrate:down                 
# Runs the "down" for a given migration VERSION.
运行向下的版本迁移

rake db:migrate:redo                
# Rollbacks the database one migration and re migrate up.
回滚数据库迁移的迁移和重新注册

rake db:migrate:reset                
# Resets your database using your migrations for the current environment
重设您的数据库使用当前环境中的迁移

rake db:migrate:up                   
# Runs the "up" for a given migration VERSION.
运行向上的迁移版本

rake db:reset                        
# Drops and recreates the database from db/schema.rb for the current 
environment.
删除,再现了从DB /适合当前环境schema.rb数据库

rake db:rollback                     
# Rolls the schema back to the previous version.
回到以前的版本

rake db:schema:dump                  
# Create a db/schema.rb file that can be portably used against any DB 
supported by AR
创建一个DB / schema.rb文件可移植,可用于对任何DB的AR支持

rake db:schema:load                  
# Load a schema.rb file into the database
加载到数据库中加载schema.rb文件

rake db:sessions:clear               
# Clear the sessions table
清除会话表

rake db:sessions:create              
# Creates a sessions migration for use with CGI::Session::ActiveRecordStore
创建一个与CGI使用CGI::Session::ActiveRecordStor

rake db:structure:dump               
# Dump the database structure to a SQL file
转储转储数据库结构到一个SQL文

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:load                    
# Recreate the test database from the current schema.rb
从当前schema.rb重新创建测试数据库

rake db:test:prepare                 
# Check for pending migrations and load the test 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
生成的应用程序的HTML文件

rake doc:clobber_app                 
# Remove rdoc products
删除的rdoc产品

rake doc:clobber_plugins             
# Remove plugin documentation
删除插件文件

rake doc:clobber_rails               
# Remove rdoc products
删除的rdoc产品

rake doc:guides                      
# Generate Rails guides
生成Rails导游指南

rake doc:plugins                     
# Generate documentation for all installed plugins
所有已安装的插件插件生成文档

rake doc:rails                       
# Build the rails HTML Files
生成HTML文件

rake doc:reapp                       
# Force a rebuild of the RDOC files
强制重新生成的rdoc文件

rake doc:rerails                     
# Force a rebuild of the RDOC files
强制重新生成的rdoc文件

rake gems                            
# List the gems that this rails application depends on
列出gems,这取决于应用

rake gems:build                      
# Build any native extensions for unpacked gems
建立任何宝石原生扩展为解开

rake gems:install                    
# Installs all required gems for this application.
安装所有需要的宝石

rake gems:refresh_specs              
# Regenerate gem specifications in correct format.
在正确的格式再生gems规范

rake gems:unpack                     
# Unpacks the specified gem into vendor/gems.
解压解压到vendor/gems

rake gems:unpack:dependencies        
# Unpacks the specified gems and its dependencies into vendor/gems
依赖gems和解压到指定的vendor/gems它的依赖

rake log:clear                       
# Truncates all *.log files in log/ to zero bytes
/清除零字节*.log文件

rake notes                           
# Enumerate all annotations
枚举所有注释

rake notes:custom                    
# Enumerate a custom annotation, specify with ANNOTATION=WTFHAX
枚举一个自定义注解,指定具有注释=WTFHAX

rake notes:fixme                     
# Enumerate all FIXME annotations
枚举所有FIXME注解

rake notes:optimize                  
# Enumerate all OPTIMIZE annotations
枚举所有最佳化的注解

rake notes:todo                      
# Enumerate all TODO annotations
枚举所有的TODO注释

rake rails:freeze:edge               
# Lock to latest Edge Rails, for a specific release use RELEASE=1.2.0
锁定为最新的Rails,对于一个特定版本使用的RELEASE= 1.2.0

rake rails:freeze:gems               
# Lock this application to the current gems (by unpacking them into 
vendor/rails)
锁定这是当前正在申请宝石(由解压到vendor/rails)

rake rails:unfreeze                  
# Unlock this application from freeze of gems or edge and return to a fluid use of system gems
解开这个由gems或edge的应用,并返回冻结宝石流体的系统使用

rake rails:update                    
# Update both configs, scripts and public/javascripts from Rails
更新都configs,scripts及publicavaScript的

rake rails:update:configs            
# Update config/boot.rb from your current rails install
更新config/boot.rb从您目前安装的rails

rake rails:update:javascripts        
# Update your javascripts from your current rails install
更新您的JavaScript从当前安装的rails

rake rails:update:scripts            
# Add new scripts to the application script/ directory
添加新脚本的应用程序的script/directory

rake routes                          
# Print out all defined routes in match order, with names.
打印出所有已定义的路线赛场秩序与名称

rake secret                          
# Generate a crytographically secure secret key.
生成crytographically安全密钥

rake stats                           
# Report code statistics (KLOCs, etc) from the application
统计报表的代码统计(KLOCs,etc),从应用程序

rake test                            
# Run all unit, functional and integration tests
运行所有的单元,功能和集成测试

rake test:benchmark                  
# Run tests for benchmarkdb:test:prepare / Benchmark the performance tests
运行测试为基准benchmarkdb:test:prepare/Benchmark

rake test:functionals                
# Run tests for functionalsdb:test:prepare / Run the functional tests in test/functional
运行测试:测试:准备/运行中测试/功能功能测试

rake test:integration                
# Run tests for integrationdb:test:prepare / Run the integration tests in test/integration
运行测试:测试:准备/运行在测试集成测试/集成

rake test:plugins                    
# Run tests for pluginsenvironment / Run the plugin tests in vendor/plugins/*/**/test (or specify with PLUGIN=name)
运行插件测试/运行插件供应商/插件/*/**/测试测试(或指定使用插件=名)

rake test:profile                    
# Run tests for profiledb:test:prepare / Profile the performance tests
运行测试:测试:准备/配置文件的性能测试

rake test:recent                     
# Run tests for recentdb:test:prepare / Test recent changes
运行测试:测试:准备/测试最近的变化

rake test:uncommitted                
# Run tests for uncommitteddb:test:prepare / Test changes since last checkin (only Subversion and Git)
运行测试:测试:自上次签入(只颠覆和Git)编写/测试的变化

rake test:units                      
# Run tests for unitsdb:test:prepare / Run the unit tests in test/unit
运行测试:测试:准备/测试中运行单元测试/单位

rake time:zones:all                  
# Displays names of all time zones recognized by the Rails TimeZone class, grouped by offset.
显示由Rails TimeZone类被抵消分组,确认所有时区的名称

rake time:zones:local                
# Displays names of time zones recognized by the Rails TimeZone class with the same offset as the system local time
显示的时区由Rails TimeZone类确认为系统本地时间偏移量相同的名称

rake time:zones:us                   
# Displays names of US time zones recognized by the Rails TimeZone class, grouped by offset.
显示美国时间由Rails TimeZone类被抵消分组,确认区域的名称。

rake tmp:cache:clear                 
# Clears all files and directories in tmp/cache
清除所有文件和tmp目录/高速缓存

rake tmp:clear                       
# Clear session, cache, and socket files from tmp/
清除会话,缓存和套接字文件从tmp目录/

rake tmp:create                      
# Creates tmp directories for sessions, cache, and sockets
创建用于创建会话,缓存和插座tmp目录

rake tmp:pids:clear                  
# Clears all files in tmp/pids
清除所有文件在tmp/pids

rake tmp:sessions:clear              
# Clears all files in tmp/sessions
清除所有文件在tmp/sessions

rake tmp:sockets:clear               
# Clears all files in tmp/sockets
清除所有文件在tmp/sockets

以上翻译均来自google,有不对之处望谅解

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。