~juju/juju-core/trunk

Viewing all changes in revision 1013.

  • Committer: Frank Mueller
  • Author(s): Frank Mueller
  • Date: 2013-03-18 14:00:29 UTC
  • mfrom: (993.4.2 juju-core)
  • Revision ID: themue@gmail.com-20130318140029-780ry83z8wv4o15x
config: added functions to access juju home

This first CL introduces functions for the access to
$JUJU_HOME - if set -  or $HOME/.juju as fallback. The
functions return the directory, allow to create a path
to a file/dir in it, set it for testing purposes and
restore it afterwards. A second CL will then migrate
all manual access to $HOME/.juju today to the usage
of the new API.

R=dimitern, fwereade
CC=
https://codereview.appspot.com/7774044

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: