Esempio n. 1
0
// NewConfig returns an instance of Config with reasonable defaults.
func NewConfig() *Config {
	c := &Config{}
	c.Meta = meta.NewConfig()
	c.Gulpd = gulpd.NewConfig()
	c.HTTPD = httpd.NewConfig()
	return c
}
Esempio n. 2
0
func (s *S) SetUpSuite(c *check.C) {
	cfg := meta.NewConfig()
	cfg.MkGlobal()
	s.config = cfg
	m := make(map[string]string)
	m[CHEFREPO_GIT] = "https://github.com/megamsys/chef-repo.git"
	m[CHEFREPO_TARBALL] = "https://github.com/megamsys/chef-repo/archive/0.96.tar.gz"
	s.M = m
	c.Assert(s.config, check.NotNil)
	c.Assert(s.M, check.NotNil)

}