-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.rb
53 lines (41 loc) · 812 Bytes
/
config.rb
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
51
52
53
require 'yaml'
class Config
class << self
def src_db_username
config["SRC_DB_USERNAME"]
end
def src_db_host
config["SRC_DB_HOST"]
end
def src_db_name
config["SRC_DB_NAME"]
end
def src_db_password
config["SRC_DB_PASSWORD"]
end
def dest_db_username
config["DEST_DB_USERNAME"]
end
def dest_db_host
config["DEST_DB_HOST"]
end
def dest_db_name
config["DEST_DB_NAME"]
end
def dest_db_password
config["DEST_DB_PASSWORD"]
end
def full_tables
config["FULL_TABLES"]
end
def partial_tables
config["PARTIAL_TABLES"]
end
def tmp_dirname
config["TEMP_OUTPUT_DIRNAME"]
end
def config
@config_file ||= YAML.load_file('config.yaml')
end
end
end