Skip to content

Commit 00df511

Browse files
author
Luca Guidi
committed
Use FileUtils to remove tmp files
1 parent 5b2285d commit 00df511

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Rakefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ namespace :test do
2727
end
2828

2929
task :prepare do
30-
`mkdir -p tmp/pids && rm tmp/*.rdb` rescue nil
30+
require 'fileutils'
31+
FileUtils.mkdir_p 'tmp/pids'
32+
FileUtils.rm Dir.glob('tmp/*.rdb')
3133
end
3234

3335
load 'tasks/redis.tasks.rb'

0 commit comments

Comments
 (0)