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

Issue 6496120: add toolsDir param to RunHook

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by fwereade
Modified:
11 years, 7 months ago
Reviewers:
mp+124222
Visibility:
Public.

Description

add toolsDir param to RunHook I feel this is somewhat inelegant, but clear and simple, and the right step forward at this stage. I still have ideas floating around my mind for a hook.Runner, which I currently *expect* to replace HookContext.RunHook, but I don't want to go off into the weeds looking for the perfect solution when this one is trivial, and right here. https://code.launchpad.net/~fwereade/juju-core/run-hook-tools-dir/+merge/124222 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : add toolsDir param to RunHook #

Total comments: 1

Patch Set 3 : add toolsDir param to RunHook #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -47 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujuc/server/context.go View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M cmd/jujuc/server/context_test.go View 1 2 4 chunks +9 lines, -5 lines 0 comments Download
M cmd/jujud/unit_test.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M worker/uniter/tools.go View 1 2 chunks +4 lines, -7 lines 0 comments Download
M worker/uniter/tools_test.go View 1 3 chunks +4 lines, -4 lines 0 comments Download
M worker/uniter/uniter.go View 1 6 chunks +11 lines, -18 lines 0 comments Download
M worker/uniter/uniter_test.go View 1 2 5 chunks +4 lines, -8 lines 0 comments Download

Messages

Total messages: 4
fwereade
Please take a look.
11 years, 7 months ago (2012-09-13 14:55:41 UTC) #1
fwereade
Please take a look.
11 years, 7 months ago (2012-09-13 15:52:53 UTC) #2
niemeyer
This is great, LGTM https://codereview.appspot.com/6496120/diff/3001/worker/uniter/tools_test.go File worker/uniter/tools_test.go (right): https://codereview.appspot.com/6496120/diff/3001/worker/uniter/tools_test.go#newcode45 worker/uniter/tools_test.go:45: err = uniter.EnsureJujucSymlinks(s.toolsDir) Looks good ...
11 years, 7 months ago (2012-09-13 19:22:30 UTC) #3
fwereade
11 years, 7 months ago (2012-09-13 20:37:40 UTC) #4
*** Submitted:

add toolsDir param to RunHook

I feel this is somewhat inelegant, but clear and simple, and the right step
forward at this stage. I still have ideas floating around my mind for a
hook.Runner, which I currently *expect* to replace HookContext.RunHook, but
I don't want to go off into the weeds looking for the perfect solution when
this one is trivial, and right here.

R=niemeyer
CC=
https://codereview.appspot.com/6496120
Sign in to reply to this message.

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