Пример #1
0
func (p *JujuProvisioner) Deploy(a provision.App, version string, w io.Writer) error {
	var buf bytes.Buffer
	setOption := []string{"set", a.GetName(), "app-version=" + version}
	if err := runCmd(true, &buf, &buf, setOption...); err != nil {
		log.Errorf("juju: Failed to set app-version. Error: %s.\nCommand output: %s", err, &buf)
	}
	return deploy.Git(p, a, version, w)
}
Пример #2
0
func (p *LXCProvisioner) Deploy(a provision.App, version string, w io.Writer) error {
	return deploy.Git(p, a, version, w)
}
Пример #3
0
func (p *JujuProvisioner) Deploy(a provision.App, w io.Writer) error {
	return deploy.Git(a, w)
}
Пример #4
0
func (p *LXCProvisioner) Deploy(a provision.App, w io.Writer) error {
	return deploy.Git(p, a, w)
}