Skip to content

Commit

Permalink
further simplify and document configurable variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kspurgin committed Oct 22, 2021
1 parent a2c378c commit 0dab4da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions lib/cspace_config_untangler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ module CspaceConfigUntangler

# Change these variables to reflect your desired directory structure and main profile
default_datadir = '/Users/kristina/code/untangler-cspace-config/data'
default_configdir = File.join(default_datadir, 'configs')
default_templatedir = File.join(default_datadir, 'templates')
default_mapperdir = File.join(default_datadir, 'mappers')
default_main_profile_name = 'core'
# The publicly available web directory from which the CSV Importer will request mappers
default_mapper_uri_base = 'https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers'
# The last version of each profile that should get fancy column names created.
default_last_fancy_column_versions = {
Expand Down Expand Up @@ -54,6 +52,12 @@ def app_dir
File.realpath(File.join(File.dirname(__FILE__), '..'))
end

# Do not mess with these. Control subdirectories within them by passing in command output parameters as
# shown in the docs
default_configdir = File.join(default_datadir, 'configs')
default_templatedir = File.join(default_datadir, 'templates')
default_mapperdir = File.join(default_datadir, 'mappers')

setting :last_fancy_column_versions, default: default_last_fancy_column_versions, reader: true
setting :datadir, default: default_datadir, reader: true
setting :configdir, default: default_configdir, reader: true
Expand Down
2 changes: 1 addition & 1 deletion lib/cspace_config_untangler/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module CspaceConfigUntangler
VERSION = '1.9.6'
VERSION = '1.9.7'
end

0 comments on commit 0dab4da

Please sign in to comment.