lib/ember-cli-rails.rb in ember-cli-rails-0.5.7 vs lib/ember-cli-rails.rb in ember-cli-rails-0.5.8
- old
+ new
@@ -1,5 +1,6 @@
+require "fileutils"
require "ember_cli/engine" if defined?(Rails)
require "ember_cli/errors"
module EmberCli
extend self
@@ -63,10 +64,12 @@
delegate :apps, to: :configuration
private
def cleanup
- previous_builds.each(&:rmtree)
+ previous_builds.each do |path|
+ FileUtils.rm_rf(path)
+ end
end
def previous_builds
Pathname.glob(tmp.join("ember-cli-*"))
end