testserver/artifact: rename to ArtifactFromFiles
This commit is contained in:
parent
0bc28f7a42
commit
7f118d6222
|
@ -45,9 +45,9 @@ type File struct {
|
|||
Body string
|
||||
}
|
||||
|
||||
// ArtifactFromBytes creates a tar.gz artifact from the given files and
|
||||
// ArtifactFromFiles creates a tar.gz artifact from the given files and
|
||||
// returns the file name of the artifact.
|
||||
func (s *ArtifactServer) ArtifactFromBytes(files []File) (string, error) {
|
||||
func (s *ArtifactServer) ArtifactFromFiles(files []File) (string, error) {
|
||||
fileName := calculateArtifactName(files)
|
||||
filePath := filepath.Join(s.docroot, fileName)
|
||||
gzFile, err := os.Create(filePath)
|
||||
|
|
Loading…
Reference in New Issue