Sha256: 6e0d429e4868f7a9913b3431cefea49519d9e07f0048c956008dbccdc1c9062c
Contents?: true
Size: 728 Bytes
Versions: 9
Compression:
Stored size: 728 Bytes
Contents
module Souls module Gcloud module Run class << self def awake(app_name: "", url: "") app_name = Souls.configuration.app if app_name.blank? system( "gcloud scheduler jobs create http #{app_name}-awake --schedule '0,10,20,30,40,50 * * * *' --uri #{url} --http-method GET" ) end def list(project_id: "") project_id = Souls.configuration.project_id if project_id.blank? system("gcloud run services list --project #{project_id} --platform managed") end def get_endpoint(worker_name: "") `gcloud run services list | grep #{worker_name} | awk '{print $4}'` end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems