steampipe 0.17.4 (new formula)

* steampipe 0.17.4 (new formula)
* steampipe: update test
* steampipe: update test

Closes #118928.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: Patrick Linnane <patrick@linnane.io>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Rui Chen 2022-09-30 18:41:50 -04:00 committed by BrewTestBot
parent e44fef2fc9
commit 6553115d38
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 26 additions and 0 deletions

26
Formula/steampipe.rb Normal file
View File

@ -0,0 +1,26 @@
class Steampipe < Formula
desc "Use SQL to instantly query your cloud services"
homepage "https://steampipe.io/"
url "https://github.com/turbot/steampipe/archive/refs/tags/v0.17.4.tar.gz"
sha256 "e754c17b1acbdd17104591b9bdd72433f8bc22d3918c465a734543c19245c5fe"
license "AGPL-3.0-only"
head "https://github.com/turbot/steampipe.git", branch: "main"
depends_on "go" => :build
def install
system "go", "build", *std_go_args(ldflags: "-s -w")
generate_completions_from_executable(bin/"steampipe", "completion")
end
test do
output = shell_output(bin/"steampipe service status 2>&1")
if OS.mac?
assert_match "Error: could not create installation directory", output
else # Linux
assert_match "Steampipe service is not installed", output
end
assert_match "steampipe version #{version}", shell_output(bin/"steampipe --version")
end
end