github.com/amane3/goreleaser@v0.182.0/internal/pipe/brew/testdata/custom_block.rb.golden (about)

     1  # This file was generated by GoReleaser. DO NOT EDIT.
     2  class CustomBlock < Formula
     3    desc "A run pipe test formula and FOO=foo_is_bar"
     4    homepage "https://github.com/goreleaser"
     5    version "1.0.1"
     6    bottle :unneeded
     7  
     8    if OS.mac?
     9      url "https://dummyhost/download/v1.0.1/bin.tar.gz"
    10      sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    11    end
    12  
    13    head "https://github.com/caarlos0/test.git"
    14  
    15    depends_on "zsh" => :optional
    16    depends_on "bash"
    17  
    18    conflicts_with "gtk+"
    19    conflicts_with "qt"
    20  
    21    def install
    22      bin.install "custom_block"
    23    end
    24  
    25    def caveats; <<~EOS
    26      don't do this custom_block
    27    EOS
    28    end
    29  
    30    plist_options :startup => false
    31  
    32    def plist; <<~EOS
    33      <xml>whatever</xml>
    34    EOS
    35    end
    36  
    37    test do
    38      system "true"
    39      system "#{bin}/foo -h"
    40    end
    41  end