Module: FileHelper::TestSymlinks::Dirs::Remove
- Included in:
- FileHelper::TestSymlinks::Dirs
- Defined in:
- lib/file_spec/file_helpers/test_symlinks.rb
Instance Method Summary collapse
- #remove_symlink_dir(path) ⇒ Object
- #remove_test_symlink_dir ⇒ Object
- #remove_test_symlink_dirs ⇒ Object
Instance Method Details
#remove_symlink_dir(path) ⇒ Object
83 84 85 |
# File 'lib/file_spec/file_helpers/test_symlinks.rb', line 83 def remove_symlink_dir path File.delete path if File.symlink? path end |
#remove_test_symlink_dir ⇒ Object
87 88 89 |
# File 'lib/file_spec/file_helpers/test_symlinks.rb', line 87 def remove_test_symlink_dir remove_symlink_dir sym_test_dir end |
#remove_test_symlink_dirs ⇒ Object
91 92 93 |
# File 'lib/file_spec/file_helpers/test_symlinks.rb', line 91 def remove_test_symlink_dirs sym_test_dirs.each{|dir| remove_symlink_dir dir} end |