class TYUtil::TYFile
Public Class Methods
new_file(path, name, content)
click to toggle source
# File lib/tycli/util/file_util.rb, line 3 def self.new_file(path, name, content) `mkdir -p ./#{path}/` fh = File.new("./#{path}/#{name}", "w") fh.puts content fh.close end