module Terraformer class Normalizer class << self def module_name(name) "#{name.gsub(/[^a-zA-Z0-9_]/, "_")}_#{SecureRandom.hex(4)}".gsub(/_+/, '_') end end end end