homebrew-core/Formula/brew-php-switcher.rb
2018-05-18 09:41:14 +01:00

20 lines
597 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"
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