Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(206)

Issue 7774044: config: added functions to access juju home (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by TheMue
Modified:
11 years, 1 month ago
Reviewers:
mp+153742
Visibility:
Public.

Description

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. https://code.launchpad.net/~themue/juju-core/016-juju-home/+merge/153742 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1

Patch Set 2 : config: added functions to access juju home #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -0 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
A environs/config/home.go View 1 chunk +56 lines, -0 lines 0 comments Download
A environs/config/home_test.go View 1 chunk +65 lines, -0 lines 0 comments Download

Messages

Total messages: 4
TheMue
Please take a look.
11 years, 2 months ago (2013-03-18 10:29:19 UTC) #1
dimitern
LGTM with a trivial suggestion. https://codereview.appspot.com/7774044/diff/1/environs/config/home_test.go File environs/config/home_test.go (right): https://codereview.appspot.com/7774044/diff/1/environs/config/home_test.go#newcode26 environs/config/home_test.go:26: config.RestoreJujuHome() probably you don't ...
11 years, 2 months ago (2013-03-18 11:44:37 UTC) #2
fwereade
LGTM
11 years, 2 months ago (2013-03-18 13:12:31 UTC) #3
TheMue
11 years, 2 months ago (2013-03-18 14:00:44 UTC) #4
*** Submitted:

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
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b