Skip to content

Commit 2c04868

Browse files
authored
Merge pull request #1 from instrumentl/chore/override-root
chore: allow overriding root path with $EMBER_CLI_ROOT
2 parents 2b9830d + a27e48f commit 2c04868

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/ember_cli.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ def compile!
5353
end
5454

5555
def root
56-
@root ||= Rails.root.join("tmp", "ember-cli").tap(&:mkpath)
56+
@root ||= if ENV["EMBER_CLI_ROOT"].present?
57+
Pathname.new(ENV["EMBER_CLI_ROOT"])
58+
else
59+
Rails.root.join("tmp", "ember-cli")
60+
end.tap(&:mkpath)
5761
end
5862

5963
def env

0 commit comments

Comments
 (0)