github.com/triarius/goreleaser@v1.12.5/internal/pipe/brew/testdata/TestFullPipe/custom_block.rb.golden (about) 1 # typed: false 2 # frozen_string_literal: true 3 4 # This file was generated by GoReleaser. DO NOT EDIT. 5 class CustomBlock < Formula 6 desc "Run pipe test formula and FOO=foo_is_bar" 7 homepage "https://github.com/goreleaser" 8 version "1.0.1" 9 10 depends_on "zsh" => :optional 11 depends_on "bash" => "3.2.57" 12 depends_on "fish" => :optional 13 depends_on :macos 14 15 on_macos do 16 url "https://dummyhost/download/v1.0.1/bin.tar.gz" 17 sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" 18 19 def install 20 bin.install "custom_block" 21 end 22 23 if Hardware::CPU.arm? 24 def caveats 25 <<~EOS 26 The darwin_arm64 architecture is not supported for the CustomBlock 27 formula at this time. The darwin_amd64 binary may work in compatibility 28 mode, but it might not be fully supported. 29 EOS 30 end 31 end 32 end 33 34 conflicts_with "gtk+" 35 conflicts_with "qt" 36 37 head "https://github.com/caarlos0/test.git" 38 39 def post_install 40 system "echo" 41 touch "/tmp/hi" 42 end 43 44 def caveats 45 <<~EOS 46 don't do this custom_block 47 EOS 48 end 49 50 plist_options startup: false 51 52 def plist 53 <<~EOS 54 <xml>whatever</xml> 55 EOS 56 end 57 58 service do 59 run foo/bar 60 keep_alive true 61 end 62 63 test do 64 system "true" 65 system "#{bin}/foo", "-h" 66 end 67 end