示例#1
0
文件: server.go 项目: brianz/empire
func newCloudFormationCustomResourceProvisioner(db *empire.DB, c *cli.Context) (*cloudformation.CustomResourceProvisioner, error) {
	ctx, err := newRootContext(c)
	if err != nil {
		return nil, err
	}

	p := cloudformation.NewCustomResourceProvisioner(db.DB.DB(), newConfigProvider(c))
	p.QueueURL = c.String(FlagCustomResourcesQueue)
	p.Context = ctx
	return p, nil
}
示例#2
0
文件: server.go 项目: iserko/empire
func newCloudFormationCustomResourceProvisioner(e *empire.Empire, c *Context) *cloudformation.CustomResourceProvisioner {
	p := cloudformation.NewCustomResourceProvisioner(e, c)
	p.QueueURL = c.String(FlagCustomResourcesQueue)
	p.Context = c
	return p
}