From d7d3394f8228c5cccb6b53cd3107073aec1cbbdf 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..e00166aa 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