souls 1.8.3 → 1.8.4

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.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/lib/souls/cli/db/create_migration_rbs.rb +0 -2
  3. data/lib/souls/cli/db/model.rb +0 -2
  4. data/lib/souls/cli/db/model_rbs.rb +0 -2
  5. data/lib/souls/cli/db/rspec_model.rb +0 -2
  6. data/lib/souls/cli/delete/application.rb +0 -4
  7. data/lib/souls/cli/delete/connection.rb +0 -2
  8. data/lib/souls/cli/delete/connection_rbs.rb +0 -2
  9. data/lib/souls/cli/delete/edge.rb +0 -2
  10. data/lib/souls/cli/delete/edge_rbs.rb +0 -2
  11. data/lib/souls/cli/delete/job.rb +0 -2
  12. data/lib/souls/cli/delete/job_rbs.rb +0 -2
  13. data/lib/souls/cli/delete/manager.rb +0 -2
  14. data/lib/souls/cli/delete/manager_rbs.rb +0 -2
  15. data/lib/souls/cli/delete/mutation.rb +0 -2
  16. data/lib/souls/cli/delete/mutation_rbs.rb +0 -2
  17. data/lib/souls/cli/delete/query.rb +0 -2
  18. data/lib/souls/cli/delete/resolver.rb +0 -2
  19. data/lib/souls/cli/delete/resolver_rbs.rb +0 -2
  20. data/lib/souls/cli/delete/rspec_factory.rb +0 -2
  21. data/lib/souls/cli/delete/rspec_job.rb +0 -2
  22. data/lib/souls/cli/delete/rspec_manager.rb +0 -2
  23. data/lib/souls/cli/delete/rspec_query.rb +0 -2
  24. data/lib/souls/cli/delete/rspec_resolver.rb +0 -2
  25. data/lib/souls/cli/delete/type.rb +0 -2
  26. data/lib/souls/cli/delete/type_rbs.rb +0 -2
  27. data/lib/souls/cli/docker/index.rb +0 -4
  28. data/lib/souls/cli/gcloud/compute/index.rb +12 -15
  29. data/lib/souls/cli/gcloud/iam/index.rb +0 -2
  30. data/lib/souls/cli/gcloud/index.rb +0 -4
  31. data/lib/souls/cli/gcloud/pubsub/subscriptions.rb +0 -6
  32. data/lib/souls/cli/gcloud/pubsub/topics.rb +0 -4
  33. data/lib/souls/cli/gcloud/run/index.rb +0 -6
  34. data/lib/souls/cli/gcloud/sql/index.rb +0 -14
  35. data/lib/souls/cli/generate/application.rb +0 -4
  36. data/lib/souls/cli/generate/connection.rb +0 -2
  37. data/lib/souls/cli/generate/connection_rbs.rb +0 -2
  38. data/lib/souls/cli/generate/edge.rb +0 -2
  39. data/lib/souls/cli/generate/edge_rbs.rb +0 -2
  40. data/lib/souls/cli/generate/job.rb +0 -2
  41. data/lib/souls/cli/generate/job_rbs.rb +0 -2
  42. data/lib/souls/cli/generate/manager.rb +0 -2
  43. data/lib/souls/cli/generate/manager_rbs.rb +0 -2
  44. data/lib/souls/cli/generate/mutation.rb +0 -2
  45. data/lib/souls/cli/generate/mutation_rbs.rb +0 -8
  46. data/lib/souls/cli/generate/query.rb +0 -2
  47. data/lib/souls/cli/generate/query_rbs.rb +0 -4
  48. data/lib/souls/cli/generate/resolver.rb +0 -2
  49. data/lib/souls/cli/generate/resolver_rbs.rb +0 -2
  50. data/lib/souls/cli/generate/rspec_factory.rb +0 -2
  51. data/lib/souls/cli/generate/rspec_job.rb +0 -2
  52. data/lib/souls/cli/generate/rspec_manager.rb +0 -2
  53. data/lib/souls/cli/generate/rspec_query.rb +0 -2
  54. data/lib/souls/cli/generate/rspec_resolver.rb +0 -2
  55. data/lib/souls/cli/generate/type.rb +0 -2
  56. data/lib/souls/cli/generate/type_rbs.rb +0 -2
  57. data/lib/souls/cli/sync/conf.rb +0 -2
  58. data/lib/souls/cli/sync/model.rb +1 -3
  59. data/lib/souls/cli/sync/pubsub.rb +0 -2
  60. data/lib/souls/cli/update/mutation_rbs.rb +0 -4
  61. data/lib/souls/cli/update/resolver.rb +0 -2
  62. data/lib/souls/cli/update/rspec_factory.rb +0 -2
  63. data/lib/souls/cli/update/rspec_mutation.rb +0 -2
  64. data/lib/souls/cli/update/rspec_resolver.rb +0 -2
  65. data/lib/souls/cli/update/type.rb +0 -2
  66. data/lib/souls/cli/update/type_rbs.rb +0 -2
  67. data/lib/souls/version.rb +1 -1
  68. data/lib/souls/versions/.souls_api_version +1 -1
  69. data/lib/souls/versions/.souls_worker_version +1 -1
  70. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d55dd599d811c4fa2007380b12599204103f19911d9b44f1b68bf108037d9a9f
