forked from ib-ruby/ib-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
48 lines (39 loc) · 1.01 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
begin
require 'rake'
rescue LoadError
require 'rubygems'
gem 'rake', '~> 0.8.3.1'
require 'rake'
end
require 'pathname'
BASE_PATH = Pathname.new(__FILE__).dirname
LIB_PATH = BASE_PATH + 'lib'
PKG_PATH = BASE_PATH + 'pkg'
DOC_PATH = BASE_PATH + 'rdoc'
$LOAD_PATH.unshift LIB_PATH.to_s
require 'ib-ruby/version'
NAME = 'ib-ruby'
CLASS_NAME = IB
# Load rakefile tasks
Dir['tasks/*.rake'].sort.each { |file| load file }
# Project-specific tasks
## Migrations
# rake db:new_migration name=FooBarMigration
# rake db:migrate
# rake db:migrate VERSION=20081220234130
# rake db:migrate:up VERSION=20081220234130
# rake db:migrate DB=osx-test
# rake db:rollback
# rake db:rollback STEP=3
begin
require 'tasks/standalone_migrations'
rescue LoadError => e
puts "gem install standalone_migrations to get db:migrate:* tasks! (Error: #{e})"
end
# rake db:redo DB=test"
namespace :db do
desc "Remake db from scratch: $ rake db:redo DB=test"
task :redo => [:drop, :create, :migrate] do
puts "Redo Finished!"
end
end