eac_tools 0.25.0 → 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +57 -56
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm/avm.gemspec +2 -2
  5. data/sub/avm/lib/avm/applications/base.rb +1 -1
  6. data/sub/avm/lib/avm/data/instance/files_unit.rb +2 -1
  7. data/sub/avm/lib/avm/entries/auto_values/uri_entry.rb +1 -1
  8. data/sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb +27 -0
  9. data/sub/avm/lib/avm/entries/base/uri_component_entry_value/inherited_value.rb +38 -0
  10. data/sub/avm/lib/avm/entries/base/uri_component_entry_value/url_entry_value.rb +31 -0
  11. data/sub/avm/lib/avm/entries/base/uri_component_entry_value.rb +3 -30
  12. data/sub/avm/lib/avm/instances/base/auto_values/filesystem.rb +0 -25
  13. data/sub/avm/lib/avm/instances/base/auto_values/install.rb +13 -17
  14. data/sub/avm/lib/avm/instances/entry_keys.rb +1 -2
  15. data/sub/avm/lib/avm/version.rb +1 -1
  16. data/sub/avm/spec/lib/avm/instances/base_spec.rb +2 -2
  17. data/sub/avm/spec/lib/avm/instances/base_spec_configs_storage.yml +1 -1
  18. data/sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec +2 -2
  19. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/apache_host.rb +1 -1
  20. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/deploy.rb +1 -1
  21. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/version.rb +1 -1
  22. data/sub/avm-eac_latex_base0/avm-eac_latex_base0.gemspec +3 -3
  23. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances/apache_host.rb +1 -1
  24. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances/deploy.rb +1 -1
  25. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/version.rb +1 -1
  26. data/sub/avm-eac_rails_base0/avm-eac_rails_base0.gemspec +2 -2
  27. data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/deploy.rb +1 -1
  28. data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/version.rb +1 -1
  29. data/sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_host_spec.rb +1 -1
  30. data/sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb +1 -1
  31. data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/apache_path/extra_content.conf +1 -1
  32. data/sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec +4 -4
  33. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/apache_host.rb +1 -1
  34. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb +3 -2
  35. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/log.rb +1 -1
  36. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/version.rb +1 -1
  37. data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/systemd_unit/tasks_scheduler_command.sh +1 -1
  38. data/sub/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +3 -3
  39. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base.rb +1 -1
  40. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/deploy.rb +37 -0
  41. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/docker_image.rb +1 -1
  42. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/runners/base.rb +1 -1
  43. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
  44. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/{deploy → instances/deploy}/config/install.sh.template +0 -0
  45. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/{deploy → instances/deploy}/config/secrets.yml +0 -0
  46. data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +2 -2
  47. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/update_dependencies_requirements.rb +7 -1
  48. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
  49. data/sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec +2 -2
  50. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/apache_path.rb +1 -1
  51. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/file_unit.rb +1 -1
  52. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/git_info.rb +1 -1
  53. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/write_on_target.rb +1 -1
  54. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/deploy.rb +2 -0
  55. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
  56. data/sub/avm-eac_wordpress_base0/avm-eac_wordpress_base0.gemspec +3 -3
  57. data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/apache_host.rb +1 -1
  58. data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/version.rb +1 -1
  59. data/sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec.rb +1 -1
  60. data/sub/avm-tools/avm-tools.gemspec +3 -3
  61. data/sub/avm-tools/lib/avm/tools/runner/git/deploy.rb +2 -2
  62. data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
  63. data/sub/eac_config/eac_config.gemspec +1 -1
  64. data/sub/eac_config/lib/eac_config/entry.rb +4 -0
  65. data/sub/eac_config/lib/eac_config/envvars_node.rb +4 -0
  66. data/sub/eac_config/lib/eac_config/node_entry.rb +5 -0
  67. data/sub/eac_config/lib/eac_config/version.rb +1 -1
  68. data/sub/eac_config/lib/eac_config/yaml_file_node.rb +4 -0
  69. data/sub/eac_config/spec/lib/eac_config/envvars_node_spec.rb +11 -0
  70. data/sub/eac_ruby_utils/eac_ruby_utils.gemspec +2 -2
  71. data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_clean_environment.rb +53 -20
  72. data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_replace_objects/replace_instance_method.rb +36 -0
  73. data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_replace_objects.rb +52 -0
  74. data/sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  75. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/{ruby_spec.rb → ruby/on_clean_environment_spec.rb} +11 -0
  76. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby/on_replace_objects_spec.rb +67 -0
  77. metadata +34 -52
  78. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/deploy.rb +0 -36
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_support/inflector'
4
+ require 'eac_ruby_utils/ruby/on_replace_objects/replace_instance_method'
5
+
6
+ module EacRubyUtils
7
+ module Ruby
8
+ class OnReplaceObjects
9
+ class ReplaceInstanceMethod
10
+ attr_reader :a_module, :method_new_block, :original_method
11
+
12
+ def initialize(a_module, method_name, &method_new_block)
13
+ @a_module = a_module
14
+ @original_method = a_module.instance_method(method_name)
15
+ @method_new_block = method_new_block
16
+ end
17
+
18
+ def apply
19
+ a_module.define_method(method_name, &method_new_block)
20
+
21
+ self
22
+ end
23
+
24
+ def method_name
25
+ original_method.name
26
+ end
27
+
28
+ def restore
29
+ a_module.define_method(method_name, original_method)
30
+
31
+ self
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_support/inflector'
4
+ require 'eac_ruby_utils/ruby/on_replace_objects/replace_instance_method'
5
+
6
+ module EacRubyUtils
7
+ module Ruby
8
+ class << self
9
+ def on_replace_objects
10
+ replacer = OnReplaceObjects.new
11
+ replacer.on_replacement do
12
+ yield(replacer)
13
+ end
14
+ end
15
+ end
16
+
17
+ class OnReplaceObjects
18
+ def on_replacement(&block)
19
+ clear_replacements
20
+ block.call(self)
21
+ ensure
22
+ restore_replacements
23
+ end
24
+
25
+ def replace_instance_method(a_module, method_name, &block)
26
+ add_replacement(__method__, a_module, method_name, &block)
27
+ end
28
+
29
+ def replace_self_method(object, method_name, &block)
30
+ add_replacement(:replace_instance_method, object.singleton_class, method_name, &block)
31
+ end
32
+
33
+ private
34
+
35
+ def add_replacement(method_name, *args, &block)
36
+ @replacements << replacement_class(method_name).new(*args, &block).apply
37
+ end
38
+
39
+ def replacement_class(method_name)
40
+ self.class.const_get(::ActiveSupport::Inflector.camelize(method_name))
41
+ end
42
+
43
+ def clear_replacements
44
+ @replacements = []
45
+ end
46
+
47
+ def restore_replacements
48
+ @replacements.reverse.each(&:restore)
49
+ end
50
+ end
51
+ end
52
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.101.0'
4
+ VERSION = '0.102.0'
5
5
  end
