%PDF- %PDF-
| Direktori : /proc/self/root/proc/thread-self/root/lib/python2.7/site-packages/salt/modules/ |
| Current File : //proc/self/root/proc/thread-self/root/lib/python2.7/site-packages/salt/modules/nginx.pyo |
�
���^c @@ s� d Z d d l m Z m Z m Z d d l m Z d d l Z d d l
j j Z d d l
Z
e j d � � Z d � Z d � Z d � Z d � Z d d
� Z d d � Z d S(
u
Support for nginx
i ( t absolute_importt print_functiont unicode_literals( t urlopenNc C@ s t j j j d � S( Nu nginx( t saltt utilst patht which( ( ( s6 /usr/lib/python2.7/site-packages/salt/modules/nginx.pyt __detect_os s c C@ s t � r
t St d f S( u4
Only load the module if nginx is installed
uD The nginx execution module cannot be loaded: nginx is not installed.( R t Truet False( ( ( s6 /usr/lib/python2.7/site-packages/salt/modules/nginx.pyt __virtual__ s c C@ sC d j t � � } t d | � j � } | d j d � } | d S( uy
Return server version from nginx -v
CLI Example:
.. code-block:: bash
salt '*' nginx.version
u {0} -vu cmd.runi u : i����( t formatR t __salt__t
splitlinest split( t cmdt outt ret( ( s6 /usr/lib/python2.7/site-packages/salt/modules/nginx.pyt version"