diff options
| author | Paul Buetow <paul@buetow.org> | 2025-02-28 23:41:13 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-02-28 23:41:13 +0200 |
| commit | 3e61682894046558da077d222ad328e902c6274c (patch) | |
| tree | b8b8095faaa61fcc16794f1de1ed9a9cea9ac455 | |
| parent | 3b731cf56c8d8c8514a063c96d5d2a3428e42425 (diff) | |
jo
| -rw-r--r-- | TODO.md | 2 | ||||
| -rw-r--r-- | lib/dslkeywords/file.rb | 1 | ||||
| -rw-r--r-- | test/lib/dslkeywords/directory_test.rb | 1 |
3 files changed, 4 insertions, 0 deletions
@@ -1,6 +1,8 @@ # TODO +* TODO's from the source code * Recursively change file permissions (for files and dirs) +* Purge and copy recursevly a directory * Change permissions of a directory recursively * CRON jobs * Fedora diff --git a/lib/dslkeywords/file.rb b/lib/dslkeywords/file.rb index 0c6ab9a..5230a3f 100644 --- a/lib/dslkeywords/file.rb +++ b/lib/dslkeywords/file.rb @@ -324,6 +324,7 @@ module RCM end end + # TODO: Unit test this def backup_recursively!(source, dest) Dir.foreach(source) do |entry| next if ['.', '..'].include?(entry) diff --git a/test/lib/dslkeywords/directory_test.rb b/test/lib/dslkeywords/directory_test.rb index 3245603..71046f8 100644 --- a/test/lib/dslkeywords/directory_test.rb +++ b/test/lib/dslkeywords/directory_test.rb @@ -48,6 +48,7 @@ class RCMDirectoryTest < Minitest::Test refute File.directory?(DIR_PATH) end + # TODO: Unit test def test_copy_directory_recursively expected_files = {} |
