Sha256: fb2fa85f9b9dbd06d178f8e09550a0d31514a12b3939fce269c75a9c85d8166e

Contents?: true

Size: 418 Bytes

Versions: 27

Compression:

Stored size: 418 Bytes

Contents

module Souls
  module Gcloud
    class << self
      def run_awake(app_name: "souls-app", url: "")
        system(
          "gcloud scheduler jobs create http #{app_name}-awake
          --schedule '0,10,20,30,40,50 * * * *' --uri #{url} --http-method GET"
        )
      end

      def run_list(project_id: "souls-app")
        system("gcloud run services list --project #{project_id}")
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
souls-0.31.1 lib/souls/cli/gcloud/run.rb
souls-0.31.0 lib/souls/cli/gcloud/run.rb
souls-0.30.11 lib/souls/cli/gcloud/run.rb
souls-0.30.10 lib/souls/cli/gcloud/run.rb
souls-0.30.9 lib/souls/gcloud/run.rb
souls-0.30.8 lib/souls/gcloud/run.rb
souls-0.30.7 lib/souls/gcloud/run.rb
souls-0.30.6 lib/souls/gcloud/run.rb
souls-0.30.5 lib/souls/gcloud/run.rb
souls-0.30.4 lib/souls/gcloud/run.rb
souls-0.30.3 lib/souls/gcloud/run.rb
souls-0.30.2 lib/souls/gcloud/run.rb
souls-0.30.1 lib/souls/gcloud/run.rb
souls-0.30.0 lib/souls/gcloud/run.rb
souls-0.29.10 lib/souls/gcloud/run.rb
souls-0.29.9 lib/souls/gcloud/run.rb
souls-0.29.8 lib/souls/gcloud/run.rb
souls-0.29.7 lib/souls/gcloud/run.rb
souls-0.29.6 lib/souls/gcloud/run.rb
souls-0.29.5 lib/souls/gcloud/run.rb