zeus.plugin.zsh 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Some aliases for zeus. (See: https://github.com/burke/zeus)
  2. # Zeus preloads your Rails environment and forks that process whenever
  3. # needed. This effectively speeds up Rails' boot process to under 1 sec.
  4. # Init
  5. alias zi='zeus init'
  6. alias zinit='zeus init'
  7. # Start
  8. alias zs='zeus start'
  9. alias ztart='zeus start'
  10. # Console
  11. alias zc='zeus console'
  12. alias zonsole='zeus console'
  13. # Server
  14. alias zsr='zeus server'
  15. alias zerver='zeus server'
  16. # Rake
  17. alias zr='zeus rake'
  18. alias zake='zeus rake'
  19. # Generate
  20. alias zg='zeus generate'
  21. alias zenerate='zeus generate'
  22. # Runner
  23. alias zrn='zeus runner'
  24. alias zunner='zeus runner'
  25. # Cucumber
  26. alias zcu='zeus cucumber'
  27. alias zucumber='zeus cucumber'
  28. # Rspec
  29. alias zspec='zeus rspec'
  30. # Test
  31. alias zt='zeus test'
  32. alias zest='zeus test'
  33. alias zu='zeus test test/unit/*'
  34. alias zunits='zeus test test/unit/*'
  35. alias zf='zeus test test/functional/*'
  36. alias zunctional='zeus test test/functional/*'
  37. alias za='zeus test test/unit/*; zeus test test/functional/; zeus cucumber'
  38. alias zall='zeus test test/unit/*; zeus test test/functional/; zeus cucumber'
  39. # Clean up crashed zeus instances.
  40. alias zsw='rm .zeus.sock'
  41. alias zweep='rm .zeus.sock'
  42. # Reset database
  43. alias zdbr='zeus rake db:reset db:test:prepare'
  44. alias zdbreset='zeus rake db:reset db:test:prepare'
  45. # Migrate and prepare database
  46. alias zdbm='zeus rake db:migrate db:test:prepare'
  47. alias zdbmigrate='zeus rake db:migrate db:test:prepare'
  48. # Create database
  49. alias zdbc='zeus rake db:create'
  50. # Create, migrate and prepare database
  51. alias zdbcm='zeus rake db:create db:migrate db:test:prepare'