github.com/joselitofilho/goreleaser@v0.155.1-0.20210123221854-e4891856c593/internal/pipe/brew/testdata/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  
    11    if OS.mac?
    12      url "https://dummyhost/download/v1.0.1/bin.tar.gz"
    13      sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    14    end
    15  
    16    head "https://github.com/caarlos0/test.git"
    17  
    18    depends_on "zsh" => :optional
    19    depends_on "bash"
    20  
    21    conflicts_with "gtk+"
    22    conflicts_with "qt"
    23  
    24    def install
    25      bin.install "custom_block"
    26    end
    27  
    28    def caveats; <<~EOS
    29      don't do this custom_block
    30    EOS
    31    end
    32  
    33    plist_options :startup => false
    34  
    35    def plist; <<~EOS
    36      <xml>whatever</xml>
    37    EOS
    38    end
    39  
    40    test do
    41      system "true"
    42      system "#{bin}/foo -h"
    43    end
    44  end