using rm_rf to avoid confirmations on delete

This commit is contained in:
thilko
2013-11-23 21:54:40 +01:00
parent 640da07089
commit 243ba70b33
2 changed files with 2 additions and 1 deletions

View File

@@ -234,7 +234,7 @@ class Homesick < Thor
if shell.yes?("This will destroy your castle irreversible! Are you sure?")
unlink(name)
rm_r castle_dir(name)
rm_rf castle_dir(name)
end
end

View File

@@ -105,6 +105,7 @@ class Homesick
def rm_rf(dir)
say_status "rm -rf #{dir}", '', :green unless options[:quiet]
system "rm -rf #{dir}"
end
def rm_link(target)