Skip to content

Commit

Permalink
Add option to override gilt's default cache dir (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
rabadin authored and retr0h committed Jul 28, 2017
1 parent 632db74 commit 103adad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ Overlay a directory from a remote repository into the destination provided.
$ gilt overlay
Optionally, override gilt's cache location (defaults to ~/.gilt):

.. code-block:: bash
$ export GILT_CACHE_DIRECTORY=~/my-gilt-cache
Overlay files and a directory and run post-overlay commands.

.. code-block:: yaml
Expand Down
2 changes: 1 addition & 1 deletion gilt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ParseError(Exception):
pass


BASE_WORKING_DIR = '~/.gilt'
BASE_WORKING_DIR = os.environ.get('GILT_CACHE_DIRECTORY', '~/.gilt')


def config(filename):
Expand Down

0 comments on commit 103adad

Please sign in to comment.