4
- data.tar.gz: 32c348a47de83e9be4a7af1fdf320041b7e5e32636832add8e679957cece7ebb
3
+ metadata.gz: 8ce71081e75906aa301524b7c0868d9d368172c1a09cf432a9387a0db68eeb9d
4
+ data.tar.gz: 3977e1cf390f2fdb9dad6cef8169a657682b761a2f138dc6d9e618c9ae21fd38
5
5
  SHA512:
6
- metadata.gz: '099dd03104a52ae91c08c09e7287a0b0373ecc784c0a6728ef20d75f9917525dbb040217975895ae456a518c7519c58c0b987f864037bd842facd3c8502eaddb'
7
- data.tar.gz: 8ed5c22f34b5741a2487df2016ddaa40530a16900acfdf216c671219cdc5db1281405e0a4f42bc10144b45d6e3d1e49d0e5bfbb092acfdbdaaf29ced739250f2
6
+ metadata.gz: 728cb4d032060cbe75e4147ffa935404d5957485a7543f0e7e4a94e6bf19649728b6bf7b3ecd99b3c5f32c5b5807ff0bcb353326f852d1ddb87b414bb00196f7
7
+ data.tar.gz: f5475fe81ceea4312773086ff14f55dd735b1b4311bd25dce18bcbdfa6ba3e39478984f466c0b8dc0cf993d412318cfd6e43a9df696edccf77ded0425f6fe4ef
@@ -20,8 +20,6 @@ module Souls
20
20
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
21
21
  end
22
22
  file_path
23
- rescue Thor::Error => e
24
- raise(Thor::Error, e)
25
23
  end
26
24
  end
27
25
  end
@@ -15,8 +15,6 @@ module Souls
15
15
  end
16
16
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
17
17
  file_path
18
- rescue Thor::Error => e
19
- raise(Thor::Error, e)
20
18
  end
21
19
  end
22
20
  end
@@ -17,8 +17,6 @@ module Souls
17
17
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
18
18
  end
19
19
  file_path
20
- rescue Thor::Error => e
21
- raise(Thor::Error, e)
22
20
  end
23
21
  end
24
22
  end
@@ -20,8 +20,6 @@ module Souls
20
20
  end
21
21
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
22
22
  file_path
23
- rescue Thor::Error => e
24
- raise(Thor::Error, e)
25
23
  end
26
24
  end
27
25
  end
@@ -10,8 +10,6 @@ module Souls
10
10
  run_scaffold(class_name: singularized_class_name)
11
11
  end
12
12
  true
13
- rescue Thor::Error => e
14
- raise(Thor::Error, e)
15
13
  end
16
14
 
17
15
  desc "scaffold_all", "Delete Scaffold All Tables from schema.rb"
@@ -26,8 +24,6 @@ module Souls
26
24
  end
27
25
  end
28
26
  true
29
- rescue Thor::Error => e
30
- raise(Thor::Error, e)
31
27
  end
32
28
 
33
29
  private
@@ -9,8 +9,6 @@ module Souls
9
9
  FileUtils.rm(file_path)
