Exemplo n.º 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)
}
Exemplo n.º 2
0
func (p *LXCProvisioner) Deploy(a provision.App, version string, w io.Writer) error {
	return deploy.Git(p, a, version, w)
}
Exemplo n.º 3
0
func (p *JujuProvisioner) Deploy(a provision.App, w io.Writer) error {
	return deploy.Git(a, w)
}
Exemplo n.º 4
0
func (p *LXCProvisioner) Deploy(a provision.App, w io.Writer) error {
	return deploy.Git(p, a, w)
}