Sha256: 5a2f275ebd1b4a5f68a28e3feafb174ae59f8f787e37be831571c698eb4ec73a

Contents?: true

Size: 530 Bytes

Versions: 6

Compression:

Stored size: 530 Bytes

Contents

require 'active_support/configurable'

module MasterDataTool
  class Config
    include ActiveSupport::Configurable

    config_accessor :master_data_dir
    config_accessor :dump_ignore_tables
    config_accessor :dump_ignore_columns
    config_accessor :logger

    def self.default_config
      new.tap do |config|
        config.master_data_dir = Rails.root.join('db/fixtures')
        config.dump_ignore_tables = %w[]
        config.dump_ignore_columns = %w[]
        config.logger = Rails.logger
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
master_data_tool-0.6.0 lib/master_data_tool/config.rb
master_data_tool-0.5.0 lib/master_data_tool/config.rb
master_data_tool-0.4.0 lib/master_data_tool/config.rb
master_data_tool-0.3.0 lib/master_data_tool/config.rb
master_data_tool-0.2.0 lib/master_data_tool/config.rb
master_data_tool-0.1.0 lib/master_data_tool/config.rb