10
10
  puts(Paint % ["Delete file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
11
11
  file_path
12
- rescue Thor::Error => e
13
- raise(Thor::Error, e)
14
12
  end
15
13
  end
16
14
  end
@@ -12,8 +12,6 @@ module Souls
12
12
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
13
13
  end
14
14
  file_path
15
- rescue Thor::Error => e
16
- raise(Thor::Error, e)
17
15
  end
18
16
  end
19
17
  end
@@ -9,8 +9,6 @@ module Souls
9
9
  FileUtils.rm(file_path)
10
10
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
11
11
  file_path
12
- rescue Thor::Error => e
13
- raise(Thor::Error, e)
14
12
  end
15
13
  end
16
14
  end
@@ -12,8 +12,6 @@ module Souls
12
12
  puts(Paint % ["Delete file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
13
13
  end
14
14
  file_path
15
- rescue Thor::Error => e
16
- raise(Thor::Error, e)
17
15
  end
18
16
  end
19
17
  end
@@ -10,8 +10,6 @@ module Souls
10
10
  end
11
11
  Souls::Delete.new.invoke(:job_rbs, [class_name], {})
12
12
  Souls::Delete.new.invoke(:rspec_job, [class_name], {})
13
- rescue Thor::Error => e
14
- raise(Thor::Error, e)
15
13
  end
16
14
 
17
15
  private
@@ -13,8 +13,6 @@ module Souls
13
13
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
14
14
  end
15
15
  file_path
16
- rescue Thor::Error => e
17
- raise(Thor::Error, e)
18
16
  end
19
17
  end
20
18
  end
@@ -13,8 +13,6 @@ module Souls
13
13
  Souls::Delete.new.invoke(:manager_rbs, [singularized_class_name], { mutation: options[:mutation] })
14
14
  Souls::Delete.new.invoke(:rspec_manager, [singularized_class_name], { mutation: options[:mutation] })
15
15
  file_path
16
- rescue Thor::Error => e
17
- raise(Thor::Error, e)
18
16
  end
19
17
  end
20
18
  end
@@ -13,8 +13,6 @@ module Souls
13
13
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
14
14
  end
15
15
  file_path
16
- rescue Thor::Error => e
17
- raise(Thor::Error, e)
18
16
  end
19
17
  end
20
18
  end
@@ -10,8 +10,6 @@ module Souls
10
10
  end
11
11
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
12
12
  file_path
13
- rescue Thor::Error => e
14
- raise(Thor::Error, e)
15
13
  end
16
14
  end
17
15
  end
@@ -10,8 +10,6 @@ module Souls
10
10
  end
11
11
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
12
12
  file_path
13
- rescue Thor::Error => e
14
- raise(Thor::Error, e)
15
13
  end
16
14
  end
17
15
  end
@@ -7,8 +7,6 @@ module Souls
7
7
  FileUtils.rm(file_path)
8
8
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
9
9
  file_path
10
- rescue Thor::Error => e
11
- raise(Thor::Error, e)
12
10
  end
13
11
  end
14
12
  end
@@ -7,8 +7,6 @@ module Souls
7
7
  FileUtils.rm(file_path)
8
8
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
9
9
  file_path
10
- rescue Thor::Error => e
11
- raise(Thor::Error, e)
12
10
  end
13
11
  end
14
12
  end
@@ -12,8 +12,6 @@ module Souls
12
12
  end
13
13
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
14
14
  file_path
15
- rescue Thor::Error => e
16
- raise(Thor::Error, e)
17
15
  end
18
16
  end
19
17
  end
@@ -6,8 +6,6 @@ module Souls
6
6
  FileUtils.rm(file_path)
7
7
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
8
8
  file_path
9
- rescue Thor::Error => e
10
- raise(Thor::Error, e)
11
9
  end
12
10
  end
13
11
  end
@@ -7,8 +7,6 @@ module Souls
7
7
  FileUtils.rm(file_path)
8
8
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
9
9
  file_path
10
- rescue Thor::Error => e
11
- raise(Thor::Error, e)
12
10
  end
13
11
  end
14
12
  end
@@ -8,8 +8,6 @@ module Souls
8
8
  FileUtils.rm(file_path)
9
9
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
10
10
  file_path
11
- rescue Thor::Error => e
12
- raise(Thor::Error, e)
13
11
  end
14
12
  end
15
13
  end
@@ -7,8 +7,6 @@ module Souls
7
7
  FileUtils.rm(file_path)
8
8
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
9
9
  file_path
10
- rescue Thor::Error => e
11
- raise(Thor::Error, e)
12
10
  end
13
11
  end
14
12
  end
@@ -7,8 +7,6 @@ module Souls
7
7
  FileUtils.rm(file_path)
8
8
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
9
9
  file_path
10
- rescue Thor::Error => e
11
- raise(Thor::Error, e)
12
10
  end
13
11
  end
14
12
  end
@@ -7,8 +7,6 @@ module Souls
7
7
  FileUtils.rm(file_path)
8
8
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
9
9
  file_path
10
- rescue Thor::Error => e
11
- raise(Thor::Error, e)
12
10
  end
13
11
  end
14
12
  end
@@ -12,8 +12,6 @@ module Souls
12
12
  end
13
13
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
14
14
  file_path
15
- rescue Thor::Error => e
16
- raise(Thor::Error, e)
17
15
  end
18
16
  end
19
17
  end
@@ -12,8 +12,6 @@ module Souls
12
12
  postgres:13-alpine"
13
13
  )
14
14
  system("docker ps")
15
- rescue Thor::Error => e
16
- raise(Thor::Error, e)
17
15
  end
18
16
 
19
17
  desc "mysql", "Run MySQL Docker Container"
@@ -28,8 +26,6 @@ module Souls
28
26
  mysql:latest"
29
27
  )
30
28
  system("docker ps")
31
- rescue Thor::Error => e
32
- raise(Thor::Error, e)
33
29
  end
34
30
  end
35
31
  end
@@ -27,8 +27,6 @@ module Souls
27
27
  puts(Paint["\nYou can add this IP to third party white list", :white])
28
28
  puts(Paint["\nPlease git push to update your github workflow now!", :yellow])
29
29
  true
30
- rescue Thor::Error => e
31
- raise(Thor::Error, e)
32
30
  end
33
31
 
34
32
  private
@@ -123,19 +121,18 @@ module Souls
123
121
  def update_workflows
124
122
  app_name = Souls.configuration.app
125
123
  Dir.chdir(Souls.get_mother_path.to_s) do
126
- api_workflow_path = ".github/workflows/api.yml"
127
- worker_workflow_paths = Dir[".github/workflows/*.yml"]
128
- worker_workflow_paths.delete(api_workflow_path)
129
- File.open(api_workflow_path, "a") do |line|
130
- line.write(" \\ \n --vpc-connector=#{app_name}-connector")
131
- end
132
- puts(Paint % ["Updated file! : %{white_text}", :green, { white_text: [api_workflow_path.to_s, :white] }])
133
- worker_workflow_paths.each do |file_path|
134
- worker_workflow = File.readlines(file_path)
135
- worker_workflow[worker_workflow.size - 1] = worker_workflow.last.chomp
136
- worker_workflow << " \\ \n --vpc-connector=#{app_name}-connector \\"
137
- worker_workflow << "\n --vpc-egress=all"
138
- File.open(file_path, "w") { |f| f.write(worker_workflow.join) }
124
+ workflow_paths = Dir[".github/workflows/*.yml"]
125
+ workflow_paths.each do |file_path|
126
+ workflow = File.readlines(file_path)
127
+ index = workflow.index { |e| e =~ /.*--memory=.*/ } + 1
128
+ egress_index = workflow.index { |e| e =~ /.*--vpc-egress=.*/ }
129
+ connector_index = workflow.index { |e| e =~ /.*--vpc-connector=.*/ }
130
+
131
+ if !file_path.end_with?("/api.yml") && egress_index.nil?
132
+ workflow.insert(index, " --vpc-egress=all \\\n")
133
+ end
134
+ workflow.insert(index, " --vpc-connector=#{app_name}-connector \\\n") if connector_index.nil?
135
+ File.open(file_path, "w") { |f| f.write(workflow.join) }
139
136
  puts(Paint % ["Updated file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
140
137
  end
141
138
  end
@@ -12,8 +12,6 @@ module Souls
12
12
  rescue StandardError
13
13
  export_key_to_console
14
14
  end
15
- rescue Thor::Error => e
16
- raise(Thor::Error, e)
17
15
  end
18
16
 
19
17
  private
@@ -30,8 +30,6 @@ module Souls
30
30
  system("gcloud projects describe #{project_id}", out: File::NULL) or raise(Souls::GcloudException)
31
31
  system("gcloud config set project #{project_id}")
32
32
  system("gcloud auth login")
33
- rescue Thor::Error => e
34
- raise(Thor::Error, e)
35
33
  end
36
34
 
37
35
  desc "config_set", "gcloud config set"
@@ -52,8 +50,6 @@ module Souls
52
50
  system("gcloud services enable containerregistry.googleapis.com")
53
51
  system("gcloud services enable run.googleapis.com")
54
52
  system("gcloud services enable vpcaccess.googleapis.com")
55
- rescue Thor::Error => e
56
- raise(Thor::Error, e)
57
53
  end
58
54
  end
59
55
  end
@@ -21,15 +21,11 @@ module Souls
21
21
  --expiration-period never
22
22
  "
23
23
  )
24
- rescue Thor::Error => e
25
- raise(Thor::Error, e)
26
24
  end
27
25
 
28
26
  desc "subscription_list", "Show Google Cloud Pubsub Subscription List"
29
27
  def subscription_list
30
28
  system("gcloud pubsub subscriptions list")
31
- rescue Thor::Error => e
32
- raise(Thor::Error, e)
33
29
  end
34
30
 
35
31
  desc "update_subscription", "Update Google Cloud Pubsub Subscription Endpoint"
@@ -43,8 +39,6 @@ module Souls
43
39
  desc: "Google Cloud Pubsub Push Subscription Endpoint"
44
40
  def update_subscription
45
41
  system("gcloud pubsub subscriptions update #{options[:topic_name]}-sub --push-endpoint #{options[:endpoint]} ")
46
- rescue Thor::Error => e
47
- raise(Thor::Error, e)
48
42
  end
49
43
  end
50
44
  end
@@ -7,15 +7,11 @@ module Souls
7
7
  desc: "Google Cloud Pubsub Topic Name"
8
8
  def create_topic
9
9
  system("gcloud pubsub topics create #{options[:topic_name]}")
10
- rescue Thor::Error => e
11
- raise(Thor::Error, e)
12
10
  end
13
11
 
14
12
  desc "topic_list", "Show Google Cloud Topic List"
15
13
  def topic_list
16
14
  system("gcloud pubsub topics list")
17
- rescue Thor::Error => e
18
- raise(Thor::Error, e)
19
15
  end
20
16
  end
21
17
  end
@@ -8,22 +8,16 @@ module Souls
8
8
  "gcloud scheduler jobs create http #{app_name}-awake
9
9
  --schedule '0,10,20,30,40,50 * * * *' --uri #{url} --http-method GET"
10
10
  )
11
- rescue Thor::Error => e
12
- raise(Thor::Error, e)
13
11
  end
14
12
 
15
13
  desc "list", "Show Google Cloud Run List"
16
14
  def list
17
15
  system("gcloud run services list --platform managed")
18
- rescue Thor::Error => e
19
- raise(Thor::Error, e)
20
16
  end
21
17
 
22
18
  desc "get_endpoint", "Show Worker's Endpoint"
23
19
  def get_endpoint(worker_name: "")
24
20
  `gcloud run services list --platform managed | grep #{worker_name} | awk '{print $4}'`
25
- rescue Thor::Error => e
26
- raise(Thor::Error, e)
27
21
  end
28
22
  end
29
23
  end
@@ -51,15 +51,11 @@ module Souls
51
51
  end
52
52
  end
53
53
  Souls::Github.new
54
- rescue Thor::Error => e
55
- raise(Thor::Error, e)
56
54
  end
57
55
 
58
56
  desc "list", "Show Cloud SQL Instances List"
59
57
  def list
60
58
  system("gcloud sql instances list")
61
- rescue Thor::Error => e
62
- raise(Thor::Error, e)
63
59
  end
64
60
 
65
61
  desc "setup_private_ip", "Enable Private IP"
@@ -67,8 +63,6 @@ module Souls
67
63
  create_ip_range
68
64
  create_vpc_connector
69
65
  assign_network
70
- rescue Thor::Error => e
71
- raise(Thor::Error, e)
72
66
  end
73
67
 
74
68
  desc "assign_network", "Assign Network"
@@ -77,8 +71,6 @@ module Souls
77
71
  instance_name = Souls.configuration.instance_name
78
72
  project_id = Souls.configuration.project_id
79
73
  system("gcloud beta sql instances patch #{instance_name} --project=#{project_id} --network=#{app_name}")
80
- rescue Thor::Error => e
81
- raise(Thor::Error, e)
82
74
  end
83
75
 
84
76
  desc "create_ip_range", "Create VPC Adress Range"
@@ -95,8 +87,6 @@ module Souls
95
87
  --network=#{app_name} \
96
88
  --project=#{project_id}"
97
89
  )
98
- rescue Thor::Error => e
99
- raise(Thor::Error, e)
100
90
  end
101
91
 
102
92
  desc "create_vpc_connector", "Create VPC-PEERING Connect"
@@ -112,8 +102,6 @@ module Souls
112
102
  --project=#{project_id}
113
103
  "
114
104
  )
