Files
chromebrew/packages/platformsh.rb
Ed Reel c48a6243d1 Platformsh 3.79.7 => 4.0.2 (#7902)
Co-authored-by: chronos <noreply@github.com>
2023-02-06 04:20:12 +08:00

19 lines
662 B
Ruby

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.0.2'
license 'MIT'
compatibility 'all'
source_url 'https://github.com/platformsh/legacy-cli/releases/download/v4.0.2/platform.phar'
source_sha256 '187e147f2f4048442ea0a57c512d3cd49ca6483505c925c9ba2c6fd6447941ff'
depends_on 'php81' unless File.exist? "#{CREW_PREFIX}/bin/php"
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.install 'platform.phar', "#{CREW_DEST_PREFIX}/bin/platform", mode: 0o755
end
end