souls 1.5.4 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0832b8196b85749aba79efb983d1ac750903094a2c12dffceece48f885797a13'
|
4
|
+
data.tar.gz: 0c7912b5876996c503fc87690bb861ffb8b195bc1176d54ffa06b6c7e297938e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1923f0e51e212cefd708bcafb29aea698cb094720c8afbcd9b3a007a7b6536ee34022b9eeb8a160a336421558f3242181a4411ba12880f0e536e8e71fabc42d
|
7
|
+
data.tar.gz: 3e3db2be3a2374645d08add59d28b51f28565c727c7f0ff3c065586ce0a53cab585a1f1a2088c0be0e296635a3d74e52601b5dab0df3abfdf85cb021f6938673
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Souls
|
2
|
+
class Upgrade < Thor
|
3
|
+
desc "config", "Update config/souls.rb"
|
4
|
+
def config
|
5
|
+
souls = Souls.configuration
|
6
|
+
prompt = TTY::Prompt.new
|
7
|
+
project_id = prompt.ask("Project ID:", default: souls.project_id)
|
8
|
+
region = prompt.ask("Region:", default: souls.region)
|
9
|
+
endpoint = prompt.ask("Endpoint:", default: souls.endpoint)
|
10
|
+
|
11
|
+
Dir.chdir(Souls.get_mother_path.to_s) do
|
12
|
+
mother_conf_path = "config/souls.rb"
|
13
|
+
api_conf_path = "apps/api/config/souls.rb"
|
14
|
+
mother_conf = File.readlines(mother_conf_path)
|
15
|
+
api_conf = File.readlines(api_conf_path)
|
16
|
+
mother_conf[2] = " config.project_id = \"#{project_id}\"\n"
|
17
|
+
mother_conf[3] = " config.region = \"#{region}\"\n"
|
18
|
+
mother_conf[4] = " config.endpoint = \"#{endpoint}\"\n"
|
19
|
+
api_conf[2] = " config.project_id = \"#{project_id}\"\n"
|
20
|
+
api_conf[3] = " config.region = \"#{region}\"\n"
|
21
|
+
api_conf[4] = " config.endpoint = \"#{endpoint}\"\n"
|
22
|
+
File.open(mother_conf_path, "w") { |f| f.write(mother_conf.join) }
|
23
|
+
File.open(api_conf_path, "w") { |f| f.write(api_conf.join) }
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.5
|
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.5
|
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.5.
|
4
|
+
version: 1.5.5
|
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: 2021-11-
|
13
|
+
date: 2021-11-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -217,6 +217,7 @@ files:
|
|
217
217
|
- lib/souls/cli/update/rspec_resolver.rb
|
218
218
|
- lib/souls/cli/update/type.rb
|
219
219
|
- lib/souls/cli/update/type_rbs.rb
|
220
|
+
- lib/souls/cli/upgrade/config.rb
|
220
221
|
- lib/souls/cli/upgrade/gemfile.rb
|
221
222
|
- lib/souls/cli/upgrade/index.rb
|
222
223
|
- lib/souls/cli/upgrade/submodule.rb
|