115
- rescue Thor::Error => e
116
- raise(Thor::Error, e)
117
105
  end
118
106
 
119
107
  desc "assgin_ip", "Add Current Grobal IP to White List"
@@ -129,8 +117,6 @@ module Souls
129
117
  --authorized-networks=#{ip}
130
118
  "
131
119
  )
132
- rescue Thor::Error => e
133
- raise(Thor::Error, e)
134
120
  end
135
121
 
136
122
  private
@@ -10,8 +10,6 @@ module Souls
10
10
  run_scaffold(singularized_class_name)
11
11
  end
12
12
  true
13
- rescue Thor::Error => e
14
- raise(Thor::Error, e)
15
13
  end
16
14
 
17
15
  desc "scaffold_all", "Generate Scaffold All Tables from schema.rb"
@@ -26,8 +24,6 @@ module Souls
26
24
  end
27
25
  end
28
26
  true
29
- rescue Thor::Error => e
30
- raise(Thor::Error, e)
31
27
  end
32
28
 
33
29
  private
@@ -15,8 +15,6 @@ module Souls
15
15
  end
16
16
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
17
17
  file_path
18
- rescue Thor::Error => e
19
- raise(Thor::Error, e)
20
18
  end
21
19
  end
22
20
  end
@@ -20,8 +20,6 @@ module Souls
20
20
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
21
21
  end
