driftctl 0.2.2 (new formula)

driftctl v0.2.2 (new formula)

Closes #68389.

Signed-off-by: chenrui <rui@chenrui.dev>
master
William Beuil 2021-01-06 15:07:38 +01:00 committed by chenrui
parent 92545ce93a
commit efe47ba145
1 changed files with 21 additions and 0 deletions

21
Formula/driftctl.rb Normal file
View File

@ -0,0 +1,21 @@
class Driftctl < Formula
desc "Detect, track and alert on infrastructure drift"
homepage "https://driftctl.com"
url "https://github.com/cloudskiff/driftctl/archive/v0.2.2.tar.gz"
sha256 "22ec519af467819dc0ffb93c9c92951ffa8a6b663004932524f28ecf9c116a60"
license "Apache-2.0"
depends_on "go" => :build
def install
system "go", "build", "-ldflags",
"-s -w -X github.com/cloudskiff/driftctl/build.env=release
-X github.com/cloudskiff/driftctl/pkg/version.version=v#{version}",
*std_go_args
end
test do
assert_match "v#{version}", shell_output("#{bin}/driftctl version")
assert_match "Invalid AWS Region", shell_output("#{bin}/driftctl --no-version-check scan 2>&1", 1)
end
end