summaryrefslogtreecommitdiff
path: root/lib/dslkeywords
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-01 23:02:50 +0200
committerPaul Buetow <paul@buetow.org>2026-03-01 23:02:50 +0200
commit35f2d625367e6e476bcac7bf5b25a5cb4579fe92 (patch)
treeab4ce86fad7eb16e32b1c05af9e927b6a7f3970d /lib/dslkeywords
parentf9dd513d8cd70654b03bcb80e9b4897c2ef6f72b (diff)
fix: correct backup_resursively! typo in evaluate_present_recursively!
The method is defined as backup_recursively! but was called as backup_resursively! — a NoMethodError at runtime for any configuration using the recursive directory copy directive. Also fix the matching misspelling in the log message string. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'lib/dslkeywords')
-rw-r--r--lib/dslkeywords/file.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dslkeywords/file.rb b/lib/dslkeywords/file.rb
index 927054a..bf31e6a 100644
--- a/lib/dslkeywords/file.rb
+++ b/lib/dslkeywords/file.rb
@@ -323,10 +323,10 @@ module RCM
if ::File.exist?(@file_path)
raise "Destination #{@file_path} is not a directory!" unless ::File.directory?(@file_path)
- backup_resursively!(source_path, @file_path) unless @without_backup
+ backup_recursively!(source_path, @file_path) unless @without_backup
end
- do? "Copying #{source_path} -> #{@file_path} resursively" do
+ do? "Copying #{source_path} -> #{@file_path} recursively" do
if ::File.directory?(@file_path)
Dir["#{source_path}/*"].each { FileUtils.cp_r(_1, @file_path) }
else