Terminus 2.6.1 => 3.0.1 (#6468)

This commit is contained in:
Ed Reel
2021-12-09 06:08:55 -06:00
committed by GitHub
parent f5ebee7bd0
commit 076107dd2d

View File

@@ -3,7 +3,7 @@ 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.6.1'
version '3.0.1'
license 'MIT'
compatibility 'all'
source_url 'SKIP'
@@ -12,7 +12,7 @@ class Terminus < Package
def self.install
system "curl -#LO 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') ) == '97254f4aa4fb8fc8a900a2e22ab449d95d8ca7387c3916e041a1ea946a49d34b'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('terminus.phar') ) == 'b3a444bcb5870cb9352f7708aa4e4212b4113ec6662b13cd123a6b0f2f958f40'
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.install 'terminus.phar', "#{CREW_DEST_PREFIX}/bin/terminus", mode: 0o755
end