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: Rails.root.join('tmp', 'eve-sde'),
table_list_file: EveApp.root.join('lib', 'table-list.yml')
}
- PREFIXES =
%w(agt dgm map trn inv sta industry)
- ID_TYPE_INDEX =
%w(activities)
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
18
19
20
|
# File 'lib/eve_app/sde.rb', line 18
def config
@_config ||= OpenStruct.new(DEFAULT_CONFIG)
end
|
.table_list ⇒ Object
22
23
24
|
# File 'lib/eve_app/sde.rb', line 22
def table_list
@_table_list ||= YAML::load_file(config.table_list_file)
end
|