mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
20 lines
694 B
Ruby
20 lines
694 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 '3.79.7'
|
|
license 'MIT'
|
|
compatibility 'all'
|
|
source_url 'SKIP'
|
|
|
|
depends_on 'php74' unless File.exist? "#{CREW_PREFIX}/bin/php"
|
|
|
|
def self.install
|
|
downloader "https://github.com/platformsh/platformsh-cli/releases/download/v#{version}/platform.phar",
|
|
'cfe3b0ae7c3a2929fe7ddc51ed4619084c52924c3c6055826cd7c03da44a4d66'
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
|
FileUtils.install 'platform.phar', "#{CREW_DEST_PREFIX}/bin/platform", mode: 0o755
|
|
end
|
|
end
|