Module: FileHelper::TestSymlinks::Dirs::Make
- Included in:
- FileHelper::TestSymlinks::Dirs
- Defined in:
- lib/file_spec/file_helpers/test_symlinks.rb
Instance Method Summary collapse
- #make_dir_symlink(orig_dir, sym_dir) ⇒ Object
- #make_test_symlink_dir ⇒ Object
- #make_test_symlink_dirs ⇒ Object
Instance Method Details
#make_dir_symlink(orig_dir, sym_dir) ⇒ Object
68 69 70 71 |
# File 'lib/file_spec/file_helpers/test_symlinks.rb', line 68 def make_dir_symlink orig_dir, sym_dir make_dir orig_dir if !File.directory?(orig_dir) File.symlink(orig_dir, sym_dir) if !File.symlink?(sym_dir) end |
#make_test_symlink_dir ⇒ Object
73 74 75 |
# File 'lib/file_spec/file_helpers/test_symlinks.rb', line 73 def make_test_symlink_dir make_dir_symlink test_dir, sym_test_dir end |
#make_test_symlink_dirs ⇒ Object
77 78 79 |
# File 'lib/file_spec/file_helpers/test_symlinks.rb', line 77 def make_test_symlink_dirs test_dirs.each_with_index{|file, i| make_dir_symlink(file, sym_test_dirs[i])} end |