Module: FileHelper::TestDirs::Make
- Included in:
- FileHelper::TestDirs
- Defined in:
- lib/file_spec/file_helpers/test_dirs.rb
Instance Method Summary collapse
- #make_dir(dir) ⇒ Object
- #make_nested_dirs ⇒ Object
- #make_nested_test_dirs ⇒ Object
- #make_test_dir ⇒ Object
- #make_test_dirs ⇒ Object
Instance Method Details
#make_dir(dir) ⇒ Object
22 23 24 |
# File 'lib/file_spec/file_helpers/test_dirs.rb', line 22 def make_dir dir Dir.mkdir dir if !File.directory? dir end |
#make_nested_dirs ⇒ Object
34 35 36 |
# File 'lib/file_spec/file_helpers/test_dirs.rb', line 34 def make_nested_dirs nested_test_dirs.each{|dir| make_dir dir} end |
#make_nested_test_dirs ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/file_spec/file_helpers/test_dirs.rb', line 39 def make_nested_test_dirs make_test_dir FileUtils.chdir test_dir do make_nested_dirs make_test_files end end |
#make_test_dir ⇒ Object
26 27 28 |
# File 'lib/file_spec/file_helpers/test_dirs.rb', line 26 def make_test_dir make_dir test_dir end |
#make_test_dirs ⇒ Object
30 31 32 |
# File 'lib/file_spec/file_helpers/test_dirs.rb', line 30 def make_test_dirs test_dirs.each{|dir| make_dir dir} end |