# frozen_string_literal: true class Netdisco module NameMap def name_map(origin_name) name = origin_name.dup CFG.name_map.each do |match, replace| re = Regexp.new match name = name.sub re, replace end name end end end