예제 #1
0
func writeSnapshotFile(c composition.IComposer, candidates []data.DeploymentCandidate) error {
	content, err := c.PrepareFinalizableCandidatesSnapshotContent(candidates)
	if err != nil {
		return err
	}
	return ioutil.WriteFile(snapshotFile, content, 0644)
}
예제 #2
0
func writeDockerComposeFile(c composition.IComposer, candidates []data.DeploymentCandidate) error {
	content, err := c.PrepareComposerContent(candidates)
	if err != nil {
		return err
	}
	return ioutil.WriteFile(composerFile, content, 0644)
}