def deploy(rc): """Deploys all of the deployment targets.""" if not hasattr(rc, "deploy") or len(rc.deploy) == 0: raise RuntimeError("run control has no deployment targets!") for target in rc.deploy: dploy(rc, **target)
def deploy(rc): """Deploys all of the deployment targets.""" if not hasattr(rc, 'deploy') or len(rc.deploy) == 0: raise RuntimeError('run control has no deployment targets!') for target in rc.deploy: dploy(rc, **target)