Module: CmdLine
Defined Under Namespace
Instance Method Summary collapse
Instance Method Details
#echo(path, content, mode = 0700) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/cmdline.rb', line 2 def echo(path, content, mode = 0700) f = File.new path, 'w' f.write "#{content}\n" f.chmod mode f.close end |