22
22
  file_path
23
- rescue Thor::Error => e
24
- raise(Thor::Error, e)
25
23
  end
26
24
  end
27
25
  end
@@ -15,8 +15,6 @@ module Souls
15
15
  end
16
16
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
17
17
  file_path
18
- rescue Thor::Error => e
19
- raise(Thor::Error, e)
20
18
  end
21
19
  end
22
20
  end
@@ -23,8 +23,6 @@ module Souls
23
23
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
24
24
  end
25
25
  file_path
26
- rescue Thor::Error => e
27
- raise(Thor::Error, e)
28
26
  end
29
27
  end
30
28
  end
@@ -12,8 +12,6 @@ module Souls
12
12
  end
13
13
  Souls::Generate.new.invoke(:job_rbs, [class_name], {})
14
14
  Souls::Generate.new.invoke(:rspec_job, [class_name], { mailer: options[:mailer] })
15
- rescue Thor::Error => e
16
- raise(Thor::Error, e)
17
15
  end
18
16
 
19
17
  private
@@ -36,8 +36,6 @@ module Souls
36
36
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [type_file_path.to_s, :white] }])
37
37
  end
38
38
  file_path
39
- rescue Thor::Error => e
40
- raise(Thor::Error, e)
41
39
  end
42
40
  end
