in plugin/step/command/command.go [62:78]
func (s *Step) Download() error {
if s.source == nil {
return nil
}
s.logger.Debugf(1, "%s: downloading source", s.Name())
tmpdir, err := temp.Dir("", "go2chef-bundle")
if err != nil {
return err
}
if err := s.source.DownloadToPath(tmpdir); err != nil {
return err
}
s.downloadPath = tmpdir
s.logger.Debugf(1, "%s: downloaded source to %s", s.Name(), s.downloadPath)
return nil
}