souls 1.18.7 → 1.19.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 +4 -4
- data/lib/souls/cli/create/functions.rb +1 -1
- data/lib/souls/cli/create/templates/go/function.rb +1 -0
- data/lib/souls/cli/create/templates/nodejs/index.rb +1 -0
- data/lib/souls/cli/create/templates/python/main.rb +1 -0
- data/lib/souls/cli/gcloud/functions/index.rb +6 -5
- data/lib/souls/cli/init/index.rb +2 -2
- data/lib/souls/cli/sync/pubsub.rb +1 -0
- 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 +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7d34dd296dbaef9fa83496bd0852788632d5bab73be62f8f7d84c0744e375a22
|
|
4
|
+
data.tar.gz: 81793aee8d0aaa76547323a6e3e45459886bcbd551f332b69025c020b3ff2388
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 385f0ad586025224e72bd16e9e189083dda45866de8a65354e8479968495867b5d7d42b06504e12de3716439b011536c02d5ac4771bda25420766cadc2085c17
|
|
7
|
+
data.tar.gz: 83893626fca09f93ed3ac0ca9535da89e963e9a1de1e4a29b05272e096fd91a05f85c0e2a36dabc8ccadf63b60a1ffa15437ca39b83c56188edd8754f5269bb9
|
|
@@ -21,7 +21,7 @@ module SOULs
|
|
|
21
21
|
version = prompt.select("Select Version?", supported_languages[runtime.downcase.to_sym].sort.reverse)
|
|
22
22
|
version_string = "#{runtime_downcased}#{version.gsub('.', '')}"
|
|
23
23
|
runtime_methods = get_runtime_create_method(runtime: runtime_downcased)
|
|
24
|
-
file_dir = "./apps/
|
|
24
|
+
file_dir = "./apps/cf-#{version_string}-#{function_name}"
|
|
25
25
|
FileUtils.mkdir_p(file_dir) unless Dir.exist?(file_dir)
|
|
26
26
|
|
|
27
27
|
runtime_methods.each do |method|
|
|
@@ -5,12 +5,12 @@ module SOULs
|
|
|
5
5
|
require(SOULs.get_mother_path.to_s + "/config/souls")
|
|
6
6
|
project_id = SOULs.configuration.project_id
|
|
7
7
|
current_dir = FileUtils.pwd.split("/").last
|
|
8
|
-
unless current_dir.match?(/^
|
|
8
|
+
unless current_dir.match?(/^cf-/)
|
|
9
9
|
SOULs::Painter.error("You are at wrong dir!\nPlease go to `apps/functions` dir!")
|
|
10
10
|
return false
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
runtime = current_dir.match(/
|
|
13
|
+
runtime = current_dir.match(/cf-(\D+\d+)-/)[1]
|
|
14
14
|
system(
|
|
15
15
|
"
|
|
16
16
|
gcloud functions deploy #{current_dir} --project=#{project_id} \
|
|
@@ -22,11 +22,12 @@ module SOULs
|
|
|
22
22
|
desc "describe", "Describe SOULs Functions"
|
|
23
23
|
def describe
|
|
24
24
|
require(SOULs.get_mother_path.to_s + "/config/souls")
|
|
25
|
+
current_dir = FileUtils.pwd.split("/").last
|
|
25
26
|
project_id = SOULs.configuration.project_id
|
|
26
|
-
system("gcloud functions describe
|
|
27
|
+
system("gcloud functions describe #{current_dir} --project=#{project_id}")
|
|
27
28
|
end
|
|
28
29
|
|
|
29
|
-
desc "delete", "Delete SOULs Functions"
|
|
30
|
+
desc "delete [name]", "Delete SOULs Functions"
|
|
30
31
|
def delete(name)
|
|
31
32
|
require(SOULs.get_mother_path.to_s + "/config/souls")
|
|
32
33
|
project_id = SOULs.configuration.project_id
|
|
@@ -50,7 +51,7 @@ module SOULs
|
|
|
50
51
|
require(SOULs.get_mother_path.to_s + "/config/souls")
|
|
51
52
|
project_id = SOULs.configuration.project_id
|
|
52
53
|
Dir.chdir(SOULs.get_mother_path.to_s) do
|
|
53
|
-
souls_functions = Dir["apps/
|
|
54
|
+
souls_functions = Dir["apps/cf-*"]
|
|
54
55
|
cf_dir = souls_functions.map { |n| n.split("/").last }
|
|
55
56
|
cf_dir.each do |dir|
|
|
56
57
|
SOULs::Painter.success(`gcloud functions describe #{dir} --project=#{project_id}| grep url`)
|
data/lib/souls/cli/init/index.rb
CHANGED
|
@@ -169,7 +169,7 @@ module SOULs
|
|
|
169
169
|
FileUtils.rm(sig_name)
|
|
170
170
|
end
|
|
171
171
|
|
|
172
|
-
def souls_api_credit(
|
|
172
|
+
def souls_api_credit(app_name)
|
|
173
173
|
line = Paint["====================================", :yellow]
|
|
174
174
|
puts("\n")
|
|
175
175
|
puts(line)
|
|
@@ -194,7 +194,7 @@ module SOULs
|
|
|
194
194
|
puts(line)
|
|
195
195
|
endroll = <<~TEXT
|
|
196
196
|
Easy to Run
|
|
197
|
-
$ cd apps/api
|
|
197
|
+
$ cd #{app_name}/apps/api
|
|
198
198
|
$ souls s
|
|
199
199
|
Go To : http://localhost:4000
|
|
200
200
|
|
|
@@ -2,6 +2,7 @@ module SOULs
|
|
|
2
2
|
class Sync < Thor
|
|
3
3
|
desc "pubsub", "Sync Worker Jobs & Google Cloud Pubsub Topics/Subscriptions"
|
|
4
4
|
def pubsub
|
|
5
|
+
project_id = SOULs.configuration.project_id
|
|
5
6
|
worker_name = FileUtils.pwd.split("/").last
|
|
6
7
|
|
|
7
8
|
unless worker_name.match(/^worker-(\d|\w)+(-)*(\d|\w)+$/)
|
data/lib/souls/version.rb
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.19.2
|
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.19.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: 1.
|
|
4
|
+
version: 1.19.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: 2022-01-
|
|
13
|
+
date: 2022-01-06 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activesupport
|