Sha256: 10ecbf0ca299e9a6b04ac22e0c21469993ebeb5986188429d3a5c1f29c59285e
Contents?: true
Size: 599 Bytes
Versions: 9
Compression:
Stored size: 599 Bytes
Contents
class KuberKit::Preprocessing::DirPreprocessor include KuberKit::Import[ "preprocessing.file_preprocessor", "shell.bash_commands" ] def compile(shell, source_dir, destination_dir, context_helper: nil) shell.recursive_list_files(source_dir).each do |source_file_path| relative_path = source_file_path.sub(source_dir, '') destination_file_path = File.join(destination_dir, relative_path) file_preprocessor.compile( shell, source_file_path, destination_path: destination_file_path, context_helper: context_helper ) end end end
Version data entries
9 entries across 9 versions & 1 rubygems