Skip to content

Commit

Permalink
[BUGFIX] Ensure cleanup method can destroy temporary folders.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pat Collins committed Dec 7, 2015
1 parent e07d502 commit d7d3394
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/ember-cli-rails.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'fileutils'
require "ember_cli/engine" if defined?(Rails)
require "ember_cli/errors"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d7d3394

Please sign in to comment.