mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
19 lines
662 B
Ruby
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
|