Module: FileHelper::TestSymlinks::Files::Make
- Included in:
- FileHelper::TestSymlinks::Files
- Defined in:
- lib/file_spec/file_helpers/test_symlinks.rb
Instance Method Summary collapse
- #make_file_symlink(orig_file, sym_file) ⇒ Object
- #make_test_symlink_file ⇒ Object
- #make_test_symlink_files ⇒ Object
Instance Method Details
#make_file_symlink(orig_file, sym_file) ⇒ Object
19 20 21 22 |
# File 'lib/file_spec/file_helpers/test_symlinks.rb', line 19 def make_file_symlink orig_file, sym_file make_file orig_file if !File.file?(orig_file) File.symlink(orig_file, sym_file) if !File.symlink?(sym_file) end |
#make_test_symlink_file ⇒ Object
24 25 26 |
# File 'lib/file_spec/file_helpers/test_symlinks.rb', line 24 def make_test_symlink_file make_file_symlink test_file, sym_test_file end |
#make_test_symlink_files ⇒ Object
28 29 30 |
# File 'lib/file_spec/file_helpers/test_symlinks.rb', line 28 def make_test_symlink_files test_files.each_with_index{|file, i| make_file_symlink(file, sym_test_files[i])} end |