lib/vite_ruby/cli/install.rb in vite_ruby-1.2.10 vs lib/vite_ruby/cli/install.rb in vite_ruby-1.2.11

- old
+ new

@@ -1,8 +1,7 @@ # frozen_string_literal: true -require 'dry/cli/utils/files' require 'stringio' class ViteRuby::CLI::Install < Dry::CLI::Command desc 'Performs the initial configuration setup to get started with Vite Ruby.' @@ -47,12 +46,12 @@ extend Forwardable def_delegators 'ViteRuby', :config - %i[append cp inject_line_after inject_line_after_last inject_line_before write].each do |util| + %i[append cp inject_line_after inject_line_after_last inject_line_before replace_first_line write].each do |util| define_method(util) { |*args| - Dry::CLI::Utils::Files.send(util, *args) rescue nil + ViteRuby::CLI::FileUtils.send(util, *args) rescue nil } end TEMPLATES_PATH = Pathname.new(File.expand_path('../../../templates', __dir__))