2019-08-06 18:41:23 +00:00
|
|
|
require "fileutils"
|
2016-09-22 18:37:53 +00:00
|
|
|
|
|
|
|
class Shield < Formula
|
|
|
|
homepage "https://github.com/starkandwayne/shield"
|
|
|
|
|
2022-11-29 04:37:31 +00:00
|
|
|
v = "v8.8.5" # CI Managed
|
2016-09-22 18:37:53 +00:00
|
|
|
url "https://github.com/starkandwayne/shield/releases/download/#{v}/shield-darwin-amd64"
|
|
|
|
version v
|
2022-11-29 04:37:31 +00:00
|
|
|
sha256 "9ed8543bd1b5fd19f4196e6fef8e6149c7676d5780b696a34991dd421cdac8bb" # CI Managed
|
2016-09-22 18:37:53 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
FileUtils.mv("shield-darwin-amd64", "shield")
|
|
|
|
bin.install "shield"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/shield", "-h"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|