souls 0.35.1 → 0.35.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dacb9b58643bb6a26a4cb2a994296c6c1ed81a761ff5244141d28fdf1343958a
|
|
4
|
+
data.tar.gz: ed557b37c4e6c39471795b1b7fc08e1f75fae7521179099738a2becb3b630eb5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6a61f4d5a83f359dfe38e787e99584e00a0f245d810058468185843c7f13559cc9a4323bcd718f5130973c14cf9bd09bccbc606ebc793ae0183fbf14b5406070
|
|
7
|
+
data.tar.gz: 208239db7f27943c5cd0b4ac2cb13fec2e3af7c7a76bce43cdc044d51ba66ea235b4549cb4e0d5ef94930a1ebf613aa15218033c1151b2ec31a53fb81706ba70
|
|
@@ -2,6 +2,16 @@ module Souls
|
|
|
2
2
|
module Gcloud
|
|
3
3
|
module Compute
|
|
4
4
|
class << self
|
|
5
|
+
def setup_vpc_nat(app_name: "", region: "asia-northeast1", range: "10.124.0.0/28")
|
|
6
|
+
create_network(app_name: app_name)
|
|
7
|
+
create_firewall_tcp(app_name: app_name, range: range)
|
|
8
|
+
create_firewall_ssh(app_name: app_name, range: range)
|
|
9
|
+
create_subnet(app_name: app_name, region: region, range: range)
|
|
10
|
+
create_connector(app_name: app_name, region: region)
|
|
11
|
+
create_external_ip(app_name: app_name, region: region)
|
|
12
|
+
create_nat(app_name: app_name, region: region)
|
|
13
|
+
end
|
|
14
|
+
|
|
5
15
|
def create_network(app_name: "")
|
|
6
16
|
app_name = Souls.configuration.app if app_name.blank?
|
|
7
17
|
system("gcloud compute networks create #{app_name}")
|
|
@@ -26,7 +36,7 @@ module Souls
|
|
|
26
36
|
def create_subnet(app_name: "", region: "asia-northeast1", range: "10.124.0.0/28")
|
|
27
37
|
app_name = Souls.configuration.app if app_name.blank?
|
|
28
38
|
system(
|
|
29
|
-
"gcloud compute networks subnets create #{app_name}-subnet
|
|
39
|
+
"gcloud compute networks subnets create #{app_name}-subnet \
|
|
30
40
|
--range=#{range} --network=#{app_name} --region=#{region}"
|
|
31
41
|
)
|
|
32
42
|
end
|
data/lib/souls/version.rb
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.14.
|
|
1
|
+
0.14.2
|
|
@@ -1 +1 @@
|
|
|
1
|
-
0.14.
|
|
1
|
+
0.14.2
|
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: 0.35.
|
|
4
|
+
version: 0.35.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- POPPIN-FUMI
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: exe
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2021-08-
|
|
13
|
+
date: 2021-08-31 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activesupport
|