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