Class: TYUtil::TYFile
- Inherits:
-
Object
- Object
- TYUtil::TYFile
- Defined in:
- lib/tycli/util/file_util.rb
Class Method Summary collapse
Class Method Details
.new_file(path, name, content) ⇒ Object
3 4 5 6 7 8 9 10 |
# 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 |