github.com/ahmet2mir/goreleaser@v0.180.3-0.20210927151101-8e5ee5a9b8c5/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 "A run pipe test formula and FOO=foo_is_bar" 7 homepage "https://github.com/goreleaser" 8 version "1.0.1" 9 bottle :unneeded 10 depends_on :macos 11 12 on_macos do 13 if Hardware::CPU.intel? 14 url "https://dummyhost/download/v1.0.1/bin.tar.gz" 15 sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" 16 end 17 end 18 19 head "https://github.com/caarlos0/test.git" 20 21 depends_on "zsh" => :optional 22 depends_on "bash" 23 24 conflicts_with "gtk+" 25 conflicts_with "qt" 26 27 def install 28 bin.install "custom_block" 29 end 30 31 def caveats; <<~EOS 32 don't do this custom_block 33 EOS 34 end 35 36 plist_options :startup => false 37 38 def plist; <<~EOS 39 <xml>whatever</xml> 40 EOS 41 end 42 43 test do 44 system "true" 45 system "#{bin}/foo -h" 46 end 47 end