github.com/ahmet2mir/goreleaser@v0.180.3-0.20210927151101-8e5ee5a9b8c5/internal/pipe/brew/testdata/TestFullPipe/custom_require.rb.golden (about) 1 # typed: false 2 # frozen_string_literal: true 3 4 # This file was generated by GoReleaser. DO NOT EDIT. 5 require_relative "custom_download_strategy" 6 class CustomRequire < Formula 7 desc "A run pipe test formula and FOO=foo_is_bar" 8 homepage "https://github.com/goreleaser" 9 version "1.0.1" 10 bottle :unneeded 11 depends_on :macos 12 13 on_macos do 14 if Hardware::CPU.intel? 15 url "https://dummyhost/download/v1.0.1/bin.tar.gz", :using => CustomDownloadStrategy 16 sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" 17 end 18 end 19 20 depends_on "zsh" => :optional 21 depends_on "bash" 22 23 conflicts_with "gtk+" 24 conflicts_with "qt" 25 26 def install 27 bin.install "custom_require" 28 end 29 30 def caveats; <<~EOS 31 don't do this custom_require 32 EOS 33 end 34 35 plist_options :startup => false 36 37 def plist; <<~EOS 38 <xml>whatever</xml> 39 EOS 40 end 41 42 test do 43 system "true" 44 system "#{bin}/foo -h" 45 end 46 end