Module: FileHelper::TestSymlinks::Dirs::Remove

Included in:
FileHelper::TestSymlinks::Dirs
Defined in:
lib/file_spec/file_helpers/test_symlinks.rb

Instance Method Summary collapse

Instance Method Details



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


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


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