github.com/jenkins-x/jx/v2@v2.1.155/pkg/brew/test_data/standard.golden/Formula/program.rb (about) 1 class Jx < Formula 2 desc "A program for helloworld" 3 homepage "https://program.io/program/" 4 version "1.0.2" 5 6 url "https://github.com/program-org/program/releases/download/v#{version}/program-darwin-amd64.tar.gz" 7 sha256 "ef7a95c23bc5858cff6fd2825836af7e8342a9f6821d91ddb0b5b5f87f0f4e85" 8 9 def install 10 bin.install name 11 12 output = Utils.popen_read("SHELL=bash #{bin}/program completion bash") 13 (bash_completion/"program").write output 14 15 output = Utils.popen_read("SHELL=zsh #{bin}/program completion zsh") 16 (zsh_completion/"_program").write output 17 18 prefix.install_metafiles 19 end 20 21 end