Rename ConfigGetenv to ConfigFromJob

This commit is contained in:
Solomon Hykes 2013-10-23 08:00:31 +00:00
parent 7e691e11b0
commit c542b2f873
2 changed files with 3 additions and 3 deletions

View file

@ -19,9 +19,9 @@ type DaemonConfig struct {
InterContainerCommunication bool
}
// ConfigGetenv creates and returns a new DaemonConfig object
// ConfigFromJob creates and returns a new DaemonConfig object
// by parsing the contents of a job's environment.
func ConfigGetenv(job *engine.Job) *DaemonConfig {
func ConfigFromJob(job *engine.Job) *DaemonConfig {
var config DaemonConfig
config.Pidfile = job.Getenv("Pidfile")
config.Root = job.Getenv("Root")

View file

@ -35,7 +35,7 @@ func init() {
}
func JobServeApi(job *engine.Job) string {
srv, err := NewServer(ConfigGetenv(job))
srv, err := NewServer(ConfigFromJob(job))
if err != nil {
return err.Error()
}