souls 1.14.1 → 1.14.2
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 +13 -0
- data/lib/souls/cli/create/template/functions_env_yaml.rb +8 -0
- data/lib/souls/cli/gcloud/functions/index.rb +1 -1
- data/lib/souls/utils/index.rb +3 -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 +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8308615df78c8c6ebe073fdbab2cd67b62cd2b793eb50a34f3849d74f6c22424
|
4
|
+
data.tar.gz: 36b68ae49c525c4ad70a20ca7da086298c3563a3ef039e1cfb5749710a988146
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a4bdc4ab3b391b6a863a3a993301953adacdbe2fa3415b896c4b9ada0f55d12a038a27039bb2cdb928f8401e0f40667fda34c0172f4f1c727e4784100201a78
|
7
|
+
data.tar.gz: fa8dddbc20ea584a313074acf14194d0ac4628c01aaf29927def9b14a82d04aa547b9ac77190be3b8450115b6131269cf8bff43504a7c42c9ba319ce7fc2111d
|
@@ -1,11 +1,13 @@
|
|
1
1
|
require_relative "./template/functions_app"
|
2
2
|
require_relative "./template/functions_gemfile"
|
3
|
+
require_relative "./template/functions_env_yaml"
|
3
4
|
module Souls
|
4
5
|
class Create < Thor
|
5
6
|
desc "functions", "Create SOULs functions"
|
6
7
|
def functions
|
7
8
|
create_app_file
|
8
9
|
create_gemfile
|
10
|
+
create_env_yaml
|
9
11
|
end
|
10
12
|
|
11
13
|
private
|
@@ -31,5 +33,16 @@ module Souls
|
|
31
33
|
Souls::Painter.create_file(file_path)
|
32
34
|
file_path
|
33
35
|
end
|
36
|
+
|
37
|
+
def create_env_yaml
|
38
|
+
file_dir = "./apps/functions"
|
39
|
+
FileUtils.mkdir_p(file_dir) unless Dir.exist?(file_dir)
|
40
|
+
file_path = "#{file_dir}/.env.yaml"
|
41
|
+
raise(StandardError, "Already Exist!") if File.exist?(file_path)
|
42
|
+
|
43
|
+
File.write(file_path, Template.functions_env_yaml)
|
44
|
+
Souls::Painter.create_file(file_path)
|
45
|
+
file_path
|
46
|
+
end
|
34
47
|
end
|
35
48
|
end
|
data/lib/souls/utils/index.rb
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
module Souls
|
2
2
|
module Utils
|
3
3
|
def get_mother_path
|
4
|
-
|
4
|
+
current_dir = Dir.pwd
|
5
|
+
file_array = current_dir.split("/")
|
5
6
|
mother_dir_num = file_array.rindex("apps")
|
6
|
-
mother_dir_num ? file_array.
|
7
|
+
mother_dir_num ? file_array.each_slice(mother_dir_num).to_a[0].join("/") : current_dir
|
7
8
|
end
|
8
9
|
|
9
10
|
def get_functions_path
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.14.
|
1
|
+
1.14.2
|
@@ -1 +1 @@
|
|
1
|
-
1.14.
|
1
|
+
1.14.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.14.
|
4
|
+
version: 1.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- POPPIN-FUMI
|
@@ -177,6 +177,7 @@ files:
|
|
177
177
|
- lib/souls/cli/create/functions.rb
|
178
178
|
- lib/souls/cli/create/index.rb
|
179
179
|
- lib/souls/cli/create/template/functions_app.rb
|
180
|
+
- lib/souls/cli/create/template/functions_env_yaml.rb
|
180
181
|
- lib/souls/cli/create/template/functions_gemfile.rb
|
181
182
|
- lib/souls/cli/db/create_migration.rb
|
182
183
|
- lib/souls/cli/db/create_migration_rbs.rb
|