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

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