lib/thor/actions/templater.rb in josevalim-thor-0.10.2 vs lib/thor/actions/templater.rb in josevalim-thor-0.10.3

- old
+ new

@@ -63,11 +63,13 @@ end # Revokes the action. # def revoke! - say_status :deleted, :green - ::FileUtils.rm_rf(destination) unless pretend? + if exists? + say_status :deleted, :green + ::FileUtils.rm_rf(destination) unless pretend? + end end protected # Shortcut for pretend.