Skip to content

Commit

Permalink
Merge pull request #191 from akutz/bugfix/gofig-load
Browse files Browse the repository at this point in the history
Fix for not setting Gofig global/user dirs
  • Loading branch information
clintkitson committed Dec 3, 2015
2 parents 8919982 + d040235 commit baa581e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/core.go
@@ -1,11 +1,19 @@
package core

import (
"fmt"

"github.com/akutz/gofig"

"github.com/emccode/rexray/util"
)

func init() {
initDrivers()

gofig.SetGlobalConfigPath(util.EtcDirPath())
gofig.SetUserConfigPath(fmt.Sprintf("%s/.rexray", util.HomeDir()))

gofig.Register(globalRegistration())
gofig.Register(driverRegistration())
}
Expand Down

0 comments on commit baa581e

Please sign in to comment.