mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
updates rake task to delete swap files
This commit is contained in:
parent
d1bdeda19b
commit
8bcee52a94
1 changed files with 1 additions and 1 deletions
2
Rakefile
2
Rakefile
|
@ -56,7 +56,7 @@ task :clean do
|
||||||
"examples/db/datamapper_one.db", "examples/db/datamapper_two.db"].each do |f|
|
"examples/db/datamapper_one.db", "examples/db/datamapper_two.db"].each do |f|
|
||||||
FileUtils.rm_f(f)
|
FileUtils.rm_f(f)
|
||||||
end
|
end
|
||||||
%w[*.sqlite3 *.log].each do |pattern|
|
%w[*.sqlite3 *.log #* *.swp *.swo].each do |pattern|
|
||||||
`find . -name "#{pattern}" -delete`
|
`find . -name "#{pattern}" -delete`
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue