souls 1.4.7 → 1.4.8
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 +4 -4
- data/README.md +3 -0
- data/lib/souls/cli/gcloud/compute/index.rb +1 -1
- data/lib/souls/cli/gcloud/iam/index.rb +1 -1
- data/lib/souls/cli/gcloud/sql/index.rb +4 -3
- data/lib/souls/version.rb +1 -1
- data/lib/souls/versions/.souls_api_version +1 -1
- data/lib/souls/versions/.souls_worker_version +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f08c7ec99a1de1b84996141a2ac4c47955f116d97e868bca9e555e61a3d5cf42
|
|
4
|
+
data.tar.gz: c92858cdab4dc6ee344340df0c8f76fad89d307e127c11271af81f33b38a994c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 189723b20b0400449b4969f113f6f2c6699d6b1b3fa7997aa1d7b55524f7cb8947d42e063f72992cf7a5793b6f3399e9eab4a88cf35fa8637c2573f5c270d920
|
|
7
|
+
data.tar.gz: 7d3be8283464cb5d4196cc34d2207326ab8fde1e3ac9cb24c2a676ef101d7cf9c06704a6b930c40141e9cee1620978abdaf160e3fe0a682a95e1dae8adbb4592
|
data/README.md
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
<a aria-label="Ruby logo" href="https://el-soul.com">
|
|
5
5
|
<img src="https://badgen.net/badge/icon/Made%20by%20ELSOUL?icon=ruby&label&color=black&labelColor=black">
|
|
6
6
|
</a>
|
|
7
|
+
<a href="https://twitter.com/intent/follow?screen_name=SOULsOpenSource">
|
|
8
|
+
<img src="https://img.shields.io/twitter/follow/SOULsOpenSource.svg?label=Follow%20@SOULsOpenSource" alt="Follow @SOULsOpenSource" />
|
|
9
|
+
</a>
|
|
7
10
|
<br/>
|
|
8
11
|
|
|
9
12
|
<a aria-label="Ruby Gem version" href="https://rubygems.org/gems/souls">
|
|
@@ -2,9 +2,10 @@ module Souls
|
|
|
2
2
|
class Sql < Thor
|
|
3
3
|
desc "create_instance", "Create Google Cloud SQL - PostgreSQL13"
|
|
4
4
|
method_option :region, default: "", aliases: "--region", desc: "Google Cloud Platform Region"
|
|
5
|
-
method_option :root_password, default: "", aliases: "--root-password", desc: "Set Cloud SQL Root Password"
|
|
6
5
|
method_option :mysql, type: :boolean, default: false, aliases: "--mysql", desc: "Set Cloud SQL Type to MySQL"
|
|
7
6
|
def create_instance
|
|
7
|
+
prompt = TTY::Prompt.new
|
|
8
|
+
password = prompt.mask("Set DB PassWord:")
|
|
8
9
|
app_name = Souls.configuration.app
|
|
9
10
|
project_id = Souls.configuration.project_id
|
|
10
11
|
instance_name = Souls.configuration.instance_name if instance_name.blank?
|
|
@@ -15,14 +16,14 @@ module Souls
|
|
|
15
16
|
system(
|
|
16
17
|
"gcloud sql instances create #{instance_name} \
|
|
17
18
|
--database-version=#{db_type} --cpu=1 --memory=3750MB --zone=#{zone} \
|
|
18
|
-
--root-password='#{
|
|
19
|
+
--root-password='#{password}' --database-flags cloudsql.iam_authentication=on"
|
|
19
20
|
)
|
|
20
21
|
Dir.chdir(Souls.get_api_path.to_s) do
|
|
21
22
|
file_path = ".env"
|
|
22
23
|
File.open(file_path, "w") do |line|
|
|
23
24
|
line.write(<<~TEXT)
|
|
24
25
|
SOULS_DB_HOST=#{get_sql_ip.strip}
|
|
25
|
-
SOULS_DB_PW=#{
|
|
26
|
+
SOULS_DB_PW=#{password}
|
|
26
27
|
SOULS_DB_USER=postgres
|
|
27
28
|
SOULS_GCP_PROJECT_ID=#{project_id}
|
|
28
29
|
SOULS_SECRET_KEY_BASE="#{SecureRandom.base64(64)}"
|
data/lib/souls/version.rb
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.4.
|
|
1
|
+
1.4.8
|
|
@@ -1 +1 @@
|
|
|
1
|
-
1.4.
|
|
1
|
+
1.4.8
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: souls
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- POPPIN-FUMI
|
|
8
8
|
- KishiTheMechanic
|
|
9
9
|
- James Neve
|
|
10
|
-
autorequire:
|
|
10
|
+
autorequire:
|
|
11
11
|
bindir: exe
|
|
12
12
|
cert_chain: []
|
|
13
13
|
date: 2021-11-08 00:00:00.000000000 Z
|
|
@@ -232,7 +232,7 @@ metadata:
|
|
|
232
232
|
homepage_uri: https://souls.elsoul.nl
|
|
233
233
|
source_code_uri: https://github.com/elsoul/souls
|
|
234
234
|
changelog_uri: https://github.com/elsoul/souls
|
|
235
|
-
post_install_message:
|
|
235
|
+
post_install_message:
|
|
236
236
|
rdoc_options: []
|
|
237
237
|
require_paths:
|
|
238
238
|
- lib
|
|
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
248
248
|
version: '0'
|
|
249
249
|
requirements: []
|
|
250
250
|
rubygems_version: 3.2.22
|
|
251
|
-
signing_key:
|
|
251
|
+
signing_key:
|
|
252
252
|
specification_version: 4
|
|
253
253
|
summary: Build Serverless Apps faster like Rails. Powered by Ruby GraphQL, RBS/Steep,
|
|
254
254
|
Active Record, RSpec, RuboCop, and Google Cloud.
|