From 2b16c3f29f35ca9680a51aa9a4dfcd8dbed25f6d Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Fri, 5 Apr 2013 18:03:45 +0400 Subject: [PATCH] #81: use "rm -rf" for removing dir --- app/models/key_pair.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/key_pair.rb b/app/models/key_pair.rb index 54f306116..6cdfb076d 100644 --- a/app/models/key_pair.rb +++ b/app/models/key_pair.rb @@ -47,7 +47,7 @@ class KeyPair < ActiveRecord::Base end ensure # remove the directory. - FileUtils.remove_entry_secure dir + system "rm -rf #{dir}" end end