Sha256: 9a3415dc3392add9b55f532f9b5639523517b228ebb520cb9e8b80f81e30b3df

Contents?: true

Size: 741 Bytes

Versions: 97

Compression:

Stored size: 741 Bytes

Contents

# frozen_string_literal: true

require 'eac_cli/core_ext'
require 'avm/files/text_replacer'
require 'avm/files/runner_with/filesystem_traverser'

module Avm
  module Files
    module RunnerWith
      module FileReplacer
        common_concern do
          include ::Avm::Files::RunnerWith::FilesystemTraverser
          include TopMethods
        end

        module TopMethods
          def text_replacer
            ::Avm::Files::TextReplacer.new
          end

          def replace_file?(_file)
            true
          end

          def traverser_check_file(file)
            return unless replace_file?(file)

            infov 'Changed', file if text_replacer.file_apply(file)
          end
        end
      end
    end
  end
end

Version data entries

97 entries across 97 versions & 2 rubygems

Version Path
avm-files-0.8.1 lib/avm/files/runner_with/file_replacer.rb
avm-files-0.8.0 lib/avm/files/runner_with/file_replacer.rb
eac_tools-0.93.0 sub/avm-files/lib/avm/files/runner_with/file_replacer.rb
avm-files-0.7.0 lib/avm/files/runner_with/file_replacer.rb
eac_tools-0.85.0 sub/avm-files/lib/avm/files/runner_with/file_replacer.rb
eac_tools-0.84.2 sub/avm-files/lib/avm/files/runner_with/file_replacer.rb
eac_tools-0.84.1 sub/avm-files/lib/avm/files/runner_with/file_replacer.rb
eac_tools-0.84.0 sub/avm-files/lib/avm/files/runner_with/file_replacer.rb
eac_tools-0.83.0 sub/avm-files/lib/avm/files/runner_with/file_replacer.rb
eac_tools-0.82.0 sub/avm-files/lib/avm/files/runner_with/file_replacer.rb
eac_tools-0.81.0 sub/avm-files/lib/avm/files/runner_with/file_replacer.rb
eac_tools-0.80.0 sub/avm-files/lib/avm/files/runner_with/file_replacer.rb
eac_tools-0.79.0 sub/avm-files/lib/avm/files/runner_with/file_replacer.rb
eac_tools-0.78.0 sub/avm-files/lib/avm/files/runner_with/file_replacer.rb
eac_tools-0.77.1 sub/avm-files/lib/avm/files/runner_with/file_replacer.rb
eac_tools-0.77.0 sub/avm-files/lib/avm/files/runner_with/file_replacer.rb
eac_tools-0.76.1 sub/avm-files/lib/avm/files/runner_with/file_replacer.rb
eac_tools-0.76.0 sub/avm-files/lib/avm/files/runner_with/file_replacer.rb
eac_tools-0.75.2 sub/avm-files/lib/avm/files/runner_with/file_replacer.rb
eac_tools-0.75.1 sub/avm-files/lib/avm/files/runner_with/file_replacer.rb