aztfy 0.5.0 (new formula)

* aztfy 0.5.0 (new formula)
* cosmetic
* Update Formula/aztfy.rb

Closes #104342.

Co-authored-by: Rui Chen <rui@chenrui.dev>
Co-authored-by: Kodai Sakabe <cs006061@gmail.com>
Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
koudaiii 2022-06-24 18:21:45 +09:00 committed by BrewTestBot
parent 752c412a77
commit 72e25a0ca4
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 23 additions and 0 deletions

23
Formula/aztfy.rb Normal file
View File

@ -0,0 +1,23 @@
class Aztfy < Formula
desc "Bring your existing Azure resources under the management of Terraform"
homepage "https://azure.github.io/aztfy"
url "https://github.com/Azure/aztfy.git",
tag: "v0.5.0",
revision: "f957fc158684aaf66551543327124865c7fe4eca"
license "MPL-2.0"
head "https://github.com/Azure/aztfy.git", branch: "main"
depends_on "go" => :build
def install
ENV["CGO_ENABLED"] = "0"
system "go", "build", *std_go_args(ldflags: "-s -w -X 'main.version=v#{version}' -X 'main.revision=#{Utils.git_short_head(length: 7)}'")
end
test do
version_output = shell_output("#{bin}/aztfy -v")
assert_match version.to_s, version_output
no_resource_group_specified_output = shell_output("#{bin}/aztfy 2>&1", 1)
assert_match("Error: No resource group specified", no_resource_group_specified_output)
end
end