features/support/filesystem.rb
# Writes a file with some contents.
#
# @param [String] filename
#   The file name to write.
#
# @param [String] contents
#   The contents to include in the file.
#
# @api public
Writes a file with some contents.
Writes a file with some contents .
def write_file(filename, contents)
    in_current_dir do
      mkdir(File.dirname(filename))
      File.open(filename, 'w') { |f| f << contents }
    end
  end
def write_file ( filename , contents ) in_current_dir do mkdir ( File . dirname ( filename ) ) File . open ( filename , 'w' ) { | f | f << contents } end end
Writes a file with some contents.
Writes a file with some contents .
filename
<not_specific>
contents
<not_specific>
<not_specific>
contents The contents to include in the file.
contents The contents to include in the file .
api
None