souls 1.7.38 → 1.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0bd9668e1cdb91dab584271000e07b43493b4bc6e91dd5e5946f76204f7cbf48
4
- data.tar.gz: 8605e94211d1808bb9927db8404290f2bd6f8bac010993eeda191da9c6fe4c75
3
+ metadata.gz: d55dd599d811c4fa2007380b12599204103f19911d9b44f1b68bf108037d9a9f
4
+ data.tar.gz: 32c348a47de83e9be4a7af1fdf320041b7e5e32636832add8e679957cece7ebb
5
5
  SHA512:
6
- metadata.gz: 80c349ac32cab98518d2819c05c810744c191d7d3241b0240803b07f06ea4b56181a7f46f0305c702c05494fc4c7b9f15e370c0cc1293f0dea037ba771ecaca3
7
- data.tar.gz: ae61e91eb3c0349d3ef267d9a7bf927833c08834e14022a778026684bb9338fe8ea15648a0257674b9a9ae6ea00906dd23623244567781c5ab9c6546a1becb83
6
+ metadata.gz: '099dd03104a52ae91c08c09e7287a0b0373ecc784c0a6728ef20d75f9917525dbb040217975895ae456a518c7519c58c0b987f864037bd842facd3c8502eaddb'
7
+ data.tar.gz: 8ed5c22f34b5741a2487df2016ddaa40530a16900acfdf216c671219cdc5db1281405e0a4f42bc10144b45d6e3d1e49d0e5bfbb092acfdbdaaf29ced739250f2
@@ -14,16 +14,14 @@ module Souls
14
14
 
15
15
  desc "list", "Show Google Cloud Run List"
16
16
  def list
17
- project_id = Souls.configuration.project_id
18
- system("gcloud run services list --project #{project_id} --platform managed")
17
+ system("gcloud run services list --platform managed")
19
18
  rescue Thor::Error => e
20
19
  raise(Thor::Error, e)
21
20
  end
22
21
 
23
22
  desc "get_endpoint", "Show Worker's Endpoint"
24
23
  def get_endpoint(worker_name: "")
25
- project_id = Souls.configuration.project_id
26
- `gcloud run services list --project #{project_id} | grep #{worker_name} | awk '{print $4}'`
24
+ `gcloud run services list --platform managed | grep #{worker_name} | awk '{print $4}'`
27
25
  rescue Thor::Error => e
28
26
  raise(Thor::Error, e)
29
27
  end
@@ -9,7 +9,7 @@ module Souls
9
9
  key_and_value = line.match(/([A-Z_]+)="?([^"]*)"?/)
10
10
  next if key_and_value.nil?
11
11
 
12
- system("gh secret set #{key_and_value[1]} -b \"#{key_and_value[2]}\"")
12
+ system("gh secret set #{key_and_value[1]} -b \"#{key_and_value[2].strip}\"")
13
13
  end
14
14
  end
15
15
  end
@@ -30,8 +30,9 @@ module Souls
30
30
 
31
31
  desc "watch", "Watch GitHub Actions Workflow"
32
32
  def watch
33
- run_id = `gh run list | grep Mailer | awk '{print $7}'`.strip
34
- raise(StandardError, "No workflow is running.") if run_id.include?("push")
33
+ run_list = `gh run list | grep in_progress | awk '{print $8}'`
34
+ run_id = run_list.split("\n")
35
+ raise(StandardError, "No workflow is running.") if run_id.empty?
35
36
 
36
37
  system("gh run watch #{run_id}")
37
38
  end
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.7.38".freeze
2
+ VERSION = "1.8.3".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.7.38
1
+ 1.8.3
@@ -1 +1 @@
1
- 1.7.38
1
+ 1.8.3
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.7.38
4
+ version: 1.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI