Sha256: c84fe7fddb73b90a9eec21644b4a710629d66d7cc63a113966715691afecf801
Contents?: true
Size: 464 Bytes
Versions: 12
Compression:
Stored size: 464 Bytes
Contents
# frozen_string_literal: true # Released under the MIT License. # Copyright, 2020-2022, by Samuel Williams. require 'bake/modernize' def editorconfig update(root: Dir.pwd) end def update(root:) editorconfig_path = File.expand_path(".editorconfig", root) if File.exist?(editorconfig_path) FileUtils.rm_rf(editorconfig_path) end template_root = Bake::Modernize.template_path_for('editorconfig') Bake::Modernize.copy_template(template_root, root) end
Version data entries
12 entries across 12 versions & 1 rubygems