lib/thor/actions/templater.rb in josevalim-thor-0.10.6 vs lib/thor/actions/templater.rb in josevalim-thor-0.10.7
- old
+ new
@@ -63,13 +63,11 @@
end
# Revokes the action.
#
def revoke!
- if exists?
- say_status :deleted, :green
- ::FileUtils.rm_rf(destination) unless pretend?
- end
+ say_status :remove, :green
+ ::FileUtils.rm_rf(destination) if !pretend? && exists?
end
protected
# Shortcut for pretend.