def ensure_site_disabled(self, site):
        '''
        Ensures that the specified site is removed from nginx list of enabled sites.

        :param site: Name of the site to disable.
        :type site: :class:`str`

        Example:
        ::

            from provy.core import Role
            from provy.more.debian import NginxRole

            class MySampleRole(Role):
                def provision(self):
                    with self.using(NginxRole) as role:
                        role.ensure_site_disabled('default')
        '''
        result = self.remove_file(self.__enabled_site_for(site), sudo=True)
        if result:
            self.log(site % '%s nginx site is disabled!')
            self.ensure_restart()
dataset/ETHPy150Open python-provy/provy/provy/more/debian/web/nginx.py/NginxRole.ensure_site_disabled/swapped operands of `%`