@@ -6,9 +6,12 @@ RSpec.describe ::EacRubyUtils::Ruby do
6
6
  describe '#on_clean_environment' do
7
7
  let(:envvar_name) { 'BUNDLE_NOT_EXISTENT_ENV_VAR' }
8
8
  let(:envvar_value) { 'any value' }
9
+ let(:noruby_envvar_name) { 'ANY_ENVIRONMENT_VARIABLE' }
10
+ let(:noruby_envvar_value) { 'another any value' }
9
11
 
10
12
  before do
11
13
  ENV[envvar_name] = envvar_value
14
+ ENV[noruby_envvar_name] = noruby_envvar_value
12
15
  end
13
16
 
14
17
  it do # rubocop:disable RSpec/MultipleExpectations
@@ -18,5 +21,13 @@ RSpec.describe ::EacRubyUtils::Ruby do
18
21
  end
19
22
  expect(ENV[envvar_name]).to eq(envvar_value)
20
23
  end
24
+
25
+ it do # rubocop:disable RSpec/MultipleExpectations
26
+ expect(ENV[noruby_envvar_name]).to eq(noruby_envvar_value)
27
+ described_class.on_clean_environment do
28
+ expect(ENV[noruby_envvar_name]).to eq(noruby_envvar_value)
29
+ end
30
+ expect(ENV[noruby_envvar_name]).to eq(noruby_envvar_value)
31
+ end
21
32
  end
