Sha256: 0afaf718ac0f77ff9b1bc90a6453517f2720602b2880fdb6cc5b8a98c69810cd
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 Bytes
Contents
require 'active_support/configurable' module MasterDataTool class Config include ActiveSupport::Configurable config_accessor :master_data_dir config_accessor :spec_configs def initialize self.master_data_dir = nil self.spec_configs = [] end def spec_config(spec_name) spec_configs.detect { |c| c.spec_name.to_s == spec_name.to_s } end def csv_dir_for(spec_name:, override_identifier: nil) path = MasterDataTool.config.master_data_dir path = path.join(spec_name.to_s) if spec_name.present? path = path.join(override_identifier.to_s) if override_identifier.present? path end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
master_data_tool-0.23.0 | lib/master_data_tool/config.rb |