From 80ff2f3dd734dc0eebff559ec9c0bac25fefb97d Mon Sep 17 00:00:00 2001 From: Pat Collins Date: Mon, 7 Dec 2015 16:53:05 -0500 Subject: [PATCH] [BUGFIX] Ensure cleanup method can destroy temporary folders. --- lib/ember-cli-rails.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ember-cli-rails.rb b/lib/ember-cli-rails.rb index fb279bcf..f5d6a8a4 100644 --- a/lib/ember-cli-rails.rb +++ b/lib/ember-cli-rails.rb @@ -1,3 +1,4 @@ +require "fileutils" require "ember_cli/engine" if defined?(Rails) require "ember_cli/errors" @@ -65,7 +66,9 @@ def env private def cleanup - previous_builds.each(&:rmtree) + previous_builds.each do |path| + FileUtils.rm_rf(path) + end end def previous_builds