22
33
  end
@@ -0,0 +1,67 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/ruby'
4
+
5
+ RSpec.describe ::EacRubyUtils::Ruby do
6
+ describe '#on_replace_objects' do
7
+ let(:stub_class) do
8
+ ::Class.new do
9
+ def self.my_class_method
10
+ 'Original'
11
+ end
12
+
13
+ def my_instance_method
14
+ 'Original'
15
+ end
16
+ end
17
+ end
18
+
19
+ let(:stub_instance) { stub_class.new }
20
+
21
+ let(:replace_block) do
22
+ ::Proc.new { 'Replaced' }
23
+ end
24
+
25
+ describe '#my_instance_method' do
26
+ let(:before) { stub_instance.my_instance_method }
27
+ let(:inside) do
28
+ described_class.on_replace_objects do |replacer|
29
+ replacer.replace_instance_method(stub_class, :my_instance_method, &replace_block)
30
+ stub_instance.my_instance_method
31
+ end
32
+ end
33
+ let(:after) { stub_instance.my_instance_method }
34
+
35
+ before do
36
+ before
37
+ inside
38
+ after
39
+ end
40
+
41
+ it { expect(before).to eq('Original') }
42
+ it { expect(inside).to eq('Replaced') }
43
+ it { expect(after).to eq('Original') }
44
+ end
45
+
46
+ describe '#replace_self_method' do
47
+ let(:before) { stub_class.my_class_method }
48
+ let(:inside) do
49
+ described_class.on_replace_objects do |replacer|
50
+ replacer.replace_self_method(stub_class, :my_class_method, &replace_block)
51
+ stub_class.my_class_method
52
+ end
53
+ end
54
+ let(:after) { stub_class.my_class_method }
55
+
56
+ before do
57
+ before
58
+ inside
59
+ after
60
+ end
61
+
62
+ it { expect(before).to eq('Original') }
63
+ it { expect(inside).to eq('Replaced') }
64
+ it { expect(after).to eq('Original') }
65
+ end
66
+ end
67
+ end
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.25.0
4
+ version: 0.27.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-17 00:00:00.000000000 Z
11
+ date: 2022-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.39'
19
+ version: '0.41'
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.39'
26
+ version: '0.41'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: avm-eac_asciidoctor_base0
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.5'
33
+ version: '0.6'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.5'
40
+ version: '0.6'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: avm-eac_generic_base0
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,62 +58,56 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.1'
62
- - - ">="
63
- - !ruby/object:Gem::Version
64
- version: 0.1.2
61
+ version: '0.2'
65
62
  type: :runtime
66
63
  prerelease: false
67
64
  version_requirements: !ruby/object:Gem::Requirement
68
65
  requirements:
69
66
  - - "~>"
70
67
  - !ruby/object:Gem::Version
71
- version: '0.1'
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- version: 0.1.2
68
+ version: '0.2'
75
69
  - !ruby/object:Gem::Dependency
76
70
  name: avm-eac_rails_base0
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
73
  - - "~>"
80
74
  - !ruby/object:Gem::Version
81
- version: '0.7'
75
+ version: '0.8'
82
76
  type: :runtime
83
77
  prerelease: false
84
78
  version_requirements: !ruby/object:Gem::Requirement
85
79
  requirements:
86
80
  - - "~>"
87
81
  - !ruby/object:Gem::Version
88
- version: '0.7'
82
+ version: '0.8'
89
83
  - !ruby/object:Gem::Dependency
