Module: EveApp::SDE
- Defined in:
- lib/eve_app/sde.rb,
lib/eve_app/sde/downloader.rb,
lib/eve_app/sde/normalizer.rb,
lib/eve_app/sde/data_importer.rb
Defined Under Namespace
Modules: Downloader, Normalizer
Classes: DataImporter
Constant Summary
collapse
- DEFAULT_CONFIG =
{
table_prefix: :eve,
download_host: 'https://www.fuzzwork.co.uk/dump',
archive: 'postgres-latest.dmp.bz2',
tmp_path: EveApp.root.join('tmp', 'eve-sde'),
table_list_file: EveApp.root.join('lib', 'table-list.yml')
}
- PREFIXES =
%w(agt dgm map trn inv sta industry ram)
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
17
18
19
|
# File 'lib/eve_app/sde.rb', line 17
def config
@_config ||= OpenStruct.new(DEFAULT_CONFIG)
end
|
.table_info ⇒ Object
21
22
23
|
# File 'lib/eve_app/sde.rb', line 21
def table_info
@_table_info ||= YAML::load_file(config.table_list_file)
end
|
.table_list ⇒ Object
25
26
27
|
# File 'lib/eve_app/sde.rb', line 25
def table_list
@_table_list ||= table_info.keys
end
|