def restart(self): run_local('kill -HUP $( cat /var/run/nginx.pid )')
def _revert(self, config_dest): backup_path = self._build_backup_path(config_dest) if os.path.isfile(backup_path): run_local('mv {0} {1}'.format(backup_path, config_dest))
def restart(self): run_local('kill -HUP $( cat {0} )'.format(self._nginx_pid_path))
def _backup(self, config_dest): if os.path.isfile(config_dest): backup_path = self._build_backup_path(config_dest) run_local('mv {0} {1}'.format(config_dest, backup_path))