90
84
  name: avm-eac_rails_base1
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
87
  - - "~>"
94
88
  - !ruby/object:Gem::Version
95
- version: '0.5'
89
+ version: '0.6'
96
90
  type: :runtime
97
91
  prerelease: false
98
92
  version_requirements: !ruby/object:Gem::Requirement
99
93
  requirements:
100
94
  - - "~>"
101
95
  - !ruby/object:Gem::Version
102
- version: '0.5'
96
+ version: '0.6'
103
97
  - !ruby/object:Gem::Dependency
104
98
  name: avm-eac_redmine_base0
105
99
  requirement: !ruby/object:Gem::Requirement
106
100
  requirements:
107
101
  - - "~>"
108
102
  - !ruby/object:Gem::Version
109
- version: '0.12'
103
+ version: '0.14'
110
104
  type: :runtime
111
105
  prerelease: false
112
106
  version_requirements: !ruby/object:Gem::Requirement
113
107
  requirements:
114
108
  - - "~>"
115
109
  - !ruby/object:Gem::Version
116
- version: '0.12'
110
+ version: '0.14'
117
111
  - !ruby/object:Gem::Dependency
118
112
  name: avm-eac_redmine_plugin_base0
119
113
  requirement: !ruby/object:Gem::Requirement
@@ -134,88 +128,70 @@ dependencies:
134
128
  requirements:
135
129
  - - "~>"
136
130
  - !ruby/object:Gem::Version
137
- version: '0.19'
138
- - - ">="
139
- - !ruby/object:Gem::Version
140
- version: 0.19.1
131
+ version: '0.20'
141
132
  type: :runtime
142
133
  prerelease: false
143
134
  version_requirements: !ruby/object:Gem::Requirement
144
135
  requirements:
145
136
  - - "~>"
146
137
  - !ruby/object:Gem::Version
147
- version: '0.19'
148
- - - ">="
149
- - !ruby/object:Gem::Version
150
- version: 0.19.1
138
+ version: '0.20'
151
139
  - !ruby/object:Gem::Dependency
152
140
  name: avm-eac_webapp_base0
153
141
  requirement: !ruby/object:Gem::Requirement
154
142
  requirements:
155
143
  - - "~>"
156
144
  - !ruby/object:Gem::Version
157
- version: '0.4'
158
- - - ">="
159
- - !ruby/object:Gem::Version
160
- version: 0.4.1
145
+ version: '0.6'
161
146
  type: :runtime
162
147
  prerelease: false
163
148
  version_requirements: !ruby/object:Gem::Requirement
164
149
  requirements:
165
150
  - - "~>"
166
151
  - !ruby/object:Gem::Version
167
- version: '0.4'
168
- - - ">="
169
- - !ruby/object:Gem::Version
170
- version: 0.4.1
152
+ version: '0.6'
171
153
  - !ruby/object:Gem::Dependency
172
154
  name: avm-eac_wordpress_base0
173
155
  requirement: !ruby/object:Gem::Requirement
174
156
  requirements:
175
157
  - - "~>"
176
158
  - !ruby/object:Gem::Version
177
- version: '0.1'
178
- - - ">="
179
- - !ruby/object:Gem::Version
180
- version: 0.1.2
159
+ version: '0.2'
181
160
  type: :runtime
182
161
  prerelease: false
183
162
  version_requirements: !ruby/object:Gem::Requirement
184
163
  requirements:
185
164
  - - "~>"
186
165
  - !ruby/object:Gem::Version
187
- version: '0.1'
188
- - - ">="
189
- - !ruby/object:Gem::Version
190
- version: 0.1.2
166
+ version: '0.2'
191
167
  - !ruby/object:Gem::Dependency
192
168
  name: avm-tools
193
169
  requirement: !ruby/object:Gem::Requirement
194
170
  requirements:
195
171
  - - "~>"
196
172
  - !ruby/object:Gem::Version
