Skip to content

Commit 8a9c8e2

Browse files
Allow temp location to change if necessary (#189)
To keep the specs completely isolated, we don't want to reuse the same global tempdir. Co-authored-by: Will Leinweber <[email protected]>
1 parent 5ca9fcf commit 8a9c8e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cb/query_menu/query_menu.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module CB::QueryMenu
99
private property path : String = ""
1010

1111
def render(cluster : CB::Model::Cluster) : String
12-
temp_dir = "/tmp/crunchy/cli/#{cluster.name}-#{cluster.id}-queries"
12+
temp_dir = "#{Dir.tempdir}/crunchy/cli/#{cluster.name}-#{cluster.id}-queries"
1313
FileUtils.mkdir_p(temp_dir) unless File.exists? temp_dir
1414

1515
# Aggregate all queries and group them by category in alphabetical order.

0 commit comments

Comments
 (0)