Sha256: c569b60b91ba9f5a37296854a7e41c8f8433f4ddf05a150a9bad5ef987dd2281
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.22.0 | lib/master_data_tool/config.rb |