sumomo 0.10.4 → 0.10.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sumomo/stack.rb +19 -2
- data/lib/sumomo/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d7f9a1223b33036b523a0f1bde874c4069b56aaeabe02c09019a2a64291b631
|
4
|
+
data.tar.gz: c54995ebec8266d4bf76c3630890a5cb780a3edaf5a3fc1089b907bfb1a6907c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e5a8c82bb0f4a5652426a6bb881a744a671c99ebb9739e71f0945f7ed3765d635d8d5e36a79ed92e98174b5b1642b79004f0c482437935d84f27e961228ba5a
|
7
|
+
data.tar.gz: 201f10194fcd80ddd41ac363aa2beb4471e512d3e0fdb087daf0f4196a1c5c0b7cc1442ca789d09f2b359f0ab298dcd5a924a376c80a517724e4806de94118d6
|
data/lib/sumomo/stack.rb
CHANGED
@@ -23,7 +23,7 @@ module Sumomo
|
|
23
23
|
description: "Lambda Function in #{@bucket_name}",
|
24
24
|
function_key: "cloudformation/lambda/function_#{name}",
|
25
25
|
handler: 'index.handler',
|
26
|
-
runtime: '
|
26
|
+
runtime: 'nodejs20.x',
|
27
27
|
env: {},
|
28
28
|
memory_size: 128,
|
29
29
|
timeout: 30,
|
@@ -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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Siaw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -2593,7 +2593,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2593
2593
|
- !ruby/object:Gem::Version
|
2594
2594
|
version: '0'
|
2595
2595
|
requirements: []
|
2596
|
-
rubygems_version: 3.
|
2596
|
+
rubygems_version: 3.3.26
|
2597
2597
|
signing_key:
|
2598
2598
|
specification_version: 4
|
2599
2599
|
summary: An advanced infrastructure description language for AWS
|