summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/hcl/task.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/hcl/task.rb b/lib/hcl/task.rb
index 3cb25b9..cf63514 100644
--- a/lib/hcl/task.rb
+++ b/lib/hcl/task.rb
@@ -24,7 +24,11 @@ module HCl
end
def self.cache_dir
- File.join(ENV['HOME'],'.hcl/cache')
+ if ENV['HCL_DIR']
+ File.join(ENV['HCL_DIR'],'cache')
+ else
+ File.join(ENV['HOME'],'.hcl/cache')
+ end
end
def self.all