/
lowprofile.rb
35 lines (24 loc) · 898 Bytes
/
lowprofile.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
class Lowprofile < Formula
desc "Allows for easy switching between AWS profiles"
homepage "https://github.com/kellyp/lowprofile"
url "https://github.com/kellyp/lowprofile/archive/v0.5.0.tar.gz"
version "0.5.0"
sha256 "520d885f13c9861d16cab414f6382ca9449c68c359e3c05d6851fe900f07931e"
depends_on "jq"
depends_on "grep"
def install
bin.install Dir["bin/lowprofile"]
end
def caveats; <<-EOS
Add the following to your bash_profile or zshrc to complete the install:
. #{HOMEBREW_PREFIX}/bin/lowprofile
and source the file to pick up the change.
if you don't already have it in there feel free to add (if not lowprofile
will append it for you):
export AWS_PROFILE=default
that's it lowprofile with take it from there!
You can now switch AWS profiles simply by typing
lowprofile activate --profile new-profile
EOS
end
end