コード例 #1
0
ファイル: apache.py プロジェクト: johnykov/fabtools
def module_enabled(module):
    """
    Ensure link to /etc/apache2/mods-available/module exists and reload apache2
    configuration if needed.
    """
    enable_module(module)
    reload_service('apache2')
コード例 #2
0
ファイル: apache.py プロジェクト: restanrm/fabtools
def module_enabled(module):
    """
    Ensure link to /etc/apache2/mods-available/module exists and reload apache2
    configuration if needed.
    """
    enable_module(module)
    reload_service('apache2')
コード例 #3
0
ファイル: apache.py プロジェクト: Friz-zy/fabtools
def module_enabled(module):
    """
    Require an Apache module to be enabled.

    This will cause Apache to reload its configuration.

    ::

        from fabtools import require

        require.apache.module_enabled('rewrite')

    """
    enable_module(module)
    reload_service('apache2')
コード例 #4
0
ファイル: apache.py プロジェクト: xlqian/fabtools
def module_enabled(module):
    """
    Require an Apache module to be enabled.

    This will cause Apache to reload its configuration.

    ::

        from fabtools import require

        require.apache.module_enabled('rewrite')

    """
    enable_module(module)
    reload_service('apache2')