souls 1.13.8 → 1.14.0
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/template/functions_app.rb +1 -0
- data/lib/souls/cli/create/template/functions_gemfile.rb +1 -0
- data/lib/souls/cli/gcloud/functions/index.rb +1 -1
- data/lib/souls/utils/index.rb +8 -2
- 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 +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4e0a0c2f62583042427032c3802a5891673d34133516fff6612a23e57f0ac856
|
|
4
|
+
data.tar.gz: cc603ee54459e86da37bc87a3f3ee19c3cf36c6190ee00fb3977aec9ab9a828a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 23a902c39fcb35b1c9e11c23c44db2af53807e56537b256cb4d12672403d9e9fc3eab0985c6c5b37ffbd6b77de8a0792be1c4ec8fdaeecb00ef15df775716cb2
|
|
7
|
+
data.tar.gz: c11dad7563e808fffc9f3532a962746d7f94c3a120d248d712d965c96e19baa8df46b33191aeabda271b6e1d3d0d86758f607875104f1533361c0c79b1dbbe81
|
|
@@ -2,8 +2,8 @@ module Souls
|
|
|
2
2
|
class Functions < Thor
|
|
3
3
|
desc "deploy", "Deploy Cloud Functions"
|
|
4
4
|
def deploy
|
|
5
|
+
require(Souls.get_mother_path.to_s + "/config/souls")
|
|
5
6
|
project_id = Souls.configuration.project_id
|
|
6
|
-
Souls::Gcloud.new.config_set
|
|
7
7
|
Dir.chdir(Souls.get_functions_path.to_s) do
|
|
8
8
|
system(
|
|
9
9
|
"
|
data/lib/souls/utils/index.rb
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
module Souls
|
|
2
2
|
module Utils
|
|
3
3
|
def get_mother_path
|
|
4
|
-
Dir.pwd.split(
|
|
4
|
+
file_array = Dir.pwd.split("/")
|
|
5
|
+
mother_dir_num = file_array.rindex("apps")
|
|
6
|
+
file_array.each_slice(mother_dir_num).to_a[0].join("/")
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def get_functions_path
|
|
10
|
+
get_mother_path + "/apps/functions"
|
|
5
11
|
end
|
|
6
12
|
|
|
7
13
|
def get_api_path
|
|
8
|
-
|
|
14
|
+
get_mother_path + "/apps/api"
|
|
9
15
|
end
|
|
10
16
|
|
|
11
17
|
def type_check(type)
|
data/lib/souls/version.rb
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.14.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.14.0
|