code: def replace_file path
        Dir[File.join(TEMPLATES_PATH, path, "*.tmp")].each do |file|
          name = File.basename(file).chomp ".rb.tmp"
  
          copy_file File.join(path, "#{name}.rb.tmp"),
                    Dir.glob(File.expand_path("#{path}/**#{name}.rb")).first,
                    force: true
        end
      end
docs: Replaces files at a relative path with template files from the same relative path, iterating
   over each template file found via the relative path.
   * +path+ - The relative path for both templates and affected files.