首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Rake下令大全

2012-10-28 
Rake命令大全rake?db:abort_if_pending_migrations???????#?Raises?an?error?if??there?are?pending?migra

Rake命令大全

  1. rake?db:abort_if_pending_migrations???????#?Raises?an?error?if??there?are?pending?migrations??
  2. rake?db:charset???????????????????????????#?Retrieves?the?charset?for??the?current?environment's?database??
  3. rake?db:collation?????????????????????????#?Retrieves?the?collation?for??the?current?environment's?database??
  4. rake?db:create????????????????????????????#?Create?the?database?defined?in?config/database.yml?for?the?current?RAILS_ENV??
  5. rake?db:create:all????????????????????????#?Create?all?the?local?databases?defined?in?config/database.yml??
  6. rake?db:drop??????????????????????????????#?Drops?the?database?for??the?current?RAILS_ENV??
  7. rake?db:drop:all??????????????????????????#?Drops?all?the?local?databases?defined?in?config/database.yml??
  8. rake?db:fixtures:identify?????????????????#?Search?for??a?fixture?given?a?LABEL?or?ID.??
  9. rake?db:fixtures:load?????????????????????#?Load?fixtures?into?the?current?environment's?database.??
  10. rake?db:migrate???????????????????????????#?Migrate?the?database?through?scripts?in?db/migrate?and?update?db/schema.rb?by?invoking?db:schema:dump.?Target?specific?version?with?VERSION=x.?Turn?...??
  11. rake?db:migrate:down??????????????????????#?Runs?the?"down"???for??a?given?migration?VERSION.??
  12. rake?db:migrate:redo??????????????????????#?Rollbacks?the?database?one?migration?and?re?migrate?up.??
  13. rake?db:migrate:reset?????????????????????#?Resets?your?database?using?your?migrations?for?the?current?environment??
  14. rake?db:migrate:up????????????????????????#?Runs?the?"up"???for??a?given?migration?VERSION.??
  15. rake?db:reset?????????????????????????????#?Drops?and?recreates?the?database?from?db/schema.rb?for?the?current?environment.??
  16. rake?db:rollback??????????????????????????#?Rolls?the?schema?back?to?the?previous?version.??
  17. rake?db:schema:dump???????????????????????#?Create?a?db/schema.rb?file?that?can?be?portably?used?against?any?DB?supported?by?AR??
  18. rake?db:schema:load???????????????????????#?Load?a?schema.rb?file?into?the?database??
  19. rake?db:sessions:clear????????????????????#?Clear?the?sessions?table??
  20. rake?db:sessions:create???????????????????#?Creates?a?sessions?migration?for?use?with?ActiveRecord::SessionStore??
  21. rake?db:structure:dump????????????????????#?Dump?the?database?structure?to?a?SQL?file??
  22. rake?db:test:clone????????????????????????#?Recreate?the?test?database?from?the?current?environment's?database?schema??
  23. rake?db:test:clone_structure??????????????#?Recreate?the?test?databases?from?the?development?structure??
  24. rake?db:test:load?????????????????????????#?Recreate?the?test?database?from?the?current?schema.rb??
  25. rake?db:test:prepare??????????????????????#?Check?for??pending?migrations?and?load?the?test?schema??
  26. rake?db:test:purge????????????????????????#?Empty?the?test?database??
  27. rake?db:version???????????????????????????#?Retrieves?the?current?schema?version?number??
  28. rake?doc:app??????????????????????????????#?Build?the?RDOC?HTML?Files??
  29. rake?doc:clobber_app??????????????????????#?Remove?rdoc?products??
  30. rake?doc:clobber_plugins??????????????????#?Remove?plugin?documentation??
  31. rake?doc:clobber_rails????????????????????#?Remove?rdoc?products??
  32. rake?doc:guides???????????????????????????#?Generate?Rails?guides??
  33. rake?doc:plugins??????????????????????????#?Generate?documentation?for??all?installed?plugins??
  34. rake?doc:rails????????????????????????????#?Build?the?RDOC?HTML?Files??
  35. rake?doc:reapp????????????????????????????#?Force?a?rebuild?of?the?RDOC?files??
  36. rake?doc:rerails??????????????????????????#?Force?a?rebuild?of?the?RDOC?files??
  37. rake?gems?????????????????????????????????#?List?the?gems?that?this??rails?application?depends?on??
  38. rake?gems:build???????????????????????????#?Build?any?native??extensions??for??unpacked?gems??
  39. rake?gems:build:force?????????????????????#?Force?the?build?of?all?gems??
  40. rake?gems:install?????????????????????????#?Installs?all?required?gems.??
  41. rake?gems:refresh_specs???????????????????#?Regenerate?gem?specifications?in?correct?format.??
  42. rake?gems:unpack??????????????????????????#?Unpacks?all?required?gems?into?vendor/gems.??
  43. rake?gems:unpack:dependencies?????????????#?Unpacks?all?required?gems?and?their?dependencies?into?vendor/gems.??
  44. rake?log:clear????????????????????????????#?Truncates?all?*.log?files?in?log/?to?zero?bytes??
  45. rake?middleware???????????????????????????#?Prints?out?your?Rack?middleware?stack??
  46. rake?notes????????????????????????????????#?Enumerate?all?annotations??
  47. rake?notes:custom?????????????????????????#?Enumerate?a?custom?annotation,?specify?with?ANNOTATION=WTFHAX??
  48. rake?notes:fixme??????????????????????????#?Enumerate?all?FIXME?annotations??
  49. rake?notes:optimize???????????????????????#?Enumerate?all?OPTIMIZE?annotations??
  50. rake?notes:todo???????????????????????????#?Enumerate?all?TODO?annotations??
  51. rake?rails:freeze:edge????????????????????#?Lock?to?latest?Edge?Rails,?for??a?specific?release?use?RELEASE=?1.2?.?0???
  52. rake?rails:freeze:gems????????????????????#?Lock?this?application?to?the?current?gems?(by?unpacking?them?into?vendor/rails)??
  53. rake?rails:template???????????????????????#?Applies?the?template?supplied?by?LOCATION=/path/to/template??
  54. rake?rails:unfreeze???????????????????????#?Unlock?this??application?from?freeze?of?gems?or?edge?and??return?to?a?fluid?use?of?system?gems??
  55. rake?rails:update?????????????????????????#?Update?both?configs,?scripts?and?public?/javascripts?from?Rails??
  56. rake?rails:update:application_controller??#?Rename?application.rb?to?application_controller.rb??
  57. rake?rails:update:configs?????????????????#?Update?config/boot.rb?from?your?current?rails?install??
  58. rake?rails:update:generate_dispatchers????#?Generate?dispatcher?files?in?RAILS_ROOT/public???
  59. rake?rails:update:javascripts?????????????#?Update?your?javascripts?from?your?current?rails?install??
  60. rake?rails:update:scripts?????????????????#?Add?new??scripts?to?the?application?script/?directory??
  61. rake?routes???????????????????????????????#?Print?out?all?defined?routes?in?match?order,?with?names.??
  62. rake?secret???????????????????????????????#?Generate?a?crytographically?secure?secret?key.??
  63. rake?stats????????????????????????????????#?Report?code?statistics?(KLOCs,?etc)?from?the?application??
  64. rake?test?????????????????????????????????#?Run?all?unit,?functional?and?integration?tests??
  65. rake?test:benchmark???????????????????????#?Run?tests?for?benchmarkdb:test:prepare?/?Benchmark?the?performance?tests??
  66. rake?test:functionals?????????????????????#?Run?tests?for?functionalsdb:test:prepare?/?Run?the?functional?tests?in?test/functional??
  67. rake?test:integration?????????????????????#?Run?tests?for?integrationdb:test:prepare?/?Run?the?integration?tests?in?test/integration??
  68. rake?test:plugins?????????????????????????#?Run?tests?for??pluginsenvironment?/?Run?the?plugin?tests?in?vendor/plugins/*/**/?test?(or?specify?with?PLUGIN=name)??
  69. rake?test:profile?????????????????????????#?Run?tests?for??profiledb:test:prepare?/?Profile?the?performance?tests??
  70. rake?test:recent??????????????????????????#?Run?tests?for??recentdb:test:prepare?/?Test?recent?changes??
  71. rake?test:uncommitted?????????????????????#?Run?tests?for?uncommitteddb:test:prepare?/?Test?changes?since?last?checkin?(only?Subversion?and?Git)??
  72. rake?test:units???????????????????????????#?Run?tests?for??unitsdb:test:prepare?/?Run?the?unit?tests?in?test/unit??
  73. rake?time:zones:all???????????????????????#?Displays?names?of?all?time?zones?recognized?by?the?Rails?TimeZone?class,?grouped?by?offset.??
  74. rake?time:zones:local?????????????????????#?Displays?names?of?time?zones?recognized?by?the?Rails?TimeZone?class?with?the?same?offset?as?the?system?local?time??
  75. rake?time:zones:us????????????????????????#?Displays?names?of?US?time?zones?recognized?by?the?Rails?TimeZone?class,?grouped?by?offset.??
  76. rake?tmp:cache:clear??????????????????????#?Clears?all?files?and?directories?in?tmp/cache??
  77. rake?tmp:clear????????????????????????????#?Clear?session,?cache,?and?socket?files?from?tmp/??
  78. rake?tmp:create???????????????????????????#?Creates?tmp?directories?for??sessions,?cache,?sockets,?and?pids??
  79. rake?tmp:pids:clear???????????????????????#?Clears?all?files?in?tmp/pids??
  80. rake?tmp:sessions:clear???????????????????#?Clears?all?files?in?tmp/sessions??
  81. rake?tmp:sockets:clear????????????????????#?Clears?all?files?in?tmp/sockets??

?? #单独测试某一个case的方法:

?? ruby test/unit/filename -n testcasename

?? ruby test/functional?/filename -n testcasename

热点排行