github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/worker/uniter/charm/export_test.go (about) 1 // Copyright 2012-2014 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package charm 5 6 // exported so we can get the deployer path from tests. 7 func GitDeployerDataPath(d Deployer) string { 8 return d.(*gitDeployer).dataPath 9 } 10 11 // exported so we can get the deployer current git repo from tests. 12 func GitDeployerCurrent(d Deployer) *GitDir { 13 return d.(*gitDeployer).current 14 } 15 16 func IsGitDeployer(d Deployer) bool { 17 _, ok := d.(*gitDeployer) 18 return ok 19 } 20 21 func IsManifestDeployer(d Deployer) bool { 22 _, ok := d.(*manifestDeployer) 23 return ok 24 }