Sha256: 12b0473936f3c60683a85fa1d8b453e76a73c19410148e0e98771c31c0507c43

Contents?: true

Size: 823 Bytes

Versions: 10

Compression:

Stored size: 823 Bytes

Contents

# frozen_string_literal: true

require 'csv'
require_relative "master_data_tool/version"
require_relative "master_data_tool/config"
require_relative "master_data_tool/master_data_status"
require_relative "master_data_tool/master_data"
require_relative "master_data_tool/report"
require_relative "master_data_tool/dump/executor"
require_relative "master_data_tool/import"

module MasterDataTool
  class Error < StandardError; end
  class DryRunError < StandardError; end
  class VerifyFailed < StandardError; end
  class NotLoadedError < StandardError; end

  class << self
    def config
      @config ||= Config.default_config
    end

    def configure
      yield config
    end

    def resolve_table_name(csv_path)
      csv_path.relative_path_from(config.master_data_dir).to_s.delete_suffix('.csv')
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
master_data_tool-0.10.0 lib/master_data_tool.rb
master_data_tool-0.9.0 lib/master_data_tool.rb
master_data_tool-0.8.0 lib/master_data_tool.rb
master_data_tool-0.7.0 lib/master_data_tool.rb
master_data_tool-0.6.0 lib/master_data_tool.rb
master_data_tool-0.5.0 lib/master_data_tool.rb
master_data_tool-0.4.0 lib/master_data_tool.rb
master_data_tool-0.3.0 lib/master_data_tool.rb
master_data_tool-0.2.0 lib/master_data_tool.rb
master_data_tool-0.1.0 lib/master_data_tool.rb