Merge lp:~themue/juju-core/016-juju-home into lp:~juju/juju-core/trunk
Proposed by
Frank Mueller
Status: | Merged |
---|---|
Approved by: | William Reade |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1013 |
Proposed branch: | lp:~themue/juju-core/016-juju-home |
Merge into: | lp:~juju/juju-core/trunk |
Diff against target: |
130 lines (+121/-0) 2 files modified
environs/config/home.go (+56/-0) environs/config/home_test.go (+65/-0) |
To merge this branch: | bzr merge lp:~themue/juju-core/016-juju-home |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+153742@code.launchpad.net |
Description of the change
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.
To post a comment you must log in.
LGTM with a trivial suggestion.
https:/ /codereview. appspot. com/7774044/ diff/1/ environs/ config/ home_test. go config/ home_test. go (right):
File environs/
https:/ /codereview. appspot. com/7774044/ diff/1/ environs/ config/ home_test. go#newcode26 config/ home_test. go:26: config. RestoreJujuHome ()
environs/
probably you don't need this in both setup and teardown
https:/ /codereview. appspot. com/7774044/