github.com/ahmet2mir/goreleaser@v0.180.3-0.20210927151101-8e5ee5a9b8c5/internal/pipe/brew/testdata/TestFullPipe/custom_download_strategy.rb.golden (about)

     1  # typed: false
     2  # frozen_string_literal: true
     3  
     4  # This file was generated by GoReleaser. DO NOT EDIT.
     5  class CustomDownloadStrategy < 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    depends_on :macos
    11  
    12    on_macos do
    13      if Hardware::CPU.intel?
    14        url "https://dummyhost/download/v1.0.1/bin.tar.gz", :using => GitHubPrivateRepositoryReleaseDownloadStrategy
    15        sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    16      end
    17    end
    18  
    19    depends_on "zsh" => :optional
    20    depends_on "bash"
    21  
    22    conflicts_with "gtk+"
    23    conflicts_with "qt"
    24  
    25    def install
    26      bin.install "custom_download_strategy"
    27    end
    28  
    29    def caveats; <<~EOS
    30      don't do this custom_download_strategy
    31    EOS
    32    end
    33  
    34    plist_options :startup => false
    35  
    36    def plist; <<~EOS
    37      <xml>whatever</xml>
    38    EOS
    39    end
    40  
    41    test do
    42      system "true"
    43      system "#{bin}/foo -h"
    44    end
    45  end