-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ruihua Wen <spiffyeight77@gmail.com>
- Loading branch information
1 parent
df32a4a
commit d54cadb
Showing
1 changed file
with
24 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,24 @@ | ||
class Porter < Formula | ||
desc "Porter enables you to package your application artifact, client tools, configuration and deployment logic together as an installer that you can distribute, and install with a single command." | ||
homepage "https://porter.sh" | ||
url "https://github.com/SpiffyEight77/porter/archive/refs/tags/v1.0.17.1.tar.gz" | ||
sha256 "2139036410612d28a455575066101aa9fcc0e231048d5b7b5c295ba207efd0ff" | ||
license "Apache-2.0" | ||
head "https://github.com/getporter/porter.git", branch: "main" | ||
|
||
depends_on "go" => :build | ||
|
||
def install | ||
system "go", "run", "mage.go", "-v", "Build" | ||
|
||
bin.install "bin/porter" | ||
|
||
generate_completions_from_executable(bin/"porter", "completion") | ||
end | ||
|
||
test do | ||
assert_predicate bin/"porter", :exist?, "porter binary doesn't exist" | ||
|
||
assert_match "porter v1.0.17.1 (4157be0)", shell_output("#{bin}/porter version") | ||
end | ||
end |