zeus.plugin.zsh 1.56 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
# 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.

# 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
22
23
alias zr='noglob zeus rake'
alias zake='noglob zeus rake'
Dominik Bamberger's avatar
Dominik Bamberger committed
24
25
26
27
28
29
30
31
32
33
34
35
36

# 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'

37
38
39
# Rspec
alias zspec='zeus rspec'

Dominik Bamberger's avatar
Dominik Bamberger committed
40
41
42
43
# Test
alias zt='zeus test'
alias zest='zeus test'

Dominik Bamberger's avatar
Dominik Bamberger committed
44
45
alias zu='zeus test test/unit/*'
alias zunits='zeus test test/unit/*'
Dominik Bamberger's avatar
Dominik Bamberger committed
46

Dominik Bamberger's avatar
Dominik Bamberger committed
47
48
alias zf='zeus test test/functional/*'
alias zunctional='zeus test test/functional/*'
Dominik Bamberger's avatar
Dominik Bamberger committed
49

50
51
alias za='zeus test test/unit/*; zeus test test/functional/; zeus cucumber'
alias zall='zeus test test/unit/*; zeus test test/functional/; zeus cucumber'
Dominik Bamberger's avatar
Dominik Bamberger committed
52
53
54
55

# Clean up crashed zeus instances.
alias zsw='rm .zeus.sock'
alias zweep='rm .zeus.sock'
56
57
58
59
60
61
62
63
64
65
66
67
68
69

# Reset database
alias zdbr='zeus rake db:reset db:test:prepare'
alias zdbreset='zeus rake db:reset db:test:prepare'

# Migrate and prepare database
alias zdbm='zeus rake db:migrate db:test:prepare'
alias zdbmigrate='zeus rake db:migrate db:test:prepare'

# Create database
alias zdbc='zeus rake db:create'

# Create, migrate and prepare database
alias zdbcm='zeus rake db:create db:migrate db:test:prepare'