eac_tools 0.24.0 → 0.25.1
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 -27
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm/avm.gemspec +3 -3
- data/sub/avm/lib/avm/entries/auto_values/uri_entry.rb +1 -1
- data/sub/avm/lib/avm/entries/base/inherited_entry_value.rb +31 -0
- data/sub/avm/lib/avm/entries/base/uri_component_entry_value.rb +71 -0
- data/sub/avm/lib/avm/entries/base.rb +2 -10
- data/sub/avm/lib/avm/entries/entry.rb +10 -1
- data/sub/avm/lib/avm/entries/uri_builder.rb +4 -0
- data/sub/avm/lib/avm/instances/base/auto_values/filesystem.rb +0 -5
- data/sub/avm/lib/avm/instances/base/auto_values/install.rb +20 -15
- data/sub/avm/lib/avm/instances/entry_keys.rb +4 -3
- data/sub/avm/lib/avm/version.rb +1 -1
- data/sub/avm/spec/lib/avm/instances/base_spec.rb +17 -1
- data/sub/avm/spec/lib/avm/instances/base_spec_configs_storage.yml +7 -1
- data/sub/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +2 -2
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/deploy.rb +37 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/runners/base.rb +1 -1
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/{deploy → instances/deploy}/config/install.sh.template +0 -0
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/{deploy → instances/deploy}/config/secrets.yml +0 -0
- data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +2 -2
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/update_dependencies_requirements.rb +7 -1
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
- data/sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec +2 -2
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/file_unit.rb +1 -1
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/deploy.rb +2 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
- data/sub/eac_config/eac_config.gemspec +2 -2
- data/sub/eac_config/lib/eac_config/entry.rb +4 -0
- data/sub/eac_config/lib/eac_config/entry_path.rb +6 -1
- data/sub/eac_config/lib/eac_config/envvars_node.rb +4 -0
- data/sub/eac_config/lib/eac_config/node_entry.rb +5 -0
- data/sub/eac_config/lib/eac_config/version.rb +1 -1
- data/sub/eac_config/lib/eac_config/yaml_file_node.rb +4 -0
- data/sub/eac_config/spec/lib/eac_config/envvars_node_spec.rb +11 -0
- data/sub/eac_ruby_utils/eac_ruby_utils.gemspec +2 -2
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/class_accessors.rb +36 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/class_initialize.rb +14 -4
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/instance_initialize.rb +15 -4
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor.rb +20 -15
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_clean_environment.rb +53 -20
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_replace_objects/replace_instance_method.rb +36 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_replace_objects.rb +52 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/common_constructor_spec.rb +26 -0
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/{ruby_spec.rb → ruby/on_clean_environment_spec.rb} +11 -0
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby/on_replace_objects_spec.rb +67 -0
- metadata +28 -22
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/deploy.rb +0 -36
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.25.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm
|
@@ -16,14 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.39'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.39.1
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
29
|
+
version: '0.39'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.39.1
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: avm-eac_asciidoctor_base0
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +112,14 @@ dependencies:
|
|
106
112
|
requirements:
|
107
113
|
- - "~>"
|
108
114
|
- !ruby/object:Gem::Version
|
109
|
-
version: '0.
|
115
|
+
version: '0.13'
|
110
116
|
type: :runtime
|
111
117
|
prerelease: false
|
112
118
|
version_requirements: !ruby/object:Gem::Requirement
|
113
119
|
requirements:
|
114
120
|
- - "~>"
|
115
121
|
- !ruby/object:Gem::Version
|
116
|
-
version: '0.
|
122
|
+
version: '0.13'
|
117
123
|
- !ruby/object:Gem::Dependency
|
118
124
|
name: avm-eac_redmine_plugin_base0
|
119
125
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,34 +140,28 @@ dependencies:
|
|
134
140
|
requirements:
|
135
141
|
- - "~>"
|
136
142
|
- !ruby/object:Gem::Version
|
137
|
-
version: '0.
|
138
|
-
- - ">="
|
139
|
-
- !ruby/object:Gem::Version
|
140
|
-
version: 0.19.1
|
143
|
+
version: '0.20'
|
141
144
|
type: :runtime
|
142
145
|
prerelease: false
|
143
146
|
version_requirements: !ruby/object:Gem::Requirement
|
144
147
|
requirements:
|
145
148
|
- - "~>"
|
146
149
|
- !ruby/object:Gem::Version
|
147
|
-
version: '0.
|
148
|
-
- - ">="
|
149
|
-
- !ruby/object:Gem::Version
|
150
|
-
version: 0.19.1
|
150
|
+
version: '0.20'
|
151
151
|
- !ruby/object:Gem::Dependency
|
152
152
|
name: avm-eac_webapp_base0
|
153
153
|
requirement: !ruby/object:Gem::Requirement
|
154
154
|
requirements:
|
155
155
|
- - "~>"
|
156
156
|
- !ruby/object:Gem::Version
|
157
|
-
version: '0.
|
157
|
+
version: '0.5'
|
158
158
|
type: :runtime
|
159
159
|
prerelease: false
|
160
160
|
version_requirements: !ruby/object:Gem::Requirement
|
161
161
|
requirements:
|
162
162
|
- - "~>"
|
163
163
|
- !ruby/object:Gem::Version
|
164
|
-
version: '0.
|
164
|
+
version: '0.5'
|
165
165
|
- !ruby/object:Gem::Dependency
|
166
166
|
name: avm-eac_wordpress_base0
|
167
167
|
requirement: !ruby/object:Gem::Requirement
|
@@ -202,14 +202,14 @@ dependencies:
|
|
202
202
|
requirements:
|
203
203
|
- - "~>"
|
204
204
|
- !ruby/object:Gem::Version
|
205
|
-
version: '0.
|
205
|
+
version: '0.102'
|
206
206
|
type: :runtime
|
207
207
|
prerelease: false
|
208
208
|
version_requirements: !ruby/object:Gem::Requirement
|
209
209
|
requirements:
|
210
210
|
- - "~>"
|
211
211
|
- !ruby/object:Gem::Version
|
212
|
-
version: '0.
|
212
|
+
version: '0.102'
|
213
213
|
- !ruby/object:Gem::Dependency
|
214
214
|
name: eac_ruby_gem_support
|
215
215
|
requirement: !ruby/object:Gem::Requirement
|
@@ -386,9 +386,9 @@ files:
|
|
386
386
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/apache_host.rb
|
387
387
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/core_update.rb
|
388
388
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/data_unit.rb
|
389
|
-
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/deploy.rb
|
390
389
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances.rb
|
391
390
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base.rb
|
391
|
+
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/deploy.rb
|
392
392
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/docker_image.rb
|
393
393
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners.rb
|
394
394
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/docker.rb
|
@@ -406,8 +406,8 @@ files:
|
|
406
406
|
- sub/avm-eac_redmine_base0/locale/pt-BR.yml
|
407
407
|
- sub/avm-eac_redmine_base0/spec/rubocop_spec.rb
|
408
408
|
- sub/avm-eac_redmine_base0/spec/spec_helper.rb
|
409
|
-
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/deploy/config/install.sh.template
|
410
|
-
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/deploy/config/secrets.yml
|
409
|
+
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/deploy/config/install.sh.template
|
410
|
+
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/deploy/config/secrets.yml
|
411
411
|
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template
|
412
412
|
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile_apache_setup
|
413
413
|
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_http_virtualhost.conf.template
|
@@ -772,6 +772,8 @@ files:
|
|
772
772
|
- sub/avm/lib/avm/entries/auto_values/entry.rb
|
773
773
|
- sub/avm/lib/avm/entries/auto_values/uri_entry.rb
|
774
774
|
- sub/avm/lib/avm/entries/base.rb
|
775
|
+
- sub/avm/lib/avm/entries/base/inherited_entry_value.rb
|
776
|
+
- sub/avm/lib/avm/entries/base/uri_component_entry_value.rb
|
775
777
|
- sub/avm/lib/avm/entries/entry.rb
|
776
778
|
- sub/avm/lib/avm/entries/uri_builder.rb
|
777
779
|
- sub/avm/lib/avm/executables.rb
|
@@ -1052,6 +1054,7 @@ files:
|
|
1052
1054
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern/class_setup.rb
|
1053
1055
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern/module_setup.rb
|
1054
1056
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor.rb
|
1057
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/class_accessors.rb
|
1055
1058
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/class_initialize.rb
|
1056
1059
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/instance_initialize.rb
|
1057
1060
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/super_args.rb
|
@@ -1186,6 +1189,8 @@ files:
|
|
1186
1189
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/ruby.rb
|
1187
1190
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/command.rb
|
1188
1191
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_clean_environment.rb
|
1192
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_replace_objects.rb
|
1193
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_replace_objects/replace_instance_method.rb
|
1189
1194
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/settings_provider.rb
|
1190
1195
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/settings_provider/setting_value.rb
|
1191
1196
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb
|
@@ -1243,7 +1248,8 @@ files:
|
|
1243
1248
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub/base_spec.rb
|
1244
1249
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub/base_spec/stubbed_module_a.rb
|
1245
1250
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub/base_spec/stubbed_not_module.rb
|
1246
|
-
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/
|
1251
|
+
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby/on_clean_environment_spec.rb
|
1252
|
+
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby/on_replace_objects_spec.rb
|
1247
1253
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/settings_provider_spec.rb
|
1248
1254
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/simple_cache_spec.rb
|
1249
1255
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/struct_spec.rb
|
@@ -1,36 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_webapp_base0/deploy'
|
4
|
-
require 'eac_ruby_utils/ruby'
|
5
|
-
|
6
|
-
module Avm
|
7
|
-
module EacRedmineBase0
|
8
|
-
class Deploy < ::Avm::EacWebappBase0::Deploy
|
9
|
-
set_callback :assert_instance_branch, :after, :run_installer
|
10
|
-
|
11
|
-
def run_installer
|
12
|
-
infom 'Running installer'
|
13
|
-
::EacRubyUtils::Ruby.on_clean_environment do
|
14
|
-
installer_command.system!
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
def installer_command
|
19
|
-
instance.host_env.command(installer_path, install_task)
|
20
|
-
end
|
21
|
-
|
22
|
-
def installer_path
|
23
|
-
::File.join(instance.read_entry(::Avm::Instances::EntryKeys::FS_PATH), 'plugins',
|
24
|
-
'redmine_installer', 'installer', 'run.sh')
|
25
|
-
end
|
26
|
-
|
27
|
-
def install_task
|
28
|
-
if instance.read_entry_optional('web.path').present?
|
29
|
-
'redmine_as_apache_path'
|
30
|
-
else
|
31
|
-
'redmine_as_apache_base'
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|