in plugin/step/install/darwin/pkg/pkg.go [135:159]
func Loader(config map[string]interface{}) (go2chef.Step, error) {
step := &Step{
StepName: "",
PKGMatch: "chef.*",
DMGMatch: "chef.*",
InstallerTimeoutSeconds: 300,
IsDMG: false,
logger: go2chef.GetGlobalLogger(),
source: nil,
downloadPath: "",
}
if err := mapstructure.Decode(config, step); err != nil {
return nil, err
}
source, err := go2chef.GetSourceFromStepConfig(config)
if err != nil {
return nil, err
}
step.source = source
return step, nil
}