homebrew-core/Formula/wp-cli.rb
Alain Schlesser c5b56e4260
wp-cli 2.3.0
Closes #43082.

Signed-off-by: Sean Molenaar <smillerdev@me.com>
2019-08-14 09:15:55 +02:00

17 lines
497 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.3.0/wp-cli-2.3.0.phar"
sha256 "3c5edf945846f650846b973a22645823c7f5e00b0e393f921397d26ee11f3770"
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