in plugin/step/install/windows/msi/msi_windows.go [179:203]
func Loader(config map[string]interface{}) (go2chef.Step, error) {
step := &Step{
StepName: "",
ProgramMatch: "Chef Infra Client",
MSIMatch: "chef-client.*\\.msi",
MSIEXECTimeoutSeconds: 300,
ExitCode: []int{0, 3010},
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
}