Skip to content

Commit

Permalink
chore: add new formula porter
Browse files Browse the repository at this point in the history
Signed-off-by: Ruihua Wen <spiffyeight77@gmail.com>
  • Loading branch information
SpiffyEight77 committed May 11, 2024
1 parent df32a4a commit d54cadb
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Formula/p/porter.rb
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

0 comments on commit d54cadb

Please sign in to comment.