macmillanpublishers / bookmaker_addons

Custom scripts and add-ons for Macmillan's Bookmaker toolchain
0 stars 0 forks source link

Don't overwrite JSON config if present #118

Open nelliemckesson opened 7 years ago

nelliemckesson commented 7 years ago

In htmlmaker_preprocessing.rb, add a condition not to overwrite any existing JSON config hash data that is present.

E.g.

if file.File?(configfile)
  data_hash = Mcmlln::Tools.readjson(Metadata.configfile)
  # check to see if each required item is present, and only add it to the new hash if it is not already present
end
MacmillanWorkflows commented 6 years ago

➤ Matthew Retzer commented:

moving back to workflow-backlog, I grabbed the wrong bug!