zeus.plugin.zsh 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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='noglob zeus rake'
  18. alias zake='noglob 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. alias zwip='zeus cucumber --profile wip'
  29. # Rspec
  30. alias zspec='zeus rspec'
  31. # Test
  32. alias zt='zeus test'
  33. alias zest='zeus test'
  34. alias zu='zeus test test/unit/*'
  35. alias zunits='zeus test test/unit/*'
  36. alias zf='zeus test test/functional/*'
  37. alias zunctional='zeus test test/functional/*'
  38. alias za='zeus test test/unit/*; zeus test test/functional/; zeus cucumber'
  39. alias zall='zeus test test/unit/*; zeus test test/functional/; zeus cucumber'
  40. # Clean up crashed zeus instances.
  41. alias zsw='rm .zeus.sock'
  42. alias zweep='rm .zeus.sock'
  43. # Reset database
  44. alias zdbr='zeus rake db:reset db:test:prepare'
  45. alias zdbreset='zeus rake db:reset db:test:prepare'
  46. # Migrate and prepare database
  47. alias zdbm='zeus rake db:migrate db:test:prepare'
  48. alias zdbmigrate='zeus rake db:migrate db:test:prepare'
  49. # Create database
  50. alias zdbc='zeus rake db:create'
  51. # Create, migrate and prepare database
  52. alias zdbcm='zeus rake db:create db:migrate db:test:prepare'