Skip to content

Commit

Permalink
@ teracyhq#277 | processors have change to adjust nodes by adjusting …
Browse files Browse the repository at this point in the history
…default
  • Loading branch information
hoatle committed Aug 16, 2018
1 parent 1ae28fb commit bfb2b40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 7 additions & 0 deletions lib/teracy-dev/loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ def build_settings
settings = settingsManager.build_settings(extension_entry_path)
load_extension_entry_files(settings)
settings = process(settings)
# updating nodes here so that processors have change to adjust nodes by adjusting default
# create nodes by overrides each node with the default
settings["nodes"].each_with_index do |node, index|
settings["nodes"][index] = Util.override(settings['default'], node)
end
@logger.debug("final: #{settings}")
settings
end


Expand Down
6 changes: 0 additions & 6 deletions lib/teracy-dev/settings/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ def build_settings(entry_dir_path)

settings = Util.override(settings, entry_settings)
@logger.debug("override(settings, entry_settings): #{settings}")

# create nodes by overrides each node with the default
settings["nodes"].each_with_index do |node, index|
settings["nodes"][index] = Util.override(settings['default'], node)
end
@logger.debug("final: #{settings}")
settings
end

Expand Down

0 comments on commit bfb2b40

Please sign in to comment.