diff options
| -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 = {} |
