forked from krisr/ror-lol
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
33 lines (29 loc) · 776 Bytes
/
Rakefile
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
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'
namespace :deploy do
desc "Creates a file before migrations"
task :before_migrate do
`touch before_migrate`
sleep 10
end
desc "Creates a file before symlink"
task :before_symlink do
`touch before_symlink`
sleep 10
end
desc "Creates a file before restart"
task :before_restart do
`touch before_restart`
sleep 10
end
desc "Creates a file after restart"
task :after_restart do
`touch after_restart`
sleep 10
end
end