2019-08-31 11:11:59 +00:00
|
|
|
class Berglas < Formula
|
|
|
|
desc "Tool for managing secrets on Google Cloud"
|
|
|
|
homepage "https://github.com/GoogleCloudPlatform/berglas"
|
2019-12-14 22:10:19 +00:00
|
|
|
url "https://github.com/GoogleCloudPlatform/berglas/archive/v0.5.0.tar.gz"
|
|
|
|
sha256 "10e0754b034ce84c5783e494ddb5772265bc8b1cfaa1a13871521881c869b4b4"
|
2019-08-31 11:11:59 +00:00
|
|
|
|
2019-09-14 14:27:36 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2019-12-14 22:46:37 +00:00
|
|
|
sha256 "305e848eb3a7b671b10996b7b145ee8a41d46165c825450399497a920a92e759" => :catalina
|
|
|
|
sha256 "f7df64d6b12b4fe6fa458aa9d9b5d979589c5e0da9a0cf0e545c59d732734806" => :mojave
|
|
|
|
sha256 "e86deac6d0854b9dcdac69df25b5ce838c0ec9adf918c5855c457ff6a9975e95" => :high_sierra
|
2019-09-14 14:27:36 +00:00
|
|
|
end
|
|
|
|
|
2019-08-31 11:11:59 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
def install
|
2019-11-17 23:37:18 +00:00
|
|
|
system "go", "build", "-o", bin/"berglas"
|
2019-08-31 11:11:59 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match "#{version}\n", shell_output("#{bin}/berglas --version 2>&1")
|
2019-11-17 23:37:18 +00:00
|
|
|
out = shell_output("#{bin}/berglas list homebrewtest 2>&1", 61)
|
2019-08-31 11:11:59 +00:00
|
|
|
assert_match "could not find default credentials.", out
|
|
|
|
end
|
|
|
|
end
|