43
41
  end
@@ -6,8 +6,6 @@ module Souls
6
6
  create_manager(class_name, options[:mutation])
7
7
  Souls::Generate.new.invoke(:manager_rbs, [singularized_class_name], { mutation: options[:mutation] })
8
8
  Souls::Generate.new.invoke(:rspec_manager, [singularized_class_name], { mutation: options[:mutation] })
9
- rescue Thor::Error => e
10
- raise(Thor::Error, e)
11
9
  end
12
10
 
13
11
  private
@@ -27,8 +27,6 @@ module Souls
27
27
  end
28
28
  end
29
29
  file_path
30
- rescue Thor::Error => e
31
- raise(Thor::Error, e)
32
30
  end
33
31
  end
34
32
  end
@@ -15,8 +15,6 @@ module Souls
15
15
  delete_mutation(class_name: singularized_class_name)
16
16
  destroy_delete_mutation(class_name: singularized_class_name)
17
17
  end
18
- rescue Thor::Error => e
19
- raise(Thor::Error, e)
20
18
  end
21
19
 
22
20
  private
@@ -7,8 +7,6 @@ module Souls
7
7
  update_rbs_mutation(class_name: singularized_class_name)
8
8
  delete_rbs_mutation(class_name: singularized_class_name)
9
9
  destroy_delete_rbs_mutation(class_name: singularized_class_name)