197
- version: '0.133'
173
+ version: '0.135'
198
174
  type: :runtime
199
175
  prerelease: false
200
176
  version_requirements: !ruby/object:Gem::Requirement
201
177
  requirements:
202
178
  - - "~>"
203
179
  - !ruby/object:Gem::Version
204
- version: '0.133'
180
+ version: '0.135'
205
181
  - !ruby/object:Gem::Dependency
206
182
  name: eac_ruby_utils
207
183
  requirement: !ruby/object:Gem::Requirement
208
184
  requirements:
209
185
  - - "~>"
210
186
  - !ruby/object:Gem::Version
211
- version: '0.101'
187
+ version: '0.102'
212
188
  type: :runtime
213
189
  prerelease: false
214
190
  version_requirements: !ruby/object:Gem::Requirement
215
191
  requirements:
216
192
  - - "~>"
217
193
  - !ruby/object:Gem::Version
218
- version: '0.101'
194
+ version: '0.102'
219
195
  - !ruby/object:Gem::Dependency
220
196
  name: eac_ruby_gem_support
221
197
  requirement: !ruby/object:Gem::Requirement
@@ -392,9 +368,9 @@ files:
392
368
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/apache_host.rb
393
369
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/core_update.rb
394
370
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/data_unit.rb
395
- - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/deploy.rb
396
371
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances.rb
397
372
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base.rb
373
+ - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/deploy.rb
398
374
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/docker_image.rb
399
375
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners.rb
400
376
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/docker.rb
@@ -412,8 +388,8 @@ files:
412
388
  - sub/avm-eac_redmine_base0/locale/pt-BR.yml
413
389
  - sub/avm-eac_redmine_base0/spec/rubocop_spec.rb
414
390
  - sub/avm-eac_redmine_base0/spec/spec_helper.rb
415
- - sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/deploy/config/install.sh.template
416
- - sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/deploy/config/secrets.yml
391
+ - sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/deploy/config/install.sh.template
392
+ - sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/deploy/config/secrets.yml
417
393
  - sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template
418
394
  - sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile_apache_setup
419
395
  - sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_http_virtualhost.conf.template
@@ -780,6 +756,9 @@ files:
780
756
  - sub/avm/lib/avm/entries/base.rb
781
757
  - sub/avm/lib/avm/entries/base/inherited_entry_value.rb
782
758
  - sub/avm/lib/avm/entries/base/uri_component_entry_value.rb
759
+ - sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
760
+ - sub/avm/lib/avm/entries/base/uri_component_entry_value/inherited_value.rb
761
+ - sub/avm/lib/avm/entries/base/uri_component_entry_value/url_entry_value.rb
783
762
  - sub/avm/lib/avm/entries/entry.rb
784
763
  - sub/avm/lib/avm/entries/uri_builder.rb
785
764
  - sub/avm/lib/avm/executables.rb
@@ -1195,6 +1174,8 @@ files:
1195
1174
  - sub/eac_ruby_utils/lib/eac_ruby_utils/ruby.rb
1196
1175
  - sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/command.rb
1197
1176
  - sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_clean_environment.rb
1177
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_replace_objects.rb
1178
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_replace_objects/replace_instance_method.rb
1198
1179
  - sub/eac_ruby_utils/lib/eac_ruby_utils/settings_provider.rb
1199
1180
  - sub/eac_ruby_utils/lib/eac_ruby_utils/settings_provider/setting_value.rb
1200
1181
  - sub/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb
@@ -1252,7 +1233,8 @@ files:
1252
1233
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub/base_spec.rb
1253
1234
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub/base_spec/stubbed_module_a.rb
1254
1235
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub/base_spec/stubbed_not_module.rb
1255
- - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby_spec.rb
1236
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby/on_clean_environment_spec.rb
1237
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby/on_replace_objects_spec.rb
1256
1238
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/settings_provider_spec.rb
1257
1239
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/simple_cache_spec.rb
1258
1240
  - 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