homebrew-core/Formula/wp-cli.rb

24 lines
579 B
Ruby

class WpCli < Formula
desc "Command-line interface for WordPress"
homepage "https://wp-cli.org/"
url "https://github.com/wp-cli/wp-cli/releases/download/v2.5.0/wp-cli-2.5.0.phar"
sha256 "be0853e9f443f3848566070871d344e8ad81eb1e15d15dcf9324b4a75e272789"
license "MIT"
livecheck do
url :stable
strategy :github_latest
end
bottle :unneeded
def install
bin.install "wp-cli-#{version}.phar" => "wp"
end
test do
output = shell_output("#{bin}/wp core download --path=wptest")
assert_match "Success: WordPress downloaded.", output
end
end