示例#1
0
func (this *BOSHController) Post() {
	bosh := entity.NewSimpleBOSH(this.GetString("name"))
	this.CommitData(bosh)
	this.Get()
}
package entity_test

import (
	"github.com/citycloud/citycloud.cf-deploy-ui/entity"
	. "github.com/onsi/ginkgo"
)

var _ = Describe("Testing with Ginkgo", func() {
	It("b o s h template", func() {

		var test = entity.NewSimpleBOSH("deployment-bosh")
		var bt = entity.NewBOSHTemplate(test)
		_, err := bt.CreateBOSHYaml("/home/ubuntu/temp/bosh.yml")

		if err != nil {
			GinkgoT().Error(err)
		}
	})
})
示例#3
0
func (this *BOSHController) Post() {
	bosh := entity.NewSimpleBOSH(this.GetString("name"))
	this.CommitData(bosh)
	this.Get()
}

func (this *BOSHController) DeployBOSH() {
	this.LoadData()
	this.TplName = "bosh/config.tpl"
}

func (this *BOSHController) IndexBOSH() {
	this.LoadData()
	this.TplName = "bosh/index.tpl"
}

func (this *BOSHController) ConfigBOSH() {
	this.LoadData()
	this.TplName = "bosh/config.tpl"
}

func (this *BOSHController) LoadData() {
	this.Data["BOSH"] = bo
}

func (this *BOSHController) CommitData(bosh entity.BOSH) {
	bo = bosh
}

var bo entity.BOSH = entity.NewSimpleBOSH("deployment-bosh")