souls 1.21.9 → 1.21.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1cd807f4db6dbc1d398cfb9f62c2d8c3f31f1cddd0d6861114e0ba612294d344
4
- data.tar.gz: 46e73736e7402312e43a2afb60c768f7ad2d4f2725050ea016a7cc8b0695e6cc
3
+ metadata.gz: 182f9d4646667b3f0f4c8898eeda83bad785121e60f3cd61884423b5dc49c6ff
4
+ data.tar.gz: 2e008b33b65c65fe03dedadea27585eed4cfe7ed44c4c29947c71eac4c7e0e8a
5
5
  SHA512:
6
- metadata.gz: 6fa72844bec0cb42baabe68cc55a7df9f873adb9b601cd3026830b89fb0d2e483f334fa256a0ffc9a6d114607a26fa5788975885c3ea89c90326c6e40b07e90a
7
- data.tar.gz: cd57323fa304ca071bdc27e882349262b4c3f79adde614e0016c5e92d8820eab341aa410cc85096136abc89af08f9c557769bd97af417246ae138bacb6b415f4
6
+ metadata.gz: 542150eb3f93979798f4933f70c7b743c57d24f88f2a71ae7a52a0dcf3158758d5400f879bd3ab2b3ff283e9357cf62cf2ecc4a12890e8bb89d4ec342ca06284
7
+ data.tar.gz: d2bc75fa2d3b5f9fd988182f9e2e43d5ac24d9d10e18c95169389f7b9ff090d32f516eef1ed3364f23bac494ab8c6d6246b23545fb997920bf832c244c80982c
@@ -3,6 +3,7 @@ module SOULs
3
3
  desc "awake [url]", "Set Ping by Google Cloud Scheduler: Cron e.g. '0 10 * * *' or 'every 10 hours'"
4
4
  def awake
5
5
  app_name = SOULs.configuration.app.gsub("_", "-")
6
+ project_id = SOULs.configuration.project_id
6
7
  worker_names = SOULs.configuration.workers.map { |f| f[:name] }
7
8
  services = ["souls-#{app_name}-api"]
8
9
  worker_names.each { |worker| services << "souls-#{app_name}-#{worker}" }
@@ -11,10 +12,10 @@ module SOULs
11
12
  service = prompt.select("Select Service?", services)
12
13
  cron = prompt.ask("Cron Schedule?", default: "every 10 mins")
13
14
 
14
- url = SOULs::GcloudRun.new.get_endpoint(service)
15
+ url = SOULs::CloudRun.new.get_endpoint(service)
15
16
  system(
16
17
  "gcloud scheduler jobs create http #{app_name}-awake \
17
- --schedule '#{cron}' --uri #{url} --http-method GET"
18
+ --schedule '#{cron}' --uri #{url} --project=#{project_id} --http-method GET"
18
19
  )
19
20
  end
20
21
 
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module SOULs
2
- VERSION = "1.21.9".freeze
2
+ VERSION = "1.21.10".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.21.9
1
+ 1.21.10
@@ -1 +1 @@
1
- 1.21.9
1
+ 1.21.10
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souls
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.21.9
4
+ version: 1.21.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI