homebrew-core/Formula/deployer.rb

25 lines
716 B
Ruby

class Deployer < Formula
desc "Deployment tool written in PHP with support for popular frameworks"
homepage "https://deployer.org/"
url "https://github.com/deployphp/deployer/releases/download/v7.1.4/deployer.phar"
sha256 "7f85a660cd0a77c4d54c017695e5661cc4e39dae3c43980d45d91646aa72faab"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, all: "e60541a70a8b91e0c5d44ad14434d45952d7b6261ebbc4a374663b302b130926"
end
depends_on "php"
conflicts_with "dep", because: "both install `dep` binaries"
def install
bin.install "deployer.phar" => "dep"
end
test do
system "#{bin}/dep", "init", "--no-interaction"
assert_predicate testpath/"deploy.php", :exist?
end
end