From 716c7a189f855ba2725817da9810433c99baf3a9 Mon Sep 17 00:00:00 2001 From: Igor Gentil Date: Fri, 30 Aug 2019 10:19:24 +1200 Subject: [PATCH] Adding forked formula for aws-session-manager-plugin --- Formula/aws-session-manager-plugin.rb | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Formula/aws-session-manager-plugin.rb diff --git a/Formula/aws-session-manager-plugin.rb b/Formula/aws-session-manager-plugin.rb new file mode 100644 index 0000000..532557a --- /dev/null +++ b/Formula/aws-session-manager-plugin.rb @@ -0,0 +1,34 @@ +=begin +This formula was copied from https://github.com/dkanejs/homebrew-aws-session-manager-plugin. +The change I've made is to REMOVE THE DEPENDENCY ON THE FORMULA awscli, so that you can install +the plugin using Homebrew even if you don't use the Homebrew version of AWS CLI* + +*: Obviously, you still need the AWS CLI. But with this formula you don't have to use to Homebrew-managed version! +=end + +class AwsSessionManagerPlugin < Formula + desc 'Official Amazon AWS session manager plugin' + homepage 'https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html' + + version '1.1.26.0' + url 'https://s3.amazonaws.com/session-manager-downloads/plugin/1.1.26.0/mac/sessionmanager-bundle.zip' + sha256 '13297500b74f649d7855f6b444fc292f95ee6a886895b3d5111d2fd5a74b04c7' + + def install + bin.install 'bin/session-manager-plugin' + prefix.install 'seelog.xml.template' + doc.install %w[LICENSE VERSION] + end + + def caveats; <<~EOS + This formula is a fork of https://github.com/dkanejs/homebrew-aws-session-manager-plugin + It was created to remove the dependency of Homebrew formula 'awscli', so that you can + install awscli via pip, for example... + EOS + end + + test do + system 'session-manager-plugin' + end +end +