Sha256: 2104149be48fbd928d1f6575b94274a2fc11e7ac52e679a23e8504ff1101428f
Contents?: true
Size: 521 Bytes
Versions: 4
Compression:
Stored size: 521 Bytes
Contents
require 'bake/modernize' require 'build/files/system' def readme update(root: Dir.pwd) end def update(root:) update_filenames(root) end private def update_filenames(root) root = Build::Files::Path.new(root) md_files = root.glob("*.md") # Move all .yml files to .yaml files :) md_files.each do |path| new_path = path.with(basename: path.basename.downcase) unless new_path == path Console.logger.info(self, "Moving #{path} to #{new_path}...") system("git", "mv", "-f", path, new_path) end end end
Version data entries
4 entries across 4 versions & 1 rubygems