Skip to content

Commit

Permalink
Adding forked formula for aws-session-manager-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
igorlg committed Aug 29, 2019
1 parent 2169131 commit 716c7a1
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Formula/aws-session-manager-plugin.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 716c7a1

Please sign in to comment.