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
git in most
cases), and npm.installed state for the package which provides bower.
npm: pkg.installed git: pkg.installed bower: npm.installed require: - pkg: npm - pkg: git underscore: bower.installed: - dir: /path/to/project - require: - npm: bower
Bootstraps a frontend distribution.
Will execute 'bower install' on the specified directory.
installed(name, dir, pkgs=None, user=None, env=None)¶
Verify that the given package is installed and is at the correct version (if specified).
underscore: bower.installed: - dir: /path/to/project - user: someuser jquery#2.0: bower.installed: - dir: /path/to/project
cmd.run. state function.
removed(name, dir, user=None)¶
Verify that the given package is not installed.