Commit af81f278 authored by Ed Reel's avatar Ed Reel Committed by GitHub

Update terminus from 2.3.0 to 2.5.0 (#5190)

parent eacf6f9a
......@@ -3,16 +3,16 @@ require 'package'
class Terminus < Package
description 'The Pantheon CLI — a standalone utility for performing operations on the Pantheon Platform'
homepage 'https://github.com/pantheon-systems/terminus'
version '2.3.0'
version '2.5.0'
compatibility 'all'
source_url 'https://raw.githubusercontent.com/pantheon-systems/terminus/2.3.0/README.md'
source_sha256 '52e99c6db48987b1533d7c820ce77e27f416950347964885210bca7d2ac83c19'
source_url "https://raw.githubusercontent.com/pantheon-systems/terminus/#{version}/README.md"
source_sha256 '299d011cbd856ba92d22d309efbdb01a3b93bd85eb727512c2bf83eda08dc329'
depends_on 'php74' unless File.exists? "#{CREW_PREFIX}/bin/php"
def self.install
system "wget https://github.com/pantheon-systems/terminus/releases/download/#{version}/terminus.phar"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('terminus.phar') ) == 'fda289eb438f1b2a899b17879497d531c5234011e183d09953c8e54a795c6bca'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('terminus.phar') ) == '71da25da6dc1813d9e3ff129964466e9a14687c2e5ea4e52267f02f28fcc3e27'
system "install -Dm755 terminus.phar #{CREW_DEST_PREFIX}/bin/terminus"
end
end
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