Sha256: 414c7e4428b9a3a698698a5f98d4b44295a3315f1b71959a7572ad27f330e636

Contents?: true

Size: 783 Bytes

Versions: 4

Compression:

Stored size: 783 Bytes

Contents

module EveApp
  module SDE
    autoload :DataImporter, 'eve_app/sde/data_importer'
    autoload :Downloader,   'eve_app/sde/downloader'
    autoload :Normalizer,   'eve_app/sde/normalizer'

    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 ram)
    ID_TYPE_INDEX = %w(activities)

    class << self
      def config
        @_config ||= OpenStruct.new(DEFAULT_CONFIG)
      end

      def table_list
        @_table_list ||= YAML::load_file(config.table_list_file)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eve_app-0.1.11 lib/eve_app/sde.rb
eve_app-0.1.10 lib/eve_app/sde.rb
eve_app-0.1.9 lib/eve_app/sde.rb
eve_app-0.1.8 lib/eve_app/sde.rb