10
- rescue Thor::Error => e
11
- raise(Thor::Error, e)
12
10
  end
13
11
 
14
12
  private
@@ -101,8 +99,6 @@ module Souls
101
99
  end
102
100
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
103
101
  file_path
104
- rescue Thor::Error => e
105
- raise(Thor::Error, e)
106
102
  end
107
103
 
108
104
  def update_rbs_mutation(class_name: "user")
@@ -211,8 +207,6 @@ module Souls
211
207
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
212
208
  end
213
209
  file_path
214
- rescue Thor::Error => e
215
- raise(Thor::Error, e)
216
210
  end
217
211
 
218
212
  def destroy_delete_rbs_mutation(class_name: "user")
@@ -242,8 +236,6 @@ module Souls
242
236
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
243
237
  end
244
238
  file_path
245
- rescue Thor::Error => e
246
- raise(Thor::Error, e)
247
239
  end
248
240
  end
249
241
  end
@@ -7,8 +7,6 @@ module Souls
7
7
  singularized_class_name = class_name.singularize
8
8
  create_individual_query(class_name: singularized_class_name)
9
9
  create_index_query(class_name: singularized_class_name)
10
- rescue Thor::Error => e
11
- raise(Thor::Error, e)
12
10
  end
13
11
 
14
12
  private
@@ -34,8 +34,6 @@ module Souls
34
34
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
35
35
  end
36
36
  file_path
37
- rescue Thor::Error => e
38
- raise(Thor::Error, e)
39
37
  end
40
38
 
41
39
  def queries_rbs(class_name)
@@ -60,8 +58,6 @@ module Souls
60
58
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
61
59
  end
62
60
  file_path
63
- rescue Thor::Error => e
64
- raise(Thor::Error, e)
65
61
  end
66
62
  end
67
63
  end
@@ -13,8 +13,6 @@ module Souls
13
13
  resolver_end(class_name: singularized_class_name)
14
14
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
15
15
  file_path
16
- rescue Thor::Error => e
17
- raise(Thor::Error, e)
18
16
  end
19
17
 
20
18
  private
@@ -37,8 +37,6 @@ module Souls
37
37
  end
38
38
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
39
39
  file_path
40
- rescue Thor::Error => e
41
- raise(Thor::Error, e)
42
40
  end
43
41
  end
44
42
  end
@@ -11,8 +11,6 @@ module Souls
11
11
  rspec_factory_end(class_name: singularized_class_name)
12
12
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
13
13
  file_path
14
- rescue Thor::Error => e
15
- raise(Thor::Error, e)
16
14
  end
17
15
 
18
16
  private
@@ -71,8 +71,6 @@ module Souls
71
71
  end
72
72
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
73
73
  file_path
74
- rescue Thor::Error => e
75
- raise(Thor::Error, e)
76
74
  end
77
75
  end
78
76
  end
@@ -42,8 +42,6 @@ module Souls
42
42
  end
43
43
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
44
44
  file_path
45
- rescue Thor::Error => e
46
- raise(Thor::Error, e)
47
45
  end
48
46
  end
49
47
  end
@@ -12,8 +12,6 @@ module Souls
12
12
  rspec_query_end(singularized_class_name)
13
13
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
14
14
  file_path
15
- rescue Thor::Error => e
16
- raise(Thor::Error, e)
17
15
  end
18
16
 
19
17
  private
@@ -12,8 +12,6 @@ module Souls
12
12
  rspec_resolver_end(singularized_class_name)
13
13
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
14
14
  file_path
15
- rescue Thor::Error => e
16
- raise(Thor::Error, e)
17
15
  end
18
16
 
19
17
  private
@@ -11,8 +11,6 @@ module Souls
11
11
  create_type_end(class_name: singularized_class_name)
12
12
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
13
13
  file_path
14
- rescue Thor::Error => e
15
- raise(Thor::Error, e)
16
14
  end
17
15
 
18
16
  private
@@ -51,8 +51,6 @@ module Souls
51
51
  end
52
52
  puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
53
53
  file_path
54
- rescue Thor::Error => e
55
- raise(Thor::Error, e)
56
54
  end
57
55
  end
58
56
  end
@@ -12,8 +12,6 @@ module Souls
12
12
  { white_text: ["`config/souls.rb`, `apps/api/config/souls.rb`", :white] }
13
13
  ]
14
14
  )
