using rm_rf to avoid confirmations on delete
This commit is contained in:
@@ -234,7 +234,7 @@ class Homesick < Thor
|
|||||||
|
|
||||||
if shell.yes?("This will destroy your castle irreversible! Are you sure?")
|
if shell.yes?("This will destroy your castle irreversible! Are you sure?")
|
||||||
unlink(name)
|
unlink(name)
|
||||||
rm_r castle_dir(name)
|
rm_rf castle_dir(name)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ class Homesick
|
|||||||
|
|
||||||
def rm_rf(dir)
|
def rm_rf(dir)
|
||||||
say_status "rm -rf #{dir}", '', :green unless options[:quiet]
|
say_status "rm -rf #{dir}", '', :green unless options[:quiet]
|
||||||
|
system "rm -rf #{dir}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def rm_link(target)
|
def rm_link(target)
|
||||||
|
|||||||
Reference in New Issue
Block a user