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

Version Path
bake-modernize-0.15.1 bake/modernize/editorconfig.rb
bake-modernize-0.15.0 bake/modernize/editorconfig.rb
bake-modernize-0.14.4 bake/modernize/editorconfig.rb
bake-modernize-0.14.3 bake/modernize/editorconfig.rb
bake-modernize-0.14.2 bake/modernize/editorconfig.rb
bake-modernize-0.14.1 bake/modernize/editorconfig.rb
bake-modernize-0.14.0 bake/modernize/editorconfig.rb
bake-modernize-0.13.5 bake/modernize/editorconfig.rb
bake-modernize-0.13.4 bake/modernize/editorconfig.rb
bake-modernize-0.13.3 bake/modernize/editorconfig.rb
bake-modernize-0.13.2 bake/modernize/editorconfig.rb
bake-modernize-0.13.1 bake/modernize/editorconfig.rb