homebrew-core/Formula/brew-php-switcher.rb
Miller, Andrew | Andrew | MPD ed16afddf3 brew-php-switcher: add head url
Allow installation of the master branch of the script to be able to easily test new versions locally.

Closes #35014.

Signed-off-by: Sean Molenaar <smillerdev@me.com>
2018-12-13 13:38:31 +01:00

21 lines
656 B
Ruby

class BrewPhpSwitcher < Formula
desc "Switch Apache / Valet / CLI configs between PHP versions"
homepage "https://github.com/philcook/php-switcher"
url "https://github.com/philcook/brew-php-switcher/archive/v2.0.tar.gz"
sha256 "c2303b1b1a66ee90ed900c3beabacd6aa4e921dbcad5242e399c45d86899bc88"
head "https://github.com/philcook/brew-php-switcher.git"
bottle :unneeded
depends_on "php" => :test
def install
bin.install "phpswitch.sh"
bin.install_symlink "phpswitch.sh" => "brew-php-switcher"
end
test do
assert_match "usage: brew-php-switcher version",
shell_output("#{bin}/brew-php-switcher")
end
end