From 4ca716a1cfb929d3beb4b405d61e0ff512056e16 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sat, 8 May 2021 12:27:58 +0200 Subject: [PATCH] Small Documentation Example Of Cask Leveraging (#2462) (#2469) * Small Documentation Example Of Cask Leveraging - Just a lil' demo showing that we can utilize homebrew/cask/foo syntax for given name of package to grab associated cask pacakge Resolves: patch/sml-doc-example-update * Slight Documentation Example Edit - adjusting documentation example to provide better info surrounding installing a given formula from brew via cask Resolves: patch/sml-doc-example-update * Small Edits To Make PEP8 Happy - format code with autopep8 in vs code Resolves: patch/sml-doc-example-update * Only Making Small PEP8 Change - reverting previous mass PEP8 format, focus on trimming whitespace on doc example entry Resolves: patch/sml-doc-example-update * Remove Trailing Whitespace PEP8 - removed trailing whitespace on doc example chunk Resolves: patch/sml-doc-example-update (cherry picked from commit 73863262584ba58043e5357d8c45b468dd7de5e2) Co-authored-by: Mike Russell --- plugins/modules/packaging/os/homebrew.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/modules/packaging/os/homebrew.py b/plugins/modules/packaging/os/homebrew.py index 9a41370c3d..47ec930a2c 100644 --- a/plugins/modules/packaging/os/homebrew.py +++ b/plugins/modules/packaging/os/homebrew.py @@ -127,6 +127,11 @@ EXAMPLES = ''' state: present install_options: with-baz,enable-debug +- name: Install formula foo with 'brew' from cask + community.general.homebrew: + name: homebrew/cask/foo + state: present + - name: Use ignored-pinned option while upgrading all community.general.homebrew: upgrade_all: yes