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) }
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) }