Module: Worque::Utils::Command
Instance Method Summary collapse
Instance Method Details
#append_text(path, text) ⇒ Object
16 17 18 19 20 |
# File 'lib/worque/utils/command.rb', line 16 def append_text(path, text) File.open(path, 'a') do |f| f.puts "#{text}\n" end end |
#mkdir(dir) ⇒ Object
8 9 10 |
# File 'lib/worque/utils/command.rb', line 8 def mkdir(dir) FileUtils.mkdir_p(dir) end |
#touch(path) ⇒ Object
12 13 14 |
# File 'lib/worque/utils/command.rb', line 12 def touch(path) FileUtils.touch(path) end |