souls 0.25.20 → 0.26.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/exe/souls +1 -1
- data/lib/souls/init.rb +13 -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: aacb11d1e46b687da11266cf9e3f83f6a07aec2127d275704b7ef22454d6fdde
|
4
|
+
data.tar.gz: d973b6e0665e48d70029ce6dab44c1b793228665c0bf020be002695f11b1c4f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f9735ce8e99f50628c4bfff3e5682aede06f155131963285f8cd33faba461f3b1c9a0f45b98551d37d585107ad81954d59816636881c42d3f04ed83a7204bc2
|
7
|
+
data.tar.gz: 4bd3cedb4d4a82d47ceb15a1f41640d12993277ac98885680c205772648b7e910e658a5d49affea21f8a44ce0e39669cf41f5be54301991a5669ddf184b4ebd5
|
data/exe/souls
CHANGED
@@ -106,7 +106,7 @@ begin
|
|
106
106
|
when "g", "generate"
|
107
107
|
args = ARGV
|
108
108
|
status = Paint["Generating Files...", :yellow]
|
109
|
-
done = Paint["
|
109
|
+
done = Paint["You're All Set ☻", :yellow]
|
110
110
|
Whirly.start(spinner: "clock", interval: 420, stop: "🎉") do
|
111
111
|
Whirly.status = status
|
112
112
|
Souls::Generate.return_method(args)
|
data/lib/souls/init.rb
CHANGED
@@ -29,6 +29,15 @@ module Souls
|
|
29
29
|
puts(e)
|
30
30
|
end
|
31
31
|
|
32
|
+
def self.download_github_actions(app_name: "souls-app")
|
33
|
+
file_name = "github.tgz"
|
34
|
+
url = "https://storage.googleapis.com/souls-bucket/github_actions/github.tgz"
|
35
|
+
system("curl -OL #{url}")
|
36
|
+
FileUtils.mkdir("github")
|
37
|
+
system("tar -zxvf ./#{file_name} -C #{file_name}/#{app_name}")
|
38
|
+
FileUtils.rm(file_name)
|
39
|
+
end
|
40
|
+
|
32
41
|
def self.mother_config_init(app_name: "souls-app")
|
33
42
|
config_dir = "./#{app_name}/config"
|
34
43
|
FileUtils.mkdir_p(config_dir) unless Dir.exist?(config_dir)
|
@@ -69,6 +78,7 @@ module Souls
|
|
69
78
|
service_name = (strains[choice_num.to_i - 1]).to_s
|
70
79
|
Souls::Init.download_souls(app_name: app_name, service_name: service_name)
|
71
80
|
Souls::Init.mother_config_init(app_name: app_name)
|
81
|
+
Souls::Init.download_github_actions(app_name: app_name)
|
72
82
|
Souls::Init.initial_config_init(app_name: app_name, service_name: service_name)
|
73
83
|
else
|
74
84
|
puts(Paint["Coming Soon...", :blue])
|
@@ -107,7 +117,7 @@ module Souls
|
|
107
117
|
puts(line)
|
108
118
|
endroll = <<~TEXT
|
109
119
|
Easy to Run
|
110
|
-
$ cd #{app_name}/
|
120
|
+
$ cd #{app_name}/apps/#{service_name}
|
111
121
|
$ bundle
|
112
122
|
$ souls s
|
113
123
|
Go To : http://localhost:4000
|
@@ -120,12 +130,13 @@ module Souls
|
|
120
130
|
end
|
121
131
|
|
122
132
|
def self.download_worker
|
133
|
+
current_dir_name = FileUtils.pwd.to_s.match(%r{/([^/]+)/?$})[1]
|
123
134
|
version = Souls.get_latest_version_txt(service_name: "worker").join(".")
|
124
135
|
file_name = "worker-v#{version}.tgz"
|
125
136
|
url = "https://storage.googleapis.com/souls-bucket/boilerplates/workers/#{file_name}"
|
126
137
|
system("curl -OL #{url}")
|
127
138
|
system("mkdir -p ./apps/worker")
|
128
|
-
system("tar -zxvf ./#{file_name} -C ./apps/
|
139
|
+
system("tar -zxvf ./#{file_name} -C ./apps/")
|
129
140
|
FileUtils.rm(file_name)
|
130
141
|
line = Paint["====================================", :yellow]
|
131
142
|
puts("\n")
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.2
|
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.2
|