Class: File
- Inherits:
-
Object
- Object
- File
- Defined in:
- lib/rigit/extensions/file_extension.rb
Class Method Summary collapse
Class Method Details
.deep_write(filename, content) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/rigit/extensions/file_extension.rb', line 4 def self.deep_write(filename, content) # :nocov: only due to the fact that the rspec_fixtures gem brings # this method as well dirname = File.dirname filename FileUtils.mkdir_p dirname unless File.directory? dirname File.write filename, content # :nocov: end |