Skip to content

Commit

Permalink
Add protoc-gen-go-client-mock
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Mar 27, 2023
1 parent 00bb8bb commit b3bc4d5
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions protoc-gen-go-client-mock.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
class ProtocGenGoClientMock < Formula
desc 'protoc-gen-go-client-mock is a protoc plugin that generates a mock of client that bundles gRPC Clients for multiple services.'
version '0.1.0'
homepage 'https://github.com/pepabo/protoc-gen-go-client-mock'

on_macos do
if Hardware::CPU.arm?
url 'https://github.com/pepabo/protoc-gen-go-client-mock/releases/download/v0.1.0/protoc-gen-go-client-mock_v0.1.0_darwin_arm64.zip'
sha256 'b6aba45d74651ecf36737b4b0ccd663a2aec7a2012e385224cefedc4efffb358'
end
if Hardware::CPU.intel?
url 'https://github.com/pepabo/protoc-gen-go-client-mock/releases/download/v0.1.0/protoc-gen-go-client-mock_v0.1.0_darwin_amd64.zip'
sha256 'd8f8bfed6c8db2910a2ae2e7f4d2406a69ef99e87dc92c3c16aa65c72ac9af20'
end
end

on_linux do
if Hardware::CPU.intel?
url 'https://github.com/pepabo/protoc-gen-go-client-mock/releases/download/v0.1.0/protoc-gen-go-client-mock_v0.1.0_linux_amd64.tar.gz'
sha256 'ef11ef83079cef8324ae44ec4304033fdbcc5c90ef19dc8ae901db3af07db67e'
end
end

head do
url 'https://github.com/pepabo/protoc-gen-go-client-mock.git'
depends_on 'go' => :build
end

def install
if build.head?
system 'make', 'build'
end
bin.install 'protoc-gen-go-client-mock'
end
end

0 comments on commit b3bc4d5

Please sign in to comment.