Skip to content

Commit

Permalink
Ensure cleanup method destroys temporary folders
Browse files Browse the repository at this point in the history
Closes [#329].

[#329]: #329
  • Loading branch information
Pat Collins authored and seanpdoyle committed Dec 7, 2015
1 parent e07d502 commit 9960e58
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
master
------

* Ensure cleanup method can destroy temporary folders. [#330]

[#330]: https://github.com/thoughtbot/ember-cli-rails/pull/330

0.5.7
-----

Expand Down
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 9960e58

Please sign in to comment.