-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
50 lines (31 loc) · 994 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# encoding: utf-8
#####
# fix/todo:
# add nil/uncategorized to state
# - how to deal w/ unknown e.g. Virgin Islands (Us) ??? move to uncategorized or undefined/unknown?
#
require 'csv'
require 'pp'
require 'fileutils'
require 'json'
##############
# our own code
require './scripts/csv' # generic - move to lib for (re)use ??
require './settings'
require './country_us'
require './country_be'
require './country_de'
require './country_ca'
require './countries'
require './scripts/countries'
require './scripts/breweries'
require './scripts/beers'
require './scripts/styles'
require './scripts/reader'
############################################
# add more tasks (keep build script modular)
Dir.glob('./tasks/**/*.rake').each do |r|
puts " importing task >#{r}<..."
import r
# see blog.smartlogicsolutions.com/2009/05/26/including-external-rake-files-in-your-projects-rakefile-keep-your-rake-tasks-organized/
end