File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/bower.cpython-310.pyc
o
�N�g� � @ sH d Z ddlmZmZ dd� Zddd�Zddd �Zdd
d�Zddd
�ZdS )a�
Installation of Bower Packages
==============================
These states manage the installed packages using Bower.
Note that npm, git and bower must be installed for these states to be
available, so bower states should include requisites to pkg.installed states
for the packages which provide npm and git (simply ``npm`` and ``git`` in most
cases), and npm.installed state for the package which provides bower.
Example:
.. code-block:: yaml
npm:
pkg.installed
git:
pkg.installed
bower:
npm.installed
require:
- pkg: npm
- pkg: git
underscore:
bower.installed:
- dir: /path/to/project
- require:
- npm: bower
� )�CommandExecutionError�CommandNotFoundErrorc C s dt v rdS dS )z@
Only load if the bower module is available in __salt__
�
bower.listZbower)Fz bower module could not be loaded)�__salt__� r r �E/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/bower.py�__virtual__# s r Nc
C s� | ddi d�}|dur|}n| g}zt d |||d�}W n$ ttfy@ } zd|d<