Merge pull request #66 from fluxcd/quickfix/method-name

This commit is contained in:
Hidde Beydals 2020-06-30 12:43:41 +02:00 committed by GitHub
commit ea6c59b84a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -45,9 +45,9 @@ type File struct {
Body string 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. // 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) fileName := calculateArtifactName(files)
filePath := filepath.Join(s.docroot, fileName) filePath := filepath.Join(s.docroot, fileName)
gzFile, err := os.Create(filePath) gzFile, err := os.Create(filePath)