%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/states/wordpress.pyo

�
���^c@@sJdZddlmZmZmZd�Zd�Zd�Zd�ZdS(uj
This state module is used to manage Wordpress installations

:depends: wp binary from http://wp-cli.org/
i(tabsolute_importtprint_functiontunicode_literalscC@s
dtkS(Nuwordpress.show_plugin(t__salt__(((s9/usr/lib/python2.7/site-packages/salt/states/wordpress.pyt__virtual__sc
C@s�i|d6id6dd6td6}td||�}|r\t|d<dj|�|d<|Stdr�d|d<d	j|�|d<|Std
|||||||�}	|	r�t|d<dj|�|d<i|	d6|d<nd
j|�|d<|S(u.
    Run the initial setup of wordpress

    name
        path to the wordpress installation

    user
        user that owns the files for the wordpress installation

    admin_user
        username for wordpress website administrator user

    admin_password
        password for wordpress website administrator user

    admin_email
        email for wordpress website administrator user

    title
        title for the wordpress website

    url
        url for the wordpress website

    .. code-block:: yaml

        /var/www/html:
          wordpress.installed:
            - title: Daniel's Awesome Blog
            - user: apache
            - admin_user: dwallace
            - admin_email: dwallace@example.com
            - admin_password: password123
            - url: https://blog.dwallace.com
    unameuchangesuucommenturesultuwordpress.is_installedu#Wordpress is already installed: {0}utestu Wordpress will be installed: {0}uwordpress.installuWordpress Installed: {0}unewu Failed to install wordpress: {0}N(tFalseRtTruetformatt__opts__tNone(
tnametusert
admin_usertadmin_passwordtadmin_emailttitleturltrettchecktresp((s9/usr/lib/python2.7/site-packages/salt/states/wordpress.pyt	installeds*$




"
cC@sii|d6id6dd6td6}td|||�}|ddkrit|d<d	j|�|d<|Std
r�d|d<dj|�|d<|Std|||�}|tkr�t|d<d
j|�|d<i|d6td|||�d6|d<ng|dkrRt|d<d	j|�|d<i|d6td|||�d6|d<ndj|�|d<|S(uX
    Activate wordpress plugins

    name
        name of plugin to activate

    path
        path to wordpress installation

    user
        user who should own the files in the wordpress installation

    .. code-block:: yaml

        HyperDB:
          wordpress.activated:
            - path: /var/www/html
            - user: apache
    unameuchangesuucommenturesultuwordpress.show_pluginustatusuactiveuPlugin already activated: {0}utestuPlugin will be activated: {0}uwordpress.activateuPlugin activated: {0}uoldunewuPlugin failed to activate: {0}N(RRRRRR	(R
tpathRRRR((s9/usr/lib/python2.7/site-packages/salt/states/wordpress.pyt	activatedQs8





!
!cC@sii|d6id6dd6td6}td|||�}|ddkrit|d<d	j|�|d<|Std
r�d|d<dj|�|d<|Std|||�}|tkr�t|d<d
j|�|d<i|d6td|||�d6|d<ng|dkrRt|d<d	j|�|d<i|d6td|||�d6|d<ndj|�|d<|S(u^
    Deactivate wordpress plugins

    name
        name of plugin to deactivate

    path
        path to wordpress installation

    user
        user who should own the files in the wordpress installation

    .. code-block:: yaml

        HyperDB:
          wordpress.deactivated:
            - path: /var/www/html
            - user: apache
    unameuchangesuucommenturesultuwordpress.show_pluginustatusuinactiveuPlugin already deactivated: {0}utestuPlugin will be deactivated: {0}uwordpress.deactivateuPlugin deactivated: {0}uoldunewu Plugin failed to deactivate: {0}N(RRRRRR	(R
RRRRR((s9/usr/lib/python2.7/site-packages/salt/states/wordpress.pytdeactivated�s8





!
!N(	t__doc__t
__future__RRRRRRR(((s9/usr/lib/python2.7/site-packages/salt/states/wordpress.pyt<module>s
		A	9

Zerion Mini Shell 1.0