gem
gem¶
Manage Ruby gem packages. (see https://rubygems.org/ )
packages(packages=None, present=True, latest=False)
¶
Add/remove/update gem packages.
- packages: list of packages to ensure
- present: whether the packages should be installed
- latest: whether to upgrade packages without a specified version
Versions
Package versions can be pinned like gem: <pkg>:<version>
.
Example:
.. code:: python
# Note: Assumes that 'gem' is installed.
gem.packages(
name="Install rspec",
packages=["rspec"],
)