~rogpeppe/juju-core/azure

« back to all changes in this revision

Viewing changes to environs/local/export_test.go

[r=thumper] Add the initial bootstrap implementation.

This isn't all that is needed to bootstrap, but it is the start.
In particular, this adds the mongo upstart service. This branch
also adds a very simple instance implementation for the local
instances.

https://codereview.appspot.com/11325043/

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
        return func() { checkIfRoot = old }
19
19
}
20
20
 
 
21
// SetUpstartScriptLocation allows tests to override the directory where the
 
22
// provider writes the upstart scripts.
 
23
func SetUpstartScriptLocation(location string) (old string) {
 
24
        old, upstartScriptLocation = upstartScriptLocation, location
 
25
        return
 
26
}
 
27
 
21
28
// ConfigNamespace returns the result of the namespace call on the
22
29
// localConfig.
23
30
func ConfigNamespace(cfg *config.Config) string {