-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andy Jeffries
authored
May 13, 2020
1 parent
b4af168
commit fa017df
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
url: "https://github.com/civo/cli-go/releases/download/v$VERSION_NUMBER/civo_$VERSION_NUMBER_darwin_amd64.tar.gz | ||
tap: civo/homebrew-tools/formula/civo.rb | ||
template: > | ||
class App < Formula | ||
desc "CLI for managing Civo resources" | ||
homepage "https://github.com/civo/cli-go" | ||
version "$STABLE_VERSION" | ||
url "$STABLE_ASSET_URL" | ||
sha256 "$STABLE_ASSET_SHA256" | ||
|
||
def install | ||
bin.install "civo" | ||
end | ||
|
||
# Homebrew requires tests. | ||
test do | ||
assert_match "$VERSION_NUMBER", shell_output("#{bin}/civo version -q", 2) | ||
end | ||
end |