eac_tools 0.24.1 → 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +31 -30
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm/avm.gemspec +2 -2
- 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/default_value.rb +27 -0
- data/sub/avm/lib/avm/entries/base/uri_component_entry_value/inherited_value.rb +38 -0
- data/sub/avm/lib/avm/entries/base/uri_component_entry_value/url_entry_value.rb +31 -0
- data/sub/avm/lib/avm/entries/base/uri_component_entry_value.rb +8 -19
- data/sub/avm/lib/avm/entries/base.rb +0 -10
- data/sub/avm/lib/avm/instances/base/auto_values/filesystem.rb +0 -26
- data/sub/avm/lib/avm/instances/base/auto_values/install.rb +14 -9
- data/sub/avm/lib/avm/instances/entry_keys.rb +2 -3
- data/sub/avm/lib/avm/version.rb +1 -1
- data/sub/avm/spec/lib/avm/instances/base_spec.rb +1 -1
- data/sub/avm/spec/lib/avm/instances/base_spec_configs_storage.yml +1 -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/avm-tools/avm-tools.gemspec +2 -2
- data/sub/avm-tools/lib/avm/tools/runner/git/deploy.rb +1 -1
- data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
- data/sub/eac_config/eac_config.gemspec +1 -1
- data/sub/eac_config/lib/eac_config/entry.rb +4 -0
- 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 +26 -24
- 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.26.0
|
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,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.40'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.40'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: avm-eac_asciidoctor_base0
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '0.
|
109
|
+
version: '0.13'
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '0.
|
116
|
+
version: '0.13'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: avm-eac_redmine_plugin_base0
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,34 +134,28 @@ dependencies:
|
|
134
134
|
requirements:
|
135
135
|
- - "~>"
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: '0.
|
138
|
-
- - ">="
|
139
|
-
- !ruby/object:Gem::Version
|
140
|
-
version: 0.19.1
|
137
|
+
version: '0.20'
|
141
138
|
type: :runtime
|
142
139
|
prerelease: false
|
143
140
|
version_requirements: !ruby/object:Gem::Requirement
|
144
141
|
requirements:
|
145
142
|
- - "~>"
|
146
143
|
- !ruby/object:Gem::Version
|
147
|
-
version: '0.
|
148
|
-
- - ">="
|
149
|
-
- !ruby/object:Gem::Version
|
150
|
-
version: 0.19.1
|
144
|
+
version: '0.20'
|
151
145
|
- !ruby/object:Gem::Dependency
|
152
146
|
name: avm-eac_webapp_base0
|
153
147
|
requirement: !ruby/object:Gem::Requirement
|
154
148
|
requirements:
|
155
149
|
- - "~>"
|
156
150
|
- !ruby/object:Gem::Version
|
157
|
-
version: '0.
|
151
|
+
version: '0.5'
|
158
152
|
type: :runtime
|
159
153
|
prerelease: false
|
160
154
|
version_requirements: !ruby/object:Gem::Requirement
|
161
155
|
requirements:
|
162
156
|
- - "~>"
|
163
157
|
- !ruby/object:Gem::Version
|
164
|
-
version: '0.
|
158
|
+
version: '0.5'
|
165
159
|
- !ruby/object:Gem::Dependency
|
166
160
|
name: avm-eac_wordpress_base0
|
167
161
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,28 +182,28 @@ dependencies:
|
|
188
182
|
requirements:
|
189
183
|
- - "~>"
|
190
184
|
- !ruby/object:Gem::Version
|
191
|
-
version: '0.
|
185
|
+
version: '0.134'
|
192
186
|
type: :runtime
|
193
187
|
prerelease: false
|
194
188
|
version_requirements: !ruby/object:Gem::Requirement
|
195
189
|
requirements:
|
196
190
|
- - "~>"
|
197
191
|
- !ruby/object:Gem::Version
|
198
|
-
version: '0.
|
192
|
+
version: '0.134'
|
199
193
|
- !ruby/object:Gem::Dependency
|
200
194
|
name: eac_ruby_utils
|
201
195
|
requirement: !ruby/object:Gem::Requirement
|
202
196
|
requirements:
|
203
197
|
- - "~>"
|
204
198
|
- !ruby/object:Gem::Version
|
205
|
-
version: '0.
|
199
|
+
version: '0.102'
|
206
200
|
type: :runtime
|
207
201
|
prerelease: false
|
208
202
|
version_requirements: !ruby/object:Gem::Requirement
|
209
203
|
requirements:
|
210
204
|
- - "~>"
|
211
205
|
- !ruby/object:Gem::Version
|
212
|
-
version: '0.
|
206
|
+
version: '0.102'
|
213
207
|
- !ruby/object:Gem::Dependency
|
214
208
|
name: eac_ruby_gem_support
|
215
209
|
requirement: !ruby/object:Gem::Requirement
|
@@ -386,9 +380,9 @@ files:
|
|
386
380
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/apache_host.rb
|
387
381
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/core_update.rb
|
388
382
|
- 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
383
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances.rb
|
391
384
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base.rb
|
385
|
+
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/deploy.rb
|
392
386
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/docker_image.rb
|
393
387
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners.rb
|
394
388
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/docker.rb
|
@@ -406,8 +400,8 @@ files:
|
|
406
400
|
- sub/avm-eac_redmine_base0/locale/pt-BR.yml
|
407
401
|
- sub/avm-eac_redmine_base0/spec/rubocop_spec.rb
|
408
402
|
- 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
|
403
|
+
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/deploy/config/install.sh.template
|
404
|
+
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/deploy/config/secrets.yml
|
411
405
|
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template
|
412
406
|
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile_apache_setup
|
413
407
|
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_http_virtualhost.conf.template
|
@@ -772,7 +766,11 @@ files:
|
|
772
766
|
- sub/avm/lib/avm/entries/auto_values/entry.rb
|
773
767
|
- sub/avm/lib/avm/entries/auto_values/uri_entry.rb
|
774
768
|
- sub/avm/lib/avm/entries/base.rb
|
769
|
+
- sub/avm/lib/avm/entries/base/inherited_entry_value.rb
|
775
770
|
- sub/avm/lib/avm/entries/base/uri_component_entry_value.rb
|
771
|
+
- sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
|
772
|
+
- sub/avm/lib/avm/entries/base/uri_component_entry_value/inherited_value.rb
|
773
|
+
- sub/avm/lib/avm/entries/base/uri_component_entry_value/url_entry_value.rb
|
776
774
|
- sub/avm/lib/avm/entries/entry.rb
|
777
775
|
- sub/avm/lib/avm/entries/uri_builder.rb
|
778
776
|
- sub/avm/lib/avm/executables.rb
|
@@ -1053,6 +1051,7 @@ files:
|
|
1053
1051
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern/class_setup.rb
|
1054
1052
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern/module_setup.rb
|
1055
1053
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor.rb
|
1054
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/class_accessors.rb
|
1056
1055
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/class_initialize.rb
|
1057
1056
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/instance_initialize.rb
|
1058
1057
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/super_args.rb
|
@@ -1187,6 +1186,8 @@ files:
|
|
1187
1186
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/ruby.rb
|
1188
1187
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/command.rb
|
1189
1188
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_clean_environment.rb
|
1189
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_replace_objects.rb
|
1190
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_replace_objects/replace_instance_method.rb
|
1190
1191
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/settings_provider.rb
|
1191
1192
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/settings_provider/setting_value.rb
|
1192
1193
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb
|
@@ -1244,7 +1245,8 @@ files:
|
|
1244
1245
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub/base_spec.rb
|
1245
1246
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub/base_spec/stubbed_module_a.rb
|
1246
1247
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub/base_spec/stubbed_not_module.rb
|
1247
|
-
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/
|
1248
|
+
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby/on_clean_environment_spec.rb
|
1249
|
+
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby/on_replace_objects_spec.rb
|
1248
1250
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/settings_provider_spec.rb
|
1249
1251
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/simple_cache_spec.rb
|
1250
1252
|
- 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
|