2018-03-04 09:07:45 +00:00
|
|
|
class WpCli < Formula
|
|
|
|
desc "Command-line interface for WordPress"
|
|
|
|
homepage "https://wp-cli.org/"
|
2018-04-21 14:31:32 +00:00
|
|
|
url "https://github.com/wp-cli/wp-cli/releases/download/v1.5.1/wp-cli-1.5.1.phar"
|
|
|
|
sha256 "c1114450e647ca0c72afcbb6d02b577a55ec9915a510399579626c960d5dd2d2"
|
2018-03-04 09:07:45 +00:00
|
|
|
|
|
|
|
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
|