2016-03-04 16:12:56 +00:00
|
|
|
class AwsKeychain < Formula
|
|
|
|
desc "Uses OS X keychain for storage of AWS credentials."
|
|
|
|
homepage "https://github.com/pda/aws-keychain"
|
|
|
|
url "https://github.com/pda/aws-keychain/archive/v3.0.0.tar.gz"
|
|
|
|
sha256 "3c9882d3b516b629303ca9a045fc50f6eb75fda25cd2452f10c47eda205e051f"
|
|
|
|
|
2016-03-15 12:17:33 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2016-03-04 16:12:56 +00:00
|
|
|
def install
|
|
|
|
bin.install "aws-keychain"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-03-14 15:40:03 +00:00
|
|
|
# It is not possible to create a new keychain without triggering a prompt.
|
2016-03-15 12:17:22 +00:00
|
|
|
assert_match /Store multiple AWS IAM access keys/,
|
|
|
|
shell_output("#{bin}/aws-keychain --help", 1)
|
2016-03-04 16:12:56 +00:00
|
|
|
end
|
|
|
|
end
|