Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 34 lines (26 sloc) 0.634 kB
569e91d initial commit of the logger tool
root authored
1 require 'rake/clean'
2
3 task :default => :test
4
5 desc 'Run tests'
6 task :test do
7 sh "testrb test/*_test.rb"
8 end
9
10 desc 'Start a development server'
11 task :start do
4aa28b4 @cschneid only launch one server
authored
12 command = "thin -s 1 -C config.yml -R config.ru start"
569e91d initial commit of the logger tool
root authored
13 STDERR.puts(command) if verbose
14 exec(command)
15 end
16
17 desc 'Stop a development server'
18 task :stop do
4aa28b4 @cschneid only launch one server
authored
19 command = "thin -s 1 -C config.yml -R config.ru stop"
569e91d initial commit of the logger tool
root authored
20 STDERR.puts(command) if verbose
21 exec(command)
22 end
23
fab3e6c @cschneid Restart task... stop then start
authored
24 desc 'Restarts the server'
25 task :restart => [:stop, :start]
26
569e91d initial commit of the logger tool
root authored
27 desc 'Starts mysql with the database'
28 task :mysql do
29 command = "mysql -uroot irclogs"
30 STDERR.puts(command) if verbose
31 exec(command)
32 end
33
Something went wrong with that request. Please try again.