Commit 2cc8a27d authored by Ed Reel's avatar Ed Reel Committed by Chris Thurber

Update wp_cli from 2.3.0 to 2.4.0 (#3766)

parent a2b7f9f0
......@@ -3,15 +3,15 @@ require 'package'
class Wp_cli < Package
description 'The command line interface for WordPress'
homepage 'https://wp-cli.org/'
version '2.3.0'
source_url 'https://raw.githubusercontent.com/wp-cli/wp-cli/v2.3.0/VERSION'
source_sha256 'a42caf4a54bbbe27aa45b6efbc6356c5e299b19763e728b6cdb7201b02ebbe36'
version '2.4.0'
source_url 'https://raw.githubusercontent.com/wp-cli/wp-cli/v2.4.0/VERSION'
source_sha256 '2ad7b0c3f0ede58c3165b7a8a5479e890a758d39bfe8683eaef50ce6afad7232'
depends_on 'php7' unless File.exists? "#{CREW_PREFIX}/bin/php"
def self.build
system "wget https://github.com/wp-cli/wp-cli/releases/download/v#{version}/wp-cli-#{version}.phar"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("wp-cli-#{version}.phar") ) == '3c5edf945846f650846b973a22645823c7f5e00b0e393f921397d26ee11f3770'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("wp-cli-#{version}.phar") ) == '139dcc86ed39ef751679efbdaf57a53528f1afda972c4e3622667cc27397b540'
end
def self.install
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment