Sha256: 4f9e6809438cf0eb98da8b32ea7628cba2bd6692532e7e3da42943c3654931a8
Contents?: true
Size: 658 Bytes
Versions: 2
Compression:
Stored size: 658 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 == spec_name } 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
master_data_tool-0.21.1 | lib/master_data_tool/config.rb |
master_data_tool-0.21.0 | lib/master_data_tool/config.rb |