eac_tools 0.96.0 → 0.96.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +27 -33
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec +22 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_base.rb +16 -0
- data/sub/{avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0 → avm-eac_rails_base1/lib/avm/eac_rails_base1}/instances/apache_host.rb +4 -5
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_path.rb +21 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb +50 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/deploy.rb +23 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes/daemon.rb +39 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes/tasks_scheduler.rb +27 -0
- data/sub/{avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros.rb → avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes.rb} +2 -2
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/bundle.rb +28 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb +28 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/log.rb +45 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs/clear.rb +27 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs.rb +19 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/rails_server.rb +34 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler/systemd_unit.rb +48 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler.rb +19 -0
- data/sub/{avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources → avm-eac_rails_base1/lib/avm/eac_rails_base1/instances}/runners.rb +2 -2
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit/service.rb +72 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler_command.rb +31 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit.rb +59 -0
- data/sub/{avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0 → avm-eac_rails_base1/lib/avm/eac_rails_base1}/instances.rb +1 -1
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/bundle.rb +27 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/rails_environment.rb +47 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/sources/base.rb +43 -0
- data/sub/{avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0 → avm-eac_rails_base1/lib/avm/eac_rails_base1}/version.rb +2 -2
- data/sub/{avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0.rb → avm-eac_rails_base1/lib/avm/eac_rails_base1.rb} +1 -1
- data/sub/{avm-eac_asciidoctor_base0 → avm-eac_rails_base1}/spec/spec_helper.rb +0 -4
- data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/instances/apache_path/extra_content.conf +5 -0
- data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler.service +12 -0
- data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler_command.sh +6 -0
- metadata +47 -90
- data/sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec +0 -26
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/documents_owner.rb +0 -30
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base/file_resource_name.rb +0 -37
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base.rb +0 -17
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/apache_path.rb +0 -12
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/base.rb +0 -33
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/body_target.rb +0 -47
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/header_lines.rb +0 -92
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/media.rb +0 -28
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/pre_process_line.rb +0 -64
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document.rb +0 -101
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/theme.rb +0 -41
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build.rb +0 -60
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/deploy.rb +0 -28
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/base.rb +0 -21
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/breadcrumbs.rb +0 -55
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/child_docs/document_builder.rb +0 -63
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/child_docs.rb +0 -35
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/default_body.rb +0 -21
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/logging/catcher.rb +0 -47
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/logging/error.rb +0 -18
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/logging.rb +0 -11
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/source_generators/base.rb +0 -28
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/source_generators.rb +0 -11
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base/instance_to_build.rb +0 -45
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base/theme.rb +0 -46
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base.rb +0 -49
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document/media.rb +0 -28
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document/title.rb +0 -31
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document.rb +0 -56
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/build.rb +0 -54
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/document/build.rb +0 -46
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/document.rb +0 -30
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/documents.rb +0 -28
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources.rb +0 -11
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/file_formats/base_spec.rb +0 -13
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec.rb +0 -81
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec_files/pre_processed_root_body.adoc +0 -25
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec.rb +0 -22
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/_media/a_media_file +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc1/_media/a_media_file +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc1/body.adoc +0 -11
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc1/title +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/body.adoc +0 -11
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/doc2_1/_media/a_media_file +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/doc2_1/body.adoc +0 -11
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/doc2_1/title +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/title +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/_media/a_media_file +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/_theme/main.css +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc1/_media/a_media_file +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc1/index.html +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc2/doc2_1/_media/a_media_file +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc2/doc2_1/index.html +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc2/index.html +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/index.html +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec.rb +0 -8
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/content/body.adoc +0 -11
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/content/title +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/theme/main.css +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/sources/base_spec.rb +0 -16
- data/sub/avm-eac_asciidoctor_base0/spec/spec_helper/eac_asciidoctor_base0_stubs.rb +0 -55
- data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/content/body.adoc +0 -11
- data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/content/title +0 -1
- data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/theme/main.css +0 -1
- /data/sub/{avm-eac_asciidoctor_base0 → avm-eac_rails_base1}/Gemfile +0 -0
- /data/sub/{avm-eac_asciidoctor_base0 → avm-eac_rails_base1}/spec/rubocop_spec.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a85250168e8a4dece64a1b735d4a8f044823bf911a739fd172960ede3274467
|
4
|
+
data.tar.gz: edfbfcef25c09e651034d391d415fe0692596880242b972023cd2b6802d3a410
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc5fbdca4469bec0d6063bb26e859eebfd404a47ef60ce15ebfd6da9342bdc2f8826b5fa5aa4976fff115a6a586fa7d092de4c6cc484156aeaa5c1e422416209
|
7
|
+
data.tar.gz: f68acfdb87c5c8800e294e6cd7424fea6d1e11fae8044c6205e96b5adc049fc9797a98e215ca53fa6dd48b65a092e093cb187c6b2efe4a3f13452d11df948fe0
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eac_tools (0.96.
|
4
|
+
eac_tools (0.96.2)
|
5
5
|
avm (~> 0.94)
|
6
6
|
avm-eac_asciidoctor_base0 (~> 0.24)
|
7
7
|
avm-eac_generic_base0 (~> 0.13)
|
@@ -12,29 +12,25 @@ PATH
|
|
12
12
|
avm-eac_postgresql_base0 (~> 0.5, >= 0.5.3)
|
13
13
|
avm-eac_python_base0 (~> 0.2, >= 0.2.2)
|
14
14
|
avm-eac_rails_base0 (~> 0.11, >= 0.11.1)
|
15
|
-
avm-eac_rails_base1 (~> 0.10)
|
15
|
+
avm-eac_rails_base1 (~> 0.10, >= 0.10.1)
|
16
16
|
avm-eac_redmine_base0 (~> 0.22, >= 0.22.3)
|
17
17
|
avm-eac_redmine_plugin_base0 (~> 0.4, >= 0.4.1)
|
18
18
|
avm-eac_ruby_base0 (~> 0.1)
|
19
|
-
avm-eac_ruby_base1 (~> 0.35)
|
19
|
+
avm-eac_ruby_base1 (~> 0.35, >= 0.35.1)
|
20
20
|
avm-eac_webapp_base0 (~> 0.20, >= 0.20.1)
|
21
21
|
avm-eac_wordpress_base0 (~> 0.3, >= 0.3.2)
|
22
22
|
avm-git (~> 0.18)
|
23
23
|
avm-tools (~> 0.162)
|
24
|
-
eac_ruby_gem_support (~> 0.10)
|
25
24
|
eac_ruby_utils (~> 0.122)
|
26
25
|
|
27
26
|
PATH
|
28
|
-
remote: sub/avm-
|
27
|
+
remote: sub/avm-eac_rails_base1
|
29
28
|
specs:
|
30
|
-
avm-
|
31
|
-
|
29
|
+
avm-eac_rails_base1 (0.10.1)
|
30
|
+
avm (~> 0.94)
|
31
|
+
avm-eac_ruby_base1 (~> 0.35, >= 0.35.1)
|
32
32
|
avm-eac_webapp_base0 (~> 0.20, >= 0.20.1)
|
33
|
-
eac_fs (~> 0.18)
|
34
|
-
eac_ruby_gem_support (~> 0.10)
|
35
33
|
eac_ruby_utils (~> 0.122)
|
36
|
-
os (~> 1.1, >= 1.1.4)
|
37
|
-
rouge (~> 3.30)
|
38
34
|
|
39
35
|
GEM
|
40
36
|
remote: https://rubygems.org/
|
@@ -58,6 +54,14 @@ GEM
|
|
58
54
|
eac_templates (~> 0.7, >= 0.7.1)
|
59
55
|
minitar (~> 0.9)
|
60
56
|
ruby-progressbar (~> 1.13)
|
57
|
+
avm-eac_asciidoctor_base0 (0.24.0)
|
58
|
+
asciidoctor (~> 2.0, >= 2.0.23)
|
59
|
+
avm-eac_webapp_base0 (~> 0.20, >= 0.20.1)
|
60
|
+
eac_fs (~> 0.18)
|
61
|
+
eac_ruby_gem_support (~> 0.10)
|
62
|
+
eac_ruby_utils (~> 0.122)
|
63
|
+
os (~> 1.1, >= 1.1.4)
|
64
|
+
rouge (~> 3.30)
|
61
65
|
avm-eac_generic_base0 (0.13.0)
|
62
66
|
avm (~> 0.90)
|
63
67
|
eac_ruby_utils (~> 0.121)
|
@@ -86,11 +90,6 @@ GEM
|
|
86
90
|
avm-eac_rails_base0 (0.11.1)
|
87
91
|
avm-eac_rails_base1 (~> 0.10)
|
88
92
|
eac_ruby_utils (~> 0.121)
|
89
|
-
avm-eac_rails_base1 (0.10.0)
|
90
|
-
avm (~> 0.81)
|
91
|
-
avm-eac_ruby_base1 (~> 0.33)
|
92
|
-
avm-eac_webapp_base0 (~> 0.18, >= 0.18.2)
|
93
|
-
eac_ruby_utils (~> 0.119, >= 0.119.2)
|
94
93
|
avm-eac_redmine_base0 (0.22.3)
|
95
94
|
avm (~> 0.92)
|
96
95
|
avm-eac_generic_base0 (~> 0.13)
|
@@ -106,11 +105,10 @@ GEM
|
|
106
105
|
avm-eac_ruby_base0 (0.1.0)
|
107
106
|
avm-eac_ruby_base1 (~> 0.34)
|
108
107
|
eac_ruby_utils (~> 0.122)
|
109
|
-
avm-eac_ruby_base1 (0.35.
|
108
|
+
avm-eac_ruby_base1 (0.35.1)
|
110
109
|
avm (~> 0.94)
|
111
110
|
avm-eac_generic_base0 (~> 0.13)
|
112
111
|
eac_envs-http (~> 0.5, >= 0.5.1)
|
113
|
-
eac_ruby_gem_support (~> 0.10)
|
114
112
|
eac_ruby_utils (~> 0.122)
|
115
113
|
avm-eac_ubuntu_base0 (0.5.1)
|
116
114
|
avm (~> 0.86, >= 0.86.2)
|
@@ -221,7 +219,7 @@ GEM
|
|
221
219
|
addressable (~> 2.8)
|
222
220
|
rchardet (~> 1.8)
|
223
221
|
htmlbeautifier (1.4.3)
|
224
|
-
i18n (1.14.
|
222
|
+
i18n (1.14.6)
|
225
223
|
concurrent-ruby (~> 1.0)
|
226
224
|
json (2.7.2)
|
227
225
|
language_server-protocol (3.17.0.3)
|
@@ -232,7 +230,7 @@ GEM
|
|
232
230
|
os (1.1.4)
|
233
231
|
parallel (1.26.3)
|
234
232
|
parseconfig (1.1.2)
|
235
|
-
parser (3.3.
|
233
|
+
parser (3.3.5.0)
|
236
234
|
ast (~> 2.4.1)
|
237
235
|
racc
|
238
236
|
parslet (2.0.0)
|
@@ -244,40 +242,37 @@ GEM
|
|
244
242
|
rainbow (3.1.1)
|
245
243
|
rchardet (1.8.0)
|
246
244
|
regexp_parser (2.9.2)
|
247
|
-
rexml (3.3.6)
|
248
|
-
strscan
|
249
245
|
rouge (3.30.0)
|
250
246
|
rspec (3.13.0)
|
251
247
|
rspec-core (~> 3.13.0)
|
252
248
|
rspec-expectations (~> 3.13.0)
|
253
249
|
rspec-mocks (~> 3.13.0)
|
254
|
-
rspec-core (3.13.
|
250
|
+
rspec-core (3.13.1)
|
255
251
|
rspec-support (~> 3.13.0)
|
256
|
-
rspec-expectations (3.13.
|
252
|
+
rspec-expectations (3.13.3)
|
257
253
|
diff-lcs (>= 1.2.0, < 2.0)
|
258
254
|
rspec-support (~> 3.13.0)
|
259
255
|
rspec-mocks (3.13.1)
|
260
256
|
diff-lcs (>= 1.2.0, < 2.0)
|
261
257
|
rspec-support (~> 3.13.0)
|
262
258
|
rspec-support (3.13.1)
|
263
|
-
rubocop (1.
|
259
|
+
rubocop (1.66.1)
|
264
260
|
json (~> 2.3)
|
265
261
|
language_server-protocol (>= 3.17.0)
|
266
262
|
parallel (~> 1.10)
|
267
263
|
parser (>= 3.3.0.2)
|
268
264
|
rainbow (>= 2.2.2, < 4.0)
|
269
265
|
regexp_parser (>= 2.4, < 3.0)
|
270
|
-
|
271
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
266
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
272
267
|
ruby-progressbar (~> 1.7)
|
273
268
|
unicode-display_width (>= 2.4.0, < 3.0)
|
274
|
-
rubocop-ast (1.32.
|
269
|
+
rubocop-ast (1.32.3)
|
275
270
|
parser (>= 3.3.1.0)
|
276
271
|
rubocop-capybara (2.21.0)
|
277
272
|
rubocop (~> 1.41)
|
278
273
|
rubocop-factory_bot (2.26.1)
|
279
274
|
rubocop (~> 1.61)
|
280
|
-
rubocop-rails (2.26.
|
275
|
+
rubocop-rails (2.26.2)
|
281
276
|
activesupport (>= 4.2.0)
|
282
277
|
rack (>= 1.1)
|
283
278
|
rubocop (>= 1.52.0, < 2.0)
|
@@ -297,7 +292,6 @@ GEM
|
|
297
292
|
unicode-display_width (>= 1.5, < 3.0)
|
298
293
|
unicode_utils (~> 1.4)
|
299
294
|
strings-ansi (0.2.0)
|
300
|
-
strscan (3.1.0)
|
301
295
|
tty-color (0.6.0)
|
302
296
|
tty-screen (0.8.2)
|
303
297
|
tty-table (0.12.0)
|
@@ -306,16 +300,16 @@ GEM
|
|
306
300
|
tty-screen (~> 0.8)
|
307
301
|
tzinfo (2.0.6)
|
308
302
|
concurrent-ruby (~> 1.0)
|
309
|
-
unicode-display_width (2.
|
303
|
+
unicode-display_width (2.6.0)
|
310
304
|
unicode_utils (1.4.0)
|
311
|
-
zeitwerk (2.6.
|
305
|
+
zeitwerk (2.6.18)
|
312
306
|
zlib (2.1.1)
|
313
307
|
|
314
308
|
PLATFORMS
|
315
309
|
x86_64-linux
|
316
310
|
|
317
311
|
DEPENDENCIES
|
318
|
-
avm-
|
312
|
+
avm-eac_rails_base1!
|
319
313
|
eac_ruby_gem_support (~> 0.10)
|
320
314
|
eac_tools!
|
321
315
|
|
data/lib/eac_tools/version.rb
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path('lib', __dir__)
|
4
|
+
|
5
|
+
require 'avm/eac_rails_base1/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = 'avm-eac_rails_base1'
|
9
|
+
s.version = Avm::EacRailsBase1::VERSION
|
10
|
+
s.authors = ['Put here the authors']
|
11
|
+
s.summary = 'Put here de description.'
|
12
|
+
|
13
|
+
s.files = Dir['{lib,template}/**/*']
|
14
|
+
s.required_ruby_version = '>= 2.7'
|
15
|
+
|
16
|
+
s.add_dependency 'avm', '~> 0.94'
|
17
|
+
s.add_dependency 'avm-eac_ruby_base1', '~> 0.35', '>= 0.35.1'
|
18
|
+
s.add_dependency 'avm-eac_webapp_base0', '~> 0.20', '>= 0.20.1'
|
19
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.122'
|
20
|
+
|
21
|
+
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.10'
|
22
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module EacRailsBase1
|
7
|
+
module Instances
|
8
|
+
module ApacheBase
|
9
|
+
# @return [String]
|
10
|
+
def document_root
|
11
|
+
::File.join(super, 'public')
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -1,17 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'avm/eac_rails_base1/instances/apache_base'
|
3
4
|
require 'avm/eac_webapp_base0/instances/apache_host'
|
4
5
|
|
5
6
|
module Avm
|
6
|
-
module
|
7
|
+
module EacRailsBase1
|
7
8
|
module Instances
|
8
9
|
class ApacheHost < ::Avm::EacWebappBase0::Instances::ApacheHost
|
9
|
-
|
10
|
-
instance.read_entry(::Avm::Instances::EntryKeys::INSTALL_PATH)
|
11
|
-
end
|
10
|
+
prepend ::Avm::EacRailsBase1::Instances::ApacheBase
|
12
11
|
|
13
12
|
def extra_content
|
14
|
-
''
|
13
|
+
'PassengerEnabled On'
|
15
14
|
end
|
16
15
|
end
|
17
16
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_rails_base1/instances/apache_base'
|
4
|
+
require 'avm/eac_webapp_base0/instances/apache_path'
|
5
|
+
require 'eac_templates/core_ext'
|
6
|
+
|
7
|
+
module Avm
|
8
|
+
module EacRailsBase1
|
9
|
+
module Instances
|
10
|
+
class ApachePath < ::Avm::EacWebappBase0::Instances::ApachePath
|
11
|
+
prepend ::Avm::EacRailsBase1::Instances::ApacheBase
|
12
|
+
|
13
|
+
# @return [String]
|
14
|
+
def extra_content
|
15
|
+
::Avm::EacRailsBase1::Instances::ApachePath.template.child('extra_content.conf')
|
16
|
+
.apply(variables_source)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_rails_base1/instances/apache_host'
|
4
|
+
require 'avm/eac_rails_base1/instances/apache_path'
|
5
|
+
require 'avm/eac_rails_base1/instances/processes/tasks_scheduler'
|
6
|
+
require 'avm/eac_rails_base1/instances/runners'
|
7
|
+
require 'avm/eac_ruby_base1/instances/mixin'
|
8
|
+
require 'avm/eac_ruby_base1/sources/base'
|
9
|
+
require 'avm/eac_webapp_base0/instances/base'
|
10
|
+
|
11
|
+
module Avm
|
12
|
+
module EacRailsBase1
|
13
|
+
module Instances
|
14
|
+
class Base < ::Avm::EacWebappBase0::Instances::Base
|
15
|
+
include ::Avm::EacRubyBase1::Instances::Mixin
|
16
|
+
|
17
|
+
DEFAULT_RAILS_ENVIRONMENT = 'production'
|
18
|
+
|
19
|
+
def bundle(*args)
|
20
|
+
the_gem.bundle(*args).chdir_root.envvar('RAILS_ENV', DEFAULT_RAILS_ENVIRONMENT)
|
21
|
+
end
|
22
|
+
|
23
|
+
# @return [Avm::Instances::Data::Package]
|
24
|
+
def data_package_create
|
25
|
+
super.add_unit('database', database_unit)
|
26
|
+
end
|
27
|
+
|
28
|
+
# @return [Addressable::URI]
|
29
|
+
def gemfile_source
|
30
|
+
application.local_source.gemfile_source
|
31
|
+
end
|
32
|
+
|
33
|
+
# @return [Array<Avm::Instances::Process>]
|
34
|
+
def processes
|
35
|
+
super + [::Avm::EacRailsBase1::Instances::Processes::TasksScheduler.new(self)]
|
36
|
+
end
|
37
|
+
|
38
|
+
def rake(*args)
|
39
|
+
bundle('exec', 'rake', *args)
|
40
|
+
end
|
41
|
+
|
42
|
+
def the_gem
|
43
|
+
@the_gem ||= ::Avm::EacRubyBase1::Sources::Base.new(
|
44
|
+
::File.join(read_entry('install.path'))
|
45
|
+
).env_set(host_env)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_envs/http/request'
|
4
|
+
require 'avm/eac_webapp_base0/instances/deploy'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacRailsBase1
|
8
|
+
module Instances
|
9
|
+
class Deploy < ::Avm::EacWebappBase0::Instances::Deploy
|
10
|
+
set_callback :write_on_target, :before do
|
11
|
+
check_rubygems_access
|
12
|
+
end
|
13
|
+
|
14
|
+
# @return [void]
|
15
|
+
# @raise [EacEnvs::Http::Error]
|
16
|
+
def check_rubygems_access
|
17
|
+
infom "Checkin access to gems provider (\"#{instance.gemfile_source}\")..."
|
18
|
+
::EacEnvs::Http::Request.new.url(instance.gemfile_source).response.body_data_or_raise
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/instances/process'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacRailsBase1
|
8
|
+
module Instances
|
9
|
+
module Processes
|
10
|
+
class Daemon < ::Avm::Instances::Process
|
11
|
+
acts_as_abstract :command_name, :gem_name
|
12
|
+
|
13
|
+
# @return [Boolean]
|
14
|
+
def available?
|
15
|
+
instance.application.local_source.gemfile_lock_gem_version(gem_name).present?
|
16
|
+
end
|
17
|
+
|
18
|
+
def disable
|
19
|
+
daemon_command(:stop).system!
|
20
|
+
end
|
21
|
+
|
22
|
+
def enable
|
23
|
+
daemon_command(:start).system!
|
24
|
+
end
|
25
|
+
|
26
|
+
def enabled?
|
27
|
+
daemon_command(:status).execute.fetch(:exit_code).zero?
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
def daemon_command(action)
|
33
|
+
instance.bundle('exec', command_name, action)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_rails_base1/instances/processes/daemon'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacRailsBase1
|
8
|
+
module Instances
|
9
|
+
module Processes
|
10
|
+
class TasksScheduler < ::Avm::EacRailsBase1::Instances::Processes::Daemon
|
11
|
+
GEM_NAME = 'tasks_scheduler'
|
12
|
+
COMMAND_NAME = 'tasks_scheduler'
|
13
|
+
|
14
|
+
# @return [String]
|
15
|
+
def command_name
|
16
|
+
COMMAND_NAME
|
17
|
+
end
|
18
|
+
|
19
|
+
# @return [String]
|
20
|
+
def gem_name
|
21
|
+
GEM_NAME
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_rails_base1/runner_with/bundle'
|
4
|
+
require 'eac_cli/core_ext'
|
5
|
+
require 'shellwords'
|
6
|
+
|
7
|
+
module Avm
|
8
|
+
module EacRailsBase1
|
9
|
+
module Instances
|
10
|
+
module Runners
|
11
|
+
class Bundle
|
12
|
+
runner_with ::Avm::EacRailsBase1::RunnerWith::Bundle, :help do
|
13
|
+
desc 'Runs "bundle ...".'
|
14
|
+
pos_arg :'bundle-args', repeat: true, optional: true
|
15
|
+
end
|
16
|
+
|
17
|
+
def run
|
18
|
+
bundle_run
|
19
|
+
end
|
20
|
+
|
21
|
+
def bundle_args
|
22
|
+
parsed.bundle_args.reject { |arg| arg == '--' }
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_rails_base1/runner_with/bundle'
|
4
|
+
require 'eac_cli/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacRailsBase1
|
8
|
+
module Instances
|
9
|
+
module Runners
|
10
|
+
class CodeRunner
|
11
|
+
runner_with :help, ::Avm::EacRailsBase1::RunnerWith::Bundle do
|
12
|
+
desc 'Runs a Ruby code with "rails runner".'
|
13
|
+
pos_arg :code
|
14
|
+
end
|
15
|
+
|
16
|
+
def run
|
17
|
+
infov 'Environment', runner_context.call(:instance).host_env
|
18
|
+
bundle_run
|
19
|
+
end
|
20
|
+
|
21
|
+
def bundle_args
|
22
|
+
%w[exec rails runner] + [parsed.code]
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_rails_base1/runner_with/rails_environment'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module EacRailsBase1
|
7
|
+
module Instances
|
8
|
+
module Runners
|
9
|
+
class Log
|
10
|
+
runner_with :help, ::Avm::EacRailsBase1::RunnerWith::RailsEnvironment do
|
11
|
+
desc 'Read application\'s log.'
|
12
|
+
bool_opt '-f', '--follow', 'Output appended data as the log grows.'
|
13
|
+
end
|
14
|
+
|
15
|
+
def run
|
16
|
+
start_banner
|
17
|
+
tail_command.system
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def log_path
|
23
|
+
::File.join(rails_instance.read_entry('install.path'), 'log',
|
24
|
+
"#{rails_environment}.log")
|
25
|
+
end
|
26
|
+
|
27
|
+
def start_banner
|
28
|
+
infov 'Environment', rails_environment
|
29
|
+
infov 'Log path', log_path
|
30
|
+
end
|
31
|
+
|
32
|
+
def tail_command
|
33
|
+
rails_instance.host_env.command(*tail_command_args)
|
34
|
+
end
|
35
|
+
|
36
|
+
def tail_command_args
|
37
|
+
r = %w[tail]
|
38
|
+
r << '--follow' if parsed.follow?
|
39
|
+
r + [log_path]
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_rails_base1/runner_with/rails_environment'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module EacRailsBase1
|
7
|
+
module Instances
|
8
|
+
module Runners
|
9
|
+
class Logs
|
10
|
+
class Clear
|
11
|
+
runner_with :help, ::Avm::EacRailsBase1::RunnerWith::Bundle do
|
12
|
+
desc 'Clear logs.'
|
13
|
+
end
|
14
|
+
|
15
|
+
def run
|
16
|
+
bundle_run
|
17
|
+
end
|
18
|
+
|
19
|
+
def bundle_args
|
20
|
+
%w[exec rake log:clear]
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_cli/core_ext'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module EacRailsBase1
|
7
|
+
module Instances
|
8
|
+
module Runners
|
9
|
+
class Logs
|
10
|
+
require_sub __FILE__
|
11
|
+
runner_with :help, :subcommands do
|
12
|
+
desc 'Manipule multiple application\'s logs.'
|
13
|
+
subcommands
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_rails_base1/runner_with/bundle'
|
4
|
+
require 'avm/instances/entry_keys'
|
5
|
+
require 'eac_cli/core_ext'
|
6
|
+
require 'shellwords'
|
7
|
+
|
8
|
+
module Avm
|
9
|
+
module EacRailsBase1
|
10
|
+
module Instances
|
11
|
+
module Runners
|
12
|
+
class RailsServer
|
13
|
+
DEFAULT_RAILS_ENVIRONMENT = 'development'
|
14
|
+
runner_with :help, ::Avm::EacRailsBase1::RunnerWith::Bundle do
|
15
|
+
desc 'Run the embbeded Rails web server.'
|
16
|
+
end
|
17
|
+
|
18
|
+
def run
|
19
|
+
infov 'Environment', rails_environment
|
20
|
+
infov 'Bundle args', ::Shellwords.join(bundle_args)
|
21
|
+
infov 'Result', bundle_command.system
|
22
|
+
end
|
23
|
+
|
24
|
+
protected
|
25
|
+
|
26
|
+
def bundle_args
|
27
|
+
['exec', 'rails', 'server', '--port',
|
28
|
+
runner_context.call(:instance).read_entry(::Avm::Instances::EntryKeys::WEB_PORT)]
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_rails_base1/instances/systemd_unit'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacRailsBase1
|
8
|
+
module Instances
|
9
|
+
module Runners
|
10
|
+
class TasksScheduler
|
11
|
+
class SystemdUnit
|
12
|
+
DEFAULT_RESTART = 'on-failure'
|
13
|
+
|
14
|
+
runner_with :help do
|
15
|
+
desc 'Configure Systemd unit for instace\'s tasks scheduler daemon (Reference: ' \
|
16
|
+
'https://www.freedesktop.org/software/systemd/man/systemd.service.html).'
|
17
|
+
bool_opt '-e', '--exec-run', 'Run daemon with "run" instead of "start"/"stop".'
|
18
|
+
arg_opt '-r', '--restart', 'Value for systemd.service, Restart=.',
|
19
|
+
default: DEFAULT_RESTART
|
20
|
+
end
|
21
|
+
|
22
|
+
delegate :restart, to: :parsed
|
23
|
+
|
24
|
+
def run
|
25
|
+
if result.error?
|
26
|
+
fatal_error result.to_s
|
27
|
+
else
|
28
|
+
infov 'Result', result.label
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
|
34
|
+
def systemd_unit_uncached
|
35
|
+
::Avm::EacRailsBase1::Instances::SystemdUnit.new(runner_context.call(:instance),
|
36
|
+
restart: parsed.restart,
|
37
|
+
exec_run: parsed.exec_run?)
|
38
|
+
end
|
39
|
+
|
40
|
+
def result_uncached
|
41
|
+
systemd_unit.run
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|