예제 #1
0
파일: state.go 프로젝트: CSRedRat/juju-core
// Deployer returns access to the Deployer API
func (st *State) Deployer() (*deployer.Deployer, error) {
	return deployer.New(st), nil
}
예제 #2
0
// Note: This is really meant as a unit-test, this isn't a test that
// should need all of the setup we have for this test suite
func (s *deployerSuite) TestNew(c *gc.C) {
	deployer := deployer.New(s.stateAPI)
	c.Assert(deployer, gc.NotNil)
}