github.com/joselitofilho/goreleaser@v0.155.1-0.20210123221854-e4891856c593/internal/pipe/brew/testdata/default.rb.golden (about)

     1  # typed: false
     2  # frozen_string_literal: true
     3  
     4  # This file was generated by GoReleaser. DO NOT EDIT.
     5  class Default < 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    depends_on "zsh" => :optional
    17    depends_on "bash"
    18  
    19    conflicts_with "gtk+"
    20    conflicts_with "qt"
    21  
    22    def install
    23      bin.install "default"
    24    end
    25  
    26    def caveats; <<~EOS
    27      don't do this default
    28    EOS
    29    end
    30  
    31    plist_options :startup => false
    32  
    33    def plist; <<~EOS
    34      <xml>whatever</xml>
    35    EOS
    36    end
    37  
    38    test do
    39      system "true"
    40      system "#{bin}/foo -h"
    41    end
    42  end