diff options
| author | Zack Hobson | 2013-11-22 10:03:30 -0800 | 
|---|---|---|
| committer | Zack Hobson | 2013-11-22 10:03:30 -0800 | 
| commit | f99f6b6805a801b2d4bd37d357d0e2d9191c8a5a (patch) | |
| tree | 387b3234b73a83433f84ca6b104e0970b2b3a9c2 | |
| parent | 43972dd22cea141ee201ba89aff844c21625210a (diff) | |
| download | hcl-f99f6b6805a801b2d4bd37d357d0e2d9191c8a5a.tar.bz2 | |
task: use HCL_DIR when set in the env.
| -rw-r--r-- | lib/hcl/task.rb | 6 | 
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 | 
