sumomo 0.10.6 → 0.10.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sumomo/network.rb +10 -5
- data/lib/sumomo/stack.rb +18 -1
- data/lib/sumomo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38ff59b24bcc8ac1ae0db317e34f0faea1b436c9ae0eeffc4b4bedf66d9117cf
|
4
|
+
data.tar.gz: bb0e67f00842a98ee526e4ddcc911e4fe86f70958a08ebde6030e12e23703199
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1df726fd7c2d6ca7881c16cb7fa40ed3285dc5222715cb080bf9362991c9f8a730e4d68e44558b3930afa51ce5f8e46458d937ece74c4757f7703ef16108014a
|
7
|
+
data.tar.gz: d267710b9c8853a94a21c107601053e26dafe966f84f61a7b0a82f4f93b2a43db8d7ce5d1cc03adb86e6b29fa1949d52a9a606f3bdff4225491515c4c9033715
|
data/lib/sumomo/network.rb
CHANGED
@@ -31,7 +31,10 @@ module Sumomo
|
|
31
31
|
|
32
32
|
vpc = use_vpc || make_vpc
|
33
33
|
|
34
|
-
gateway = use_gateway
|
34
|
+
gateway = use_gateway
|
35
|
+
if gateway.nil?
|
36
|
+
gateway = make_gateway
|
37
|
+
end
|
35
38
|
|
36
39
|
attachment = nil
|
37
40
|
|
@@ -50,10 +53,12 @@ module Sumomo
|
|
50
53
|
tag 'Name', call('Fn::Join', '-', ['public', ref('AWS::StackName')])
|
51
54
|
end
|
52
55
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
56
|
+
if gateway != false
|
57
|
+
make 'AWS::EC2::Route' do
|
58
|
+
RouteTableId inet_route_table
|
59
|
+
DestinationCidrBlock '0.0.0.0/0'
|
60
|
+
GatewayId gateway
|
61
|
+
end
|
57
62
|
end
|
58
63
|
|
59
64
|
last_unused_number = 0
|
data/lib/sumomo/stack.rb
CHANGED
@@ -116,6 +116,22 @@ module Sumomo
|
|
116
116
|
fun
|
117
117
|
end
|
118
118
|
|
119
|
+
def node_modules
|
120
|
+
dir = File.join(Gem.loaded_specs['sumomo'].full_gem_path, 'data', 'sumomo', 'api_modules', 'node_modules')
|
121
|
+
|
122
|
+
files = Dir["#{dir}/**/*.*"]
|
123
|
+
|
124
|
+
files.map do |relpath|
|
125
|
+
fullpath = File.realpath(relpath)
|
126
|
+
name = relpath.sub(/^#{dir}/, 'node_modules')
|
127
|
+
|
128
|
+
{
|
129
|
+
name: name,
|
130
|
+
path: fullpath
|
131
|
+
}
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
119
135
|
def define_custom_resource(name: nil, code:, role: nil)
|
120
136
|
name ||= make_default_resource_name('CustomResource')
|
121
137
|
role ||= custom_resource_exec_role
|
@@ -127,7 +143,8 @@ module Sumomo
|
|
127
143
|
{
|
128
144
|
name: 'index.js',
|
129
145
|
code: File.read(File.join(Gem.loaded_specs['sumomo'].full_gem_path, 'data', 'sumomo', 'custom_resource_utils.js')).sub('{{ CODE }}', code)
|
130
|
-
}
|
146
|
+
},
|
147
|
+
*node_modules
|
131
148
|
],
|
132
149
|
description: "CF Resource Custom::#{name}",
|
133
150
|
function_key: "cloudformation/custom_resources/function_#{name}"
|
data/lib/sumomo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sumomo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Siaw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|