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

     1  # typed: false
     2  # frozen_string_literal: true
     3  
     4  # This file was generated by GoReleaser. DO NOT EDIT.
     5  class BinaryOverridden < Formula
     6    desc "A run pipe test formula"
     7    homepage "https://github.com/goreleaser"
     8    version "1.0.1"
     9    if OS.mac?
    10      url "https://github.com/test/test/releases/download/v1.0.1/bin.todo"
    11      sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    12    elsif OS.linux?
    13    end
    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 "foo"
    23    end
    24  
    25    def caveats; <<~EOS
    26      don't do this
    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