souls 1.6.14 → 1.6.15
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3f025bcadbd709efbfe575c70bd72c7d097afe3f3ffff21afb6eed5ce7ff6a4
|
4
|
+
data.tar.gz: 38abcac4ffeca852239ebc179c3384638525c46cea878753d79e2a620364ca68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfce0b57fd661955b8d0ee99b9ddcf4b6dbd3a28e856177c5825d9da62980a6cfdd35e3001b01e280a47966ee18ce89845c2023bc6f9e0d96851547e68db332e
|
7
|
+
data.tar.gz: 6ec755000b1d602ae2314cf5cc225e34a041f5a3081edeed5e0f60f9c587ea03fb2cf58b0f7e70aae0690a039568659608636c04b6af3c41aa7ba4119f765ba9
|
@@ -3,6 +3,7 @@ module Souls
|
|
3
3
|
desc "setup_vpc_nat", "Set Up VPC Cloud Nat"
|
4
4
|
method_option :range, default: "10.124.0.0/28", aliases: "--range", desc: "GCP VPC Network IP Range"
|
5
5
|
def setup_vpc_nat
|
6
|
+
puts(Paint["Initializing NAT Setup This process might take about 5 min...", :yellow])
|
6
7
|
create_network
|
7
8
|
create_firewall_tcp(range: options[:range])
|
8
9
|
create_firewall_ssh
|
@@ -11,7 +12,10 @@ module Souls
|
|
11
12
|
create_router
|
12
13
|
create_external_ip
|
13
14
|
create_nat
|
14
|
-
|
15
|
+
Souls::Sql.new.invoke(:setup_private_ip)
|
16
|
+
update_workflows
|
17
|
+
puts(Paint["Cloud NAT is All Set!", :green])
|
18
|
+
true
|
15
19
|
rescue Thor::Error => e
|
16
20
|
raise(Thor::Error, e)
|
17
21
|
end
|
@@ -88,40 +92,24 @@ module Souls
|
|
88
92
|
system("gcloud compute networks list")
|
89
93
|
end
|
90
94
|
|
91
|
-
def
|
95
|
+
def update_workflows
|
92
96
|
app_name = Souls.configuration.app
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
puts(line)
|
110
|
-
welcome = Paint["VPC Network is All Set!", :white]
|
111
|
-
puts(welcome)
|
112
|
-
puts(line)
|
113
|
-
endroll = <<~TEXT
|
114
|
-
|
115
|
-
Edit `.github/workflow/worker.yml`
|
116
|
-
|
117
|
-
Add these 2 options in \n`- name: Deploy to Cloud Run` step
|
118
|
-
\n--vpc-connector=#{app_name}-connector \
|
119
|
-
\n--vpc-egress=all \
|
120
|
-
|
121
|
-
TEXT
|
122
|
-
cd = Paint[endroll, :white]
|
123
|
-
puts(cd)
|
124
|
-
puts(line)
|
97
|
+
Dir.chdir(Souls.get_mother_path.to_s) do
|
98
|
+
api_workflow_path = ".github/workflows/api.yml"
|
99
|
+
worker_workflow_paths = Dir[".github/workflows/*.yml"]
|
100
|
+
worker_workflow_paths.delete(api_workflow_path)
|
101
|
+
File.open(api_workflow_path, "a") do |line|
|
102
|
+
line.write(" \\ \n --vpc-connector=#{app_name}-connector")
|
103
|
+
end
|
104
|
+
puts(Paint % ["Updated file! : %{white_text}", :green, { white_text: [api_workflow_path.to_s, :white] }])
|
105
|
+
worker_workflow_paths.each do |file_path|
|
106
|
+
File.open(file_path, "a") do |line|
|
107
|
+
line.write(" \\ --vpc-connector=#{app_name}-connector \\")
|
108
|
+
line.write("\n --vpc-egress=all")
|
109
|
+
end
|
110
|
+
puts(Paint % ["Updated file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
|
111
|
+
end
|
112
|
+
end
|
125
113
|
end
|
126
114
|
end
|
127
115
|
end
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.15
|
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.15
|
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.6.
|
4
|
+
version: 1.6.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- POPPIN-FUMI
|
@@ -232,7 +232,7 @@ licenses:
|
|
232
232
|
metadata:
|
233
233
|
homepage_uri: https://souls.elsoul.nl
|
234
234
|
source_code_uri: https://github.com/elsoul/souls
|
235
|
-
changelog_uri: https://github.com/elsoul/souls/releases/tag/v1.6.
|
235
|
+
changelog_uri: https://github.com/elsoul/souls/releases/tag/v1.6.15
|
236
236
|
post_install_message:
|
237
237
|
rdoc_options: []
|
238
238
|
require_paths:
|