souls 1.5.2 → 1.5.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: 4b723d5fe6fdbb86fb785d308781dc7d0c5a13fcf6db3e714141a4d97c03d9d9
4
- data.tar.gz: aa7ba7e1d4848499fa60ce609fada98d04167890f45275e485e1abe385a2fb36
3
+ metadata.gz: 72186fdb6eb5c908f3862bbc5951c4d898a18119c9c86f87ec62daa0930b6ca7
4
+ data.tar.gz: bc96b74682d102ea462ea98f6680e87c722a9a1b59fb232713820dafa6f08edb
5
5
  SHA512:
6
- metadata.gz: 2e141c28f1b61173a62faa5dbfcf1cb1d3e98d1ba68579ec1111583c03f34f43fec5a674caea856daf13912b3a0e0a7921c569cdf1b1d9de798fe1a70fa63ac1
7
- data.tar.gz: 4ed055384cad39d2f1d82b7457cc8d3d08a3226e9af975ddb93b1340dc0e71c4939e483d6612d54b5a82ea49807618fc263042d96a674fddca3c4e8e77a19340
6
+ metadata.gz: 8cdca5ac960e5be661ced4c27516b369339ccc27bd0c65de34da007fb5940b7d6bca942773de295d384230a09ae828b30bfe88d52c7bef394342bd40a1d85799
7
+ data.tar.gz: 5176d24f7839f3673a8ab22e057de99481a421f87e65b442f7147c8180bc8d188ca60cf6d01b424f7d20a114150592679a9c934356415a5bde353aea8137df47
@@ -23,7 +23,7 @@ module Souls
23
23
  desc "get_endpoint", "Show Worker's Endpoint"
24
24
  def get_endpoint(worker_name: "")
25
25
  project_id = Souls.configuration.project_id
26
- `gcloud run services list --project #{project_id} | grep -x #{worker_name} | awk '{print $4}'`
26
+ `gcloud run services list --project #{project_id} | grep #{worker_name} | awk '{print $4}'`
27
27
  rescue Thor::Error => e
28
28
  raise(Thor::Error, e)
29
29
  end
@@ -13,12 +13,13 @@ module Souls
13
13
  db_type = options[:mysql] ? "MYSQL_8_0" : "POSTGRES_13"
14
14
 
15
15
  zone = "#{region}-b"
16
+ system("gcloud config set project #{project_id}")
16
17
  system(
17
18
  "gcloud sql instances create #{instance_name} \
18
19
  --database-version=#{db_type} --cpu=1 --memory=4096MB --zone=#{zone} \
19
20
  --root-password='#{password}' --database-flags cloudsql.iam_authentication=on"
20
21
  )
21
- instance_ip = `gcloud sql instances list | grep -x #{instance_name} | awk '{print $5}'`.strip
22
+ instance_ip = `gcloud sql instances list | grep #{instance_name} | awk '{print $5}'`.strip
22
23
  Dir.chdir(Souls.get_api_path.to_s) do
23
24
  file_path = ".env"
24
25
  File.open(file_path, "w") do |line|
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.5.2".freeze
2
+ VERSION = "1.5.3".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.5.2
1
+ 1.5.3
@@ -1 +1 @@
1
- 1.5.2
1
+ 1.5.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.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI