2419579634
Closes #39271. Signed-off-by: Chongyu Zhu <i@lembacon.com>
17 lines
497 B
Ruby
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.2.0/wp-cli-2.2.0.phar"
|
|
sha256 "71ee8a2449f17bf8a6fd385872cbdc3cc263107f7767a3b55f6c6e2ef5920368"
|
|
|
|
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
|