Move archive helpers to artifact

This allow in the future to swap and provide archive/compression methods without hijacking the code.

Refers to #33
This commit is contained in:
Ettore Di Giacinto
2019-12-28 16:32:32 +01:00
parent 8fffae31c7
commit 2fa9c754ae
4 changed files with 55 additions and 34 deletions

View File

@@ -62,6 +62,9 @@ type Artifact interface {
SetCompileSpec(as CompilationSpec)
GetCompileSpec() CompilationSpec
WriteYaml(dst string) error
Unpack(dst string, keepPerms bool) error
Compress(src string) error
FileList() ([]string, error)
}
type ArtifactNode struct {