From b847a61d1f086e808b442914ff57694343b7e32a Mon Sep 17 00:00:00 2001 From: Andrew Anderson Date: Sun, 7 Apr 2024 15:48:43 -0400 Subject: [PATCH] adding brew installer for labeler --- brew/.gitignore | 2 ++ brew/Formula/labeler.rb | 14 ++++++++++++++ brew/README.md | 18 ++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 brew/.gitignore create mode 100644 brew/Formula/labeler.rb create mode 100644 brew/README.md diff --git a/brew/.gitignore b/brew/.gitignore new file mode 100644 index 0000000..d892a93 --- /dev/null +++ b/brew/.gitignore @@ -0,0 +1,2 @@ +# Mac trash +.DS_Store \ No newline at end of file diff --git a/brew/Formula/labeler.rb b/brew/Formula/labeler.rb new file mode 100644 index 0000000..394082a --- /dev/null +++ b/brew/Formula/labeler.rb @@ -0,0 +1,14 @@ +class Labeler < Formula + desc "Utility that automates the labeling of resources output from kubectl, kustomize, and helm" + homepage "https://github.com/clubanderson/labeler" + url "https://github.com/clubanderson/labeler/releases/download/v0.1.0/labeler-v0.1.0.tar.gz" + sha256 "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" + + def install + bin.install "labeler" + end + + test do + system "#{bin}/labeler", "--version" + end + end \ No newline at end of file diff --git a/brew/README.md b/brew/README.md new file mode 100644 index 0000000..79d6aac --- /dev/null +++ b/brew/README.md @@ -0,0 +1,18 @@ +## Instructions for installing the Labeler using Brew package manager + +install brew: +``` + https://brew.sh +``` + +to install: +``` + brew tap clubanderson/labeler + brew install labeler +``` + +to remove: +``` + brew remove labeler + brew untap clubanderson/labeler +``` \ No newline at end of file