Add functions to deploy, enable apache config files

This commit is contained in:
Lance Edgar 2019-02-16 18:21:40 -06:00
parent 05d6e093a7
commit bc4a8a686e
2 changed files with 26 additions and 0 deletions

View file

@ -210,6 +210,11 @@ class Deployer(object):
kwargs['use_sudo'] = True
deploy_site(c, self, local_path, name, **kwargs)
def apache_conf(self, c, local_path, name, **kwargs):
from rattail_fabric2.apache import deploy_conf
kwargs['use_sudo'] = True
deploy_conf(c, self, local_path, name, **kwargs)
def backup_app(self, c, envname='backup', *args, **kwargs):
from rattail_fabric2.backup import deploy_backup_app
deploy_backup_app(c, self, envname, *args, **kwargs)