Commit 27b533b8 authored by Gangstead's avatar Gangstead Committed by GitHub

Merge pull request #1567 from uberhacker/update-platformsh-package

Update platformsh from 3.19.0 to 3.26.0
parents e9f43e99 052ddea8
......@@ -3,30 +3,20 @@ require 'package'
class Platformsh < Package
description 'The unified tool for managing your Platform.sh services from the command line.'
homepage 'https://docs.platform.sh/overview/cli.html'
version '3.19.0'
source_url 'https://github.com/platformsh/platformsh-cli/archive/v3.19.0.tar.gz'
source_sha256 'c8f79f2141bdf5f6bed11376da773f9d90e8b3ddc059a1159cf11a0929aa6aff'
version '3.26.0'
source_url 'https://github.com/platformsh/platformsh-cli/archive/v3.26.0.tar.gz'
source_sha256 '57c639c587c5a0254c022cf9954054aa3092b8350d891aaf399ff4f3a614c5c0'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/platformsh-3.19.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/platformsh-3.19.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/platformsh-3.19.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/platformsh-3.19.0-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '1fa8e9f4c8f85ee29e6fc43120d725201afe4e39b2a87104d599a742beca35fa',
armv7l: '1fa8e9f4c8f85ee29e6fc43120d725201afe4e39b2a87104d599a742beca35fa',
i686: '7329085c462c01e75ae432ec1edd9e1ba3467ef285e2da50da5c4d2c3e7092ac',
x86_64: 'c128bf0ba9aad4dcbeb5a54ba8e45b75a44a4e7c4824392e23cb6c2e3c0c0098',
})
depends_on 'php7' unless File.exists? '/usr/local/bin/php'
depends_on 'php7' unless File.exists? "#{CREW_PREFIX}/bin/php"
def self.install
system "wget https://github.com/platformsh/platformsh-cli/releases/download/v3.19.0/platform.phar"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('platform.phar') ) == 'ca4080182458fb18244bf8d93a36695146a737eb5acd35be56d65161af5a0dd7'
system "chmod +x platform.phar"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp platform.phar #{CREW_DEST_DIR}/usr/local/bin/platform"
system "wget https://github.com/platformsh/platformsh-cli/releases/download/v3.26.0/platform.phar"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('platform.phar') ) == '8343ce8235535f2c388a5ed0f0a321debc9a1838fd53c006c75445b2e099cbe9'
system "install -Dm755 platform.phar #{CREW_DEST_PREFIX}/bin/platform"
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