15
- rescue Thor::Error => e
16
- raise(Thor::Error, e)
17
15
  end
18
16
 
19
17
  private
@@ -12,8 +12,6 @@ module Souls
12
12
  cp_env_files
13
13
  end
14
14
  puts(Paint % ["Synced! : %{white_text}", :green, { white_text: [cp_dir.to_s, :white] }])
15
- rescue Thor::Error => e
16
- raise(Thor::Error, e)
17
15
  end
18
16
 
19
17
  private
@@ -34,7 +32,7 @@ module Souls
34
32
  end
35
33
 
36
34
  def cp_env_files
37
- return unless File.exist?("./apps/api/.env")
35
+ return unless File.exist?("#{Souls.get_mother_path}/apps/api/.env")
38
36
 
39
37
  worker_paths = Souls.configuration.workers.map { |n| n[:name].split("-").last }
40
38
  worker_paths.each do |path|
@@ -5,8 +5,6 @@ module Souls
5
5
  Souls::Gcloud.new.config_set
6
6
  get_topics(workers: get_workers)
7
7
  puts(Paint["All Jobs Synced with PubSub Subscription!", :green])
8
- rescue Thor::Error => e
9
- raise(Thor::Error, e)
10
8
  end
11
9
 
12
10
  private
@@ -57,8 +57,6 @@ module Souls
57
57
  end
58
58
  File.open(file_path, "w") { |f| f.write(write_txt) }
59
59
  puts(Paint % ["Updated file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
60
- rescue Thor::Error => e
61
- raise(Thor::Error, e)
62
60
  end
63
61
 
64
62
  desc "update_mutation [CLASS_NAME]", "Update GraphQL Type from schema.rb"
@@ -123,8 +121,6 @@ module Souls
123
121
  FileUtils.rm(file_path)
124
122
  FileUtils.mv(new_file_path, file_path)
125
123
  puts(Paint % ["Updated file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
126
- rescue Thor::Error => e
127
- raise(Thor::Error, e)
128
124
  end
129
125
  end
130
126
  end
@@ -46,8 +46,6 @@ module Souls
46
46
  FileUtils.rm(file_path)
47
47
  FileUtils.mv(new_file_path, file_path)
48
48
  puts(Paint % ["Updated file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
49
- rescue Thor::Error => e
50
- raise(Thor::Error, e)
51
49
  end
52
50
 
53
51
  private
@@ -31,8 +31,6 @@ module Souls
31
31
  FileUtils.rm(file_path)
32
32
  FileUtils.mv(new_file_path, file_path)
33
33
  puts(Paint % ["Updated file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
34
- rescue Thor::Error => e
35
- raise(Thor::Error, e)
36
34
  end
37
35
 
38
36
  private
@@ -69,8 +69,6 @@ module Souls
69
69
  FileUtils.rm(file_path)
70
70
  FileUtils.mv(new_file_path, file_path)
71
71
  puts(Paint % ["Updated file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
72
- rescue Thor::Error => e
73
- raise(Thor::Error, e)
74
72
  end
75
73
 
76
74
  private
@@ -51,8 +51,6 @@ module Souls
51
51
  FileUtils.rm(file_path)
52
52
  FileUtils.mv(new_file_path, file_path)
53
53
  puts(Paint % ["Updated file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
54
- rescue Thor::Error => e
55
- raise(Thor::Error, e)
56
54
  end
57
55
 
58
56
  private
@@ -29,8 +29,6 @@ module Souls
29
29
  FileUtils.rm(file_path)
30
30
  FileUtils.mv(new_file_path, file_path)
31
31
  puts(Paint % ["Updated file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
32
- rescue Thor::Error => e
33
- raise(Thor::Error, e)
34
32
  end
35
33
 
36
34
  private
@@ -39,8 +39,6 @@ module Souls
39
39
  FileUtils.rm(file_path)
40
40
  FileUtils.mv(new_file_path, file_path)
41
41
  puts(Paint % ["Updated file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
42
- rescue Thor::Error => e
43
- raise(Thor::Error, e)
44
42
  end
45
43
  end
46
44
  end
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.8.3".freeze
2
+ VERSION = "1.8.4".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.8.3
1
+ 1.8.4
@@ -1 +1 @@
1
- 1.8.3
1
+ 1.8.4
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.8.3
4
+ version: 1.8.4
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-17 00:00:00.000000000 Z
13
+ date: 2021-11-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport