Platformsh 4.18.1 => 5.0.14 (#9908)

This commit is contained in:
Ed Reel
2024-06-05 16:03:59 -05:00
committed by GitHub
parent a4494249e4
commit 3f49251554
3 changed files with 11 additions and 4 deletions

View File

@@ -0,0 +1,3 @@
/usr/local/bin/platform
/usr/local/etc/bash.d/platform.bash
/usr/local/etc/bash.d/upsun.bash

View File

@@ -1 +1,3 @@
/usr/local/bin/platform
/usr/local/etc/bash.d/platform.bash
/usr/local/etc/bash.d/upsun.bash

View File

@@ -3,17 +3,19 @@ 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 '4.18.1'
version '5.0.14'
license 'MIT'
compatibility 'x86_64 aarch64 armv7l'
source_url 'https://github.com/platformsh/legacy-cli/releases/download/v4.18.1/platform.phar'
source_sha256 '5933787472548eb6d298deb226c0b05db132825e68386d3f41fe14efd28ea8a2'
source_url "https://github.com/platformsh/cli/releases/download/#{version}/platform_#{version}_linux_amd64.tar.gz"
source_sha256 '8aa453be78808427af14780b9e4fe5c5c0f3c40ea251910257463ec14f1e820e'
depends_on 'php83' unless File.exist? "#{CREW_PREFIX}/bin/php"
no_compile_needed
def self.install
FileUtils.install 'platform.phar', "#{CREW_DEST_PREFIX}/bin/platform", mode: 0o755
FileUtils.install 'platform', "#{CREW_DEST_PREFIX}/bin/platform", mode: 0o755
FileUtils.install 'completion/bash/platform.bash', "#{CREW_DEST_PREFIX}/etc/bash.d/platform.bash", mode: 0o644
FileUtils.install 'completion/bash/upsun.bash', "#{CREW_DEST_PREFIX}/etc/bash.d/upsun.bash", mode: 0o644
end
end