github.com/triarius/goreleaser@v1.12.5/internal/pipe/brew/testdata/TestFullPipe/default_gitlab.rb.golden (about) 1 # typed: false 2 # frozen_string_literal: true 3 4 # This file was generated by GoReleaser. DO NOT EDIT. 5 class DefaultGitlab < Formula 6 desc "Run pipe test formula and FOO=foo_is_bar" 7 homepage "https://gitlab.com/goreleaser" 8 version "1.0.1" 9 10 depends_on "zsh" => :optional 11 depends_on "bash" => "3.2.57" 12 depends_on "fish" => :optional 13 depends_on :macos 14 15 on_macos do 16 url "https://dummyhost/download/v1.0.1/bin.tar.gz" 17 sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" 18 19 def install 20 bin.install "default_gitlab" 21 end 22 23 if Hardware::CPU.arm? 24 def caveats 25 <<~EOS 26 The darwin_arm64 architecture is not supported for the DefaultGitlab 27 formula at this time. The darwin_amd64 binary may work in compatibility 28 mode, but it might not be fully supported. 29 EOS 30 end 31 end 32 end 33 34 conflicts_with "gtk+" 35 conflicts_with "qt" 36 37 def post_install 38 system "echo" 39 touch "/tmp/hi" 40 end 41 42 def caveats 43 <<~EOS 44 don't do this default_gitlab 45 EOS 46 end 47 48 plist_options startup: false 49 50 def plist 51 <<~EOS 52 <xml>whatever</xml> 53 EOS 54 end 55 56 service do 57 run foo/bar 58 keep_alive true 59 end 60 61 test do 62 system "true" 63 system "#{bin}/foo", "-h" 64 end 65 end