souls 1.19.9 → 1.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/souls/cli/create/functions.rb +3 -3
- data/lib/souls/cli/create/templates/{functions_env_yaml.rb → functions/functions_env_yaml.rb} +0 -0
- data/lib/souls/cli/create/templates/{go → functions/go}/function.rb +0 -0
- data/lib/souls/cli/create/templates/{go → functions/go}/go.rb +0 -0
- data/lib/souls/cli/create/templates/{nodejs → functions/nodejs}/index.rb +0 -0
- data/lib/souls/cli/create/templates/{nodejs → functions/nodejs}/package.rb +0 -0
- data/lib/souls/cli/create/templates/{python → functions/python}/main.rb +0 -0
- data/lib/souls/cli/create/templates/{python → functions/python}/requirements.rb +0 -0
- data/lib/souls/cli/create/templates/{ruby → functions/ruby}/app.rb +0 -0
- data/lib/souls/cli/create/templates/{ruby → functions/ruby}/gemfile.rb +0 -0
- data/lib/souls/cli/gcloud/functions/index.rb +13 -1
- data/lib/souls/cli/sync/pubsub.rb +0 -1
- 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 +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 690c4e033ba2db83f5f7889ac33cd199dbd4cd6b9b69f83c9d55cdd97ff5d3b3
|
4
|
+
data.tar.gz: aaf41d5d0ffaf0610c1cf99f26eb67df7e8c1d59e0bf40dd4b2eb525e3839ae4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0a118b3bedfa8fdf60f6f7125b05dd05a9a49d2e818dad1bcfab50f98586fa173fdbbaa0417083dc0fa857c12461a18e54d628b365b40e57d693d6aa9323f96
|
7
|
+
data.tar.gz: ec064cf74ce3992b7169aca42b2f208eb3c81ce7dd2855df4b0c9f1a474028ca8d1b1631ac057d0864e81214fec48c71786bb8ebf6c6f1d358a48567d3d13818
|
@@ -1,6 +1,6 @@
|
|
1
|
-
require_relative "./templates/functions_env_yaml"
|
1
|
+
require_relative "./templates/functions/functions_env_yaml"
|
2
2
|
|
3
|
-
Dir["#{SOULs::SOULS_PATH}/lib/souls/cli/create/templates/*/*.rb"].map do |f|
|
3
|
+
Dir["#{SOULs::SOULS_PATH}/lib/souls/cli/create/templates/functions/*/*.rb"].map do |f|
|
4
4
|
require f
|
5
5
|
end
|
6
6
|
|
@@ -62,7 +62,7 @@ module SOULs
|
|
62
62
|
end
|
63
63
|
|
64
64
|
def get_runtime_create_method(runtime:)
|
65
|
-
Dir["#{SOULs::SOULS_PATH}/lib/souls/cli/create/templates/#{runtime}/*"].map do |n|
|
65
|
+
Dir["#{SOULs::SOULS_PATH}/lib/souls/cli/create/templates/functions/#{runtime}/*"].map do |n|
|
66
66
|
n.split("/").last.gsub(".rb", "")
|
67
67
|
end
|
68
68
|
end
|
data/lib/souls/cli/create/templates/{functions_env_yaml.rb → functions/functions_env_yaml.rb}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -11,9 +11,21 @@ module SOULs
|
|
11
11
|
end
|
12
12
|
|
13
13
|
runtime = current_dir.match(/cf-(\D+\d+)-/)[1]
|
14
|
+
runtime_lang = current_dir.match(/^cf-(\D+)\d+-/)
|
15
|
+
entry_point =
|
16
|
+
case runtime_lang
|
17
|
+
when "nodejs"
|
18
|
+
current_dir.underscore.camelize(:lower)
|
19
|
+
when "python"
|
20
|
+
current_dir.underscore
|
21
|
+
when "go"
|
22
|
+
current_dir.underscore.camelize
|
23
|
+
else
|
24
|
+
current_dir
|
25
|
+
end
|
14
26
|
system(
|
15
27
|
"
|
16
|
-
gcloud functions deploy #{current_dir} --project=#{project_id} \
|
28
|
+
gcloud functions deploy #{current_dir} --entry-point=#{entry_point} --project=#{project_id} \
|
17
29
|
--runtime #{runtime} --trigger-http --allow-unauthenticated --env-vars-file .env.yaml
|
18
30
|
"
|
19
31
|
)
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.20.0
|
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.20.0
|
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.
|
4
|
+
version: 1.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- POPPIN-FUMI
|
@@ -190,15 +190,15 @@ files:
|
|
190
190
|
- lib/souls/cli/console/index.rb
|
191
191
|
- lib/souls/cli/create/functions.rb
|
192
192
|
- lib/souls/cli/create/index.rb
|
193
|
-
- lib/souls/cli/create/templates/functions_env_yaml.rb
|
194
|
-
- lib/souls/cli/create/templates/go/function.rb
|
195
|
-
- lib/souls/cli/create/templates/go/go.rb
|
196
|
-
- lib/souls/cli/create/templates/nodejs/index.rb
|
197
|
-
- lib/souls/cli/create/templates/nodejs/package.rb
|
198
|
-
- lib/souls/cli/create/templates/python/main.rb
|
199
|
-
- lib/souls/cli/create/templates/python/requirements.rb
|
200
|
-
- lib/souls/cli/create/templates/ruby/app.rb
|
201
|
-
- lib/souls/cli/create/templates/ruby/gemfile.rb
|
193
|
+
- lib/souls/cli/create/templates/functions/functions_env_yaml.rb
|
194
|
+
- lib/souls/cli/create/templates/functions/go/function.rb
|
195
|
+
- lib/souls/cli/create/templates/functions/go/go.rb
|
196
|
+
- lib/souls/cli/create/templates/functions/nodejs/index.rb
|
197
|
+
- lib/souls/cli/create/templates/functions/nodejs/package.rb
|
198
|
+
- lib/souls/cli/create/templates/functions/python/main.rb
|
199
|
+
- lib/souls/cli/create/templates/functions/python/requirements.rb
|
200
|
+
- lib/souls/cli/create/templates/functions/ruby/app.rb
|
201
|
+
- lib/souls/cli/create/templates/functions/ruby/gemfile.rb
|
202
202
|
- lib/souls/cli/db/create_migration.rb
|
203
203
|
- lib/souls/cli/db/create_migration_rbs.rb
|
204
204
|
- lib/souls/cli/db/index.rb
|