zeus.plugin.zsh 1.37 KB
Newer Older
Dominik Bamberger's avatar
Dominik Bamberger committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Some aliases for zeus. (See: https://github.com/burke/zeus)
# Zeus preloads your Rails environment and forks that process whenever
# needed. This effectively speeds up Rails' boot process to under 1 sec.

# Always use bundler.
# Rails depends on bundler, so we can be pretty sure, that there are no
# problems with this command. For all the other aliases I provided an 
# alternative, in case people have conflicts with other plugins (e.g. suse).
alias zeus='bundle exec zeus'

# Init
alias zi='zeus init'
alias zinit='zeus init'

# Start
alias zs='zeus start'
alias ztart='zeus start'

# Console
alias zc='zeus console'
alias zonsole='zeus console'

# Server
alias zsr='zeus server'
alias zerver='zeus server'

# Rake
alias zr='zeus rake'
alias zake='zeus rake'

# Generate
alias zg='zeus generate'
alias zenerate='zeus generate'

# Runner
alias zrn='zeus runner'
alias zunner='zeus runner'

# Cucumber
alias zcu='zeus cucumber'
alias zucumber='zeus cucumber'

# Test
alias zt='zeus test'
alias zest='zeus test'

alias zu='zeus test/units/*'
alias zunits='zeus test/units/*'

alias zf='zeus test/functional/*'
alias zunctional='zeus test/functional/*'

alias za='zeus test test/units/*; zeus test test/functional/; zeus cucumber'
alias zall='zeus test test/units/*; zeus test test/functional/; zeus cucumber'

# Clean up crashed zeus instances.
alias zsw='rm .zeus.sock'
alias zweep='rm .zeus.sock'