eac_tools 0.47.2 → 0.48.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +55 -50
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec +2 -2
  5. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/version.rb +1 -1
  6. data/sub/avm-eac_php_base0/avm-eac_php_base0.gemspec +2 -2
  7. data/sub/avm-eac_php_base0/lib/avm/eac_php_base0/version.rb +1 -1
  8. data/sub/avm-eac_postgresql_base0/avm-eac_postgresql_base0.gemspec +1 -1
  9. data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance/data_unit.rb +13 -7
  10. data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance.rb +16 -1
  11. data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/version.rb +1 -1
  12. data/sub/avm-eac_rails_base0/avm-eac_rails_base0.gemspec +2 -2
  13. data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/version.rb +1 -1
  14. data/sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec +3 -3
  15. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb +1 -0
  16. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/bundle.rb +28 -0
  17. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb +28 -0
  18. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/log.rb +45 -0
  19. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs/clear.rb +27 -0
  20. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs.rb +19 -0
  21. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/rails_server.rb +34 -0
  22. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler/systemd_unit.rb +48 -0
  23. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler.rb +19 -0
  24. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/{runner.rb → instances/runners.rb} +4 -3
  25. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/version.rb +1 -1
  26. data/sub/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +3 -3
  27. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project_rename.rb +1 -1
  28. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
  29. data/sub/avm-eac_ubuntu_base0/Gemfile +5 -0
  30. data/sub/avm-eac_ubuntu_base0/avm-eac_ubuntu_base0.gemspec +21 -0
  31. data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/apache/resource.rb +59 -0
  32. data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/apache.rb +26 -0
  33. data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/docker_image.rb +29 -0
  34. data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/instances/base.rb +22 -0
  35. data/sub/{avm-eac_redmine_base0/lib/avm/eac_redmine_base0/runners.rb → avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/instances.rb} +2 -2
  36. data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/rspec/ssh_docker_server.rb +84 -0
  37. data/sub/{avm-eac_rails_base0/lib/avm/eac_rails_base0/runners.rb → avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/rspec.rb} +2 -2
  38. data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/runners/base/docker.rb +19 -0
  39. data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/runners/base.rb +28 -0
  40. data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/version.rb +7 -0
  41. data/sub/{avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/runners.rb → avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0.rb} +2 -4
  42. data/sub/avm-eac_ubuntu_base0/spec/lib/avm/eac_ubuntu_base0/docker_image_spec.rb +16 -0
  43. data/sub/avm-eac_ubuntu_base0/spec/lib/avm/eac_ubuntu_base0/runners/base/docker_spec.rb +14 -0
  44. data/sub/avm-eac_ubuntu_base0/spec/lib/avm/eac_ubuntu_base0/runners/base_spec.rb +7 -0
  45. data/sub/avm-eac_ubuntu_base0/spec/rubocop_spec.rb +3 -0
  46. data/sub/avm-eac_ubuntu_base0/spec/spec_helper.rb +4 -0
  47. data/sub/avm-eac_ubuntu_base0/template/avm/eac_ubuntu_base0/docker_image/Dockerfile.template +24 -0
  48. data/sub/{avm-tools/spec/spec_helper/stub_templates/stubbed_docker_server → avm-eac_ubuntu_base0/template/avm/eac_ubuntu_base0/rspec/ssh_docker_server}/Dockerfile +0 -0
  49. data/sub/{avm-tools/spec/spec_helper/stub_templates/stubbed_docker_server → avm-eac_ubuntu_base0/template/avm/eac_ubuntu_base0/rspec/ssh_docker_server}/id_rsa +0 -0
  50. data/sub/{avm-tools/spec/spec_helper/stub_templates/stubbed_docker_server → avm-eac_ubuntu_base0/template/avm/eac_ubuntu_base0/rspec/ssh_docker_server}/id_rsa.pub +0 -0
  51. data/sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec +2 -2
  52. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
  53. data/sub/avm-eac_wordpress_base0/avm-eac_wordpress_base0.gemspec +3 -3
  54. data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/version.rb +1 -1
  55. data/sub/avm-tools/avm-tools.gemspec +3 -3
  56. data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
  57. data/sub/avm-tools/spec/lib/avm/tools/runner/git/deploy_spec.rb +4 -2
  58. data/sub/eac_ruby_utils/eac_ruby_utils.gemspec +1 -0
  59. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/composite_command.rb +14 -2
  60. data/sub/eac_ruby_utils/lib/eac_ruby_utils/gems_registry/gem.rb +2 -1
  61. data/sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  62. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/{command_spec.rb → command/base_example.rb} +2 -5
  63. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/command/local_env_spec.rb +11 -0
  64. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/command/ssh_env_spec.rb +17 -0
  65. metadata +64 -66
  66. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/runners/base.rb +0 -13
  67. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/runners.rb +0 -11
  68. data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/runners/base.rb +0 -26
  69. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/bundle.rb +0 -26
  70. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/code_runner.rb +0 -26
  71. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/log.rb +0 -43
  72. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/logs/clear.rb +0 -26
  73. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/logs.rb +0 -18
  74. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb +0 -32
  75. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/tasks_scheduler/systemd_unit.rb +0 -46
  76. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/tasks_scheduler.rb +0 -17
  77. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/runners/base.rb +0 -25
  78. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner.rb +0 -12
  79. data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/runners/base.rb +0 -14
  80. data/sub/avm-tools/spec/spec_helper/stubbed_docker_server.rb +0 -93
  81. data/sub/avm-tools/spec/spec_helper/templates.rb +0 -5
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.109.0'
4
+ VERSION = '0.109.1'
5
5
  end
@@ -1,11 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'eac_ruby_utils/envs/command'
4
- require 'eac_ruby_utils/envs/executable'
5
- require 'eac_ruby_utils/envs/local_env'
3
+ require 'eac_ruby_utils/envs/execution_error'
6
4
 
7
- RSpec.describe ::EacRubyUtils::Envs::Command do
8
- let(:env) { ::EacRubyUtils::Envs::LocalEnv.new }
5
+ ::RSpec.shared_examples 'with_command_env' do # rubocop:disable Metrics/BlockLength
9
6
  let(:echo) { env.executable('echo', '--version') }
10
7
  let(:cat) { env.executable('cat', '--version') }
11
8
  let(:not_existing_file) { ::Pathname.new('a_file_that_not_exists') }
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/envs/command'
4
+ require 'eac_ruby_utils/envs/local_env'
5
+ require_relative 'base_example'
6
+
7
+ ::RSpec.describe ::EacRubyUtils::Envs::Command do
8
+ let(:env) { ::EacRubyUtils::Envs::LocalEnv.new }
9
+
10
+ include_examples 'with_command_env'
11
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/eac_ubuntu_base0/rspec/ssh_docker_server'
4
+ require 'eac_ruby_utils/envs/command'
5
+ require 'eac_ruby_utils/envs/ssh_env'
6
+ require_relative 'base_example'
7
+
8
+ ::RSpec.describe ::EacRubyUtils::Envs::Command do
9
+ let(:ssh_server) { ::Avm::EacUbuntuBase0::Rspec::SshDockerServer.new }
10
+ let(:env) { ssh_server.env }
11
+
12
+ around do |example|
13
+ ssh_server.on_run(&example)
14
+ end
15
+
16
+ include_examples 'with_command_env'
17
+ 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.47.2
4
+ version: 0.48.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-12-07 00:00:00.000000000 Z
11
+ date: 2022-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.12'
33
+ version: '0.13'
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.12'
40
+ version: '0.13'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: avm-eac_generic_base0
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -73,6 +73,9 @@ dependencies:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0.4'
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: 0.4.1
76
79
  type: :runtime
77
80
  prerelease: false
78
81
  version_requirements: !ruby/object:Gem::Requirement
@@ -80,6 +83,9 @@ dependencies:
80
83
  - - "~>"
81
84
  - !ruby/object:Gem::Version
82
85
  version: '0.4'
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: 0.4.1
83
89
  - !ruby/object:Gem::Dependency
84
90
  name: avm-eac_postgresql_base0
85
91
  requirement: !ruby/object:Gem::Requirement
@@ -89,7 +95,7 @@ dependencies:
89
95
  version: '0.2'
90
96
  - - ">="
91
97
  - !ruby/object:Gem::Version
92
- version: 0.2.2
98
+ version: 0.2.3
93
99
  type: :runtime
94
100
  prerelease: false
95
101
  version_requirements: !ruby/object:Gem::Requirement
@@ -99,7 +105,7 @@ dependencies:
99
105
  version: '0.2'
100
106
  - - ">="
101
107
  - !ruby/object:Gem::Version
102
- version: 0.2.2
108
+ version: 0.2.3
103
109
  - !ruby/object:Gem::Dependency
104
110
  name: avm-eac_python_base0
105
111
  requirement: !ruby/object:Gem::Requirement
@@ -126,54 +132,42 @@ dependencies:
126
132
  requirements:
127
133
  - - "~>"
128
134
  - !ruby/object:Gem::Version
129
- version: '0.8'
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: 0.8.1
135
+ version: '0.9'
133
136
  type: :runtime
134
137
  prerelease: false
135
138
  version_requirements: !ruby/object:Gem::Requirement
136
139
  requirements:
137
140
  - - "~>"
138
141
  - !ruby/object:Gem::Version
139
- version: '0.8'
140
- - - ">="
141
- - !ruby/object:Gem::Version
142
- version: 0.8.1
142
+ version: '0.9'
143
143
  - !ruby/object:Gem::Dependency
144
144
  name: avm-eac_rails_base1
145
145
  requirement: !ruby/object:Gem::Requirement
146
146
  requirements:
147
147
  - - "~>"
148
148
  - !ruby/object:Gem::Version
149
- version: '0.7'
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: 0.7.1
149
+ version: '0.8'
153
150
  type: :runtime
154
151
  prerelease: false
155
152
  version_requirements: !ruby/object:Gem::Requirement
156
153
  requirements:
157
154
  - - "~>"
158
155
  - !ruby/object:Gem::Version
159
- version: '0.7'
160
- - - ">="
161
- - !ruby/object:Gem::Version
162
- version: 0.7.1
156
+ version: '0.8'
163
157
  - !ruby/object:Gem::Dependency
164
158
  name: avm-eac_redmine_base0
165
159
  requirement: !ruby/object:Gem::Requirement
166
160
  requirements:
167
161
  - - "~>"
168
162
  - !ruby/object:Gem::Version
169
- version: '0.17'
163
+ version: '0.18'
170
164
  type: :runtime
171
165
  prerelease: false
172
166
  version_requirements: !ruby/object:Gem::Requirement
173
167
  requirements:
174
168
  - - "~>"
175
169
  - !ruby/object:Gem::Version
176
- version: '0.17'
170
+ version: '0.18'
177
171
  - !ruby/object:Gem::Dependency
178
172
  name: avm-eac_redmine_plugin_base0
179
173
  requirement: !ruby/object:Gem::Requirement
@@ -214,40 +208,28 @@ dependencies:
214
208
  requirements:
215
209
  - - "~>"
216
210
  - !ruby/object:Gem::Version
217
- version: '0.12'
218
- - - ">="
219
- - !ruby/object:Gem::Version
220
- version: 0.12.3
211
+ version: '0.13'
221
212
  type: :runtime
222
213
  prerelease: false
223
214
  version_requirements: !ruby/object:Gem::Requirement
224
215
  requirements:
225
216
  - - "~>"
226
217
  - !ruby/object:Gem::Version
227
- version: '0.12'
228
- - - ">="
229
- - !ruby/object:Gem::Version
230
- version: 0.12.3
218
+ version: '0.13'
231
219
  - !ruby/object:Gem::Dependency
232
220
  name: avm-eac_wordpress_base0
233
221
  requirement: !ruby/object:Gem::Requirement
234
222
  requirements:
235
223
  - - "~>"
236
224
  - !ruby/object:Gem::Version
237
- version: '0.2'
238
- - - ">="
239
- - !ruby/object:Gem::Version
240
- version: 0.2.1
225
+ version: '0.3'
241
226
  type: :runtime
242
227
  prerelease: false
243
228
  version_requirements: !ruby/object:Gem::Requirement
244
229
  requirements:
245
230
  - - "~>"
246
231
  - !ruby/object:Gem::Version
247
- version: '0.2'
248
- - - ">="
249
- - !ruby/object:Gem::Version
250
- version: 0.2.1
232
+ version: '0.3'
251
233
  - !ruby/object:Gem::Dependency
252
234
  name: avm-tools
253
235
  requirement: !ruby/object:Gem::Requirement
@@ -257,7 +239,7 @@ dependencies:
257
239
  version: '0.142'
258
240
  - - ">="
259
241
  - !ruby/object:Gem::Version
260
- version: 0.142.7
242
+ version: 0.142.8
261
243
  type: :runtime
262
244
  prerelease: false
263
245
  version_requirements: !ruby/object:Gem::Requirement
@@ -267,7 +249,7 @@ dependencies:
267
249
  version: '0.142'
268
250
  - - ">="
269
251
  - !ruby/object:Gem::Version
270
- version: 0.142.7
252
+ version: 0.142.8
271
253
  - !ruby/object:Gem::Dependency
272
254
  name: eac_ruby_utils
273
255
  requirement: !ruby/object:Gem::Requirement
@@ -275,6 +257,9 @@ dependencies:
275
257
  - - "~>"
276
258
  - !ruby/object:Gem::Version
277
259
  version: '0.109'
260
+ - - ">="
261
+ - !ruby/object:Gem::Version
262
+ version: 0.109.1
278
263
  type: :runtime
279
264
  prerelease: false
280
265
  version_requirements: !ruby/object:Gem::Requirement
@@ -282,6 +267,9 @@ dependencies:
282
267
  - - "~>"
283
268
  - !ruby/object:Gem::Version
284
269
  version: '0.109'
270
+ - - ">="
271
+ - !ruby/object:Gem::Version
272
+ version: 0.109.1
285
273
  - !ruby/object:Gem::Dependency
286
274
  name: eac_ruby_gem_support
287
275
  requirement: !ruby/object:Gem::Requirement
@@ -363,8 +351,6 @@ files:
363
351
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/header_macro_value.rb
364
352
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/pre_process_line.rb
365
353
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/deploy.rb
366
- - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/runners.rb
367
- - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/runners/base.rb
368
354
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/source_generators.rb
369
355
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/source_generators/base.rb
370
356
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources.rb
@@ -506,8 +492,6 @@ files:
506
492
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/deploy.rb
507
493
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instances.rb
508
494
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instances/base.rb
509
- - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/runners.rb
510
- - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/runners/base.rb
511
495
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/source_generators/base.rb
512
496
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/sources/base.rb
513
497
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/version.rb
@@ -553,18 +537,18 @@ files:
553
537
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances.rb
554
538
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_host.rb
555
539
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
540
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners.rb
541
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/bundle.rb
542
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb
543
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/log.rb
544
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs.rb
545
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs/clear.rb
546
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/rails_server.rb
547
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler.rb
548
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler/systemd_unit.rb
556
549
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit.rb
557
550
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit/service.rb
558
551
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler_command.rb
559
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner.rb
560
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/bundle.rb
561
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/code_runner.rb
562
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/log.rb
563
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/logs.rb
564
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/logs/clear.rb
565
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb
566
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/tasks_scheduler.rb
567
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/tasks_scheduler/systemd_unit.rb
568
552
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/bundle.rb
569
553
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/rails_environment.rb
570
554
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/sources/base.rb
@@ -591,8 +575,6 @@ files:
591
575
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners.rb
592
576
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/docker.rb
593
577
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project_rename.rb
594
- - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/runners.rb
595
- - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/runners/base.rb
596
578
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources.rb
597
579
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/base.rb
598
580
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/core_update.rb
@@ -763,6 +745,28 @@ files:
763
745
  - sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/rubocop_spec.rb
764
746
  - sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/spec_helper.rb
765
747
  - sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/version.template
748
+ - sub/avm-eac_ubuntu_base0/Gemfile
749
+ - sub/avm-eac_ubuntu_base0/avm-eac_ubuntu_base0.gemspec
750
+ - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0.rb
751
+ - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/apache.rb
752
+ - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/apache/resource.rb
753
+ - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/docker_image.rb
754
+ - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/instances.rb
755
+ - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/instances/base.rb
756
+ - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/rspec.rb
757
+ - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/rspec/ssh_docker_server.rb
758
+ - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/runners/base.rb
759
+ - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/runners/base/docker.rb
760
+ - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/version.rb
761
+ - sub/avm-eac_ubuntu_base0/spec/lib/avm/eac_ubuntu_base0/docker_image_spec.rb
762
+ - sub/avm-eac_ubuntu_base0/spec/lib/avm/eac_ubuntu_base0/runners/base/docker_spec.rb
763
+ - sub/avm-eac_ubuntu_base0/spec/lib/avm/eac_ubuntu_base0/runners/base_spec.rb
764
+ - sub/avm-eac_ubuntu_base0/spec/rubocop_spec.rb
765
+ - sub/avm-eac_ubuntu_base0/spec/spec_helper.rb
766
+ - sub/avm-eac_ubuntu_base0/template/avm/eac_ubuntu_base0/docker_image/Dockerfile.template
767
+ - sub/avm-eac_ubuntu_base0/template/avm/eac_ubuntu_base0/rspec/ssh_docker_server/Dockerfile
768
+ - sub/avm-eac_ubuntu_base0/template/avm/eac_ubuntu_base0/rspec/ssh_docker_server/id_rsa
769
+ - sub/avm-eac_ubuntu_base0/template/avm/eac_ubuntu_base0/rspec/ssh_docker_server/id_rsa.pub
766
770
  - sub/avm-eac_webapp_base0/Gemfile
767
771
  - sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec
768
772
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0.rb
@@ -793,7 +797,6 @@ files:
793
797
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data/dump.rb
794
798
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data/load.rb
795
799
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/deploy.rb
796
- - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner.rb
797
800
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/sources.rb
798
801
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/sources/base.rb
799
802
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb
@@ -826,8 +829,6 @@ files:
826
829
  - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/apache_host.rb
827
830
  - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/base.rb
828
831
  - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/deploy.rb
829
- - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/runners.rb
830
- - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/runners/base.rb
831
832
  - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/version.rb
832
833
  - sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec.rb
833
834
  - sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec_no_ssl_content.conf
@@ -1025,11 +1026,6 @@ files:
1025
1026
  - sub/avm-tools/spec/spec_helper/avm_tools_runner.rb
1026
1027
  - sub/avm-tools/spec/spec_helper/eac_launcher.rb
1027
1028
  - sub/avm-tools/spec/spec_helper/eac_launcher/settings.yml
1028
- - sub/avm-tools/spec/spec_helper/stub_templates/stubbed_docker_server/Dockerfile
1029
- - sub/avm-tools/spec/spec_helper/stub_templates/stubbed_docker_server/id_rsa
1030
- - sub/avm-tools/spec/spec_helper/stub_templates/stubbed_docker_server/id_rsa.pub
1031
- - sub/avm-tools/spec/spec_helper/stubbed_docker_server.rb
1032
- - sub/avm-tools/spec/spec_helper/templates.rb
1033
1029
  - sub/avm-tools/template/avm/self/docker_image/Dockerfile
1034
1030
  - sub/avm-tools/template/avm/self/docker_image/entrypoint.sh
1035
1031
  - sub/avm/Gemfile
@@ -1795,7 +1791,9 @@ files:
1795
1791
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/compare_by_spec.rb
1796
1792
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/custom_format_spec.rb
1797
1793
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/enum_spec.rb
1798
- - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/command_spec.rb
1794
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/command/base_example.rb
1795
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/command/local_env_spec.rb
1796
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/command/ssh_env_spec.rb
1799
1797
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/executable_spec.rb
1800
1798
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/ssh_env_spec.rb
1801
1799
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_webapp_base0/runner'
4
-
5
- module Avm
6
- module EacAsciidoctorBase0
7
- module Runners
8
- class Base < ::Avm::EacWebappBase0::Runner
9
- require_sub __FILE__
10
- end
11
- end
12
- end
13
- end
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Avm
6
- module EacAsciidoctorBase0
7
- module Runners
8
- require_sub __FILE__
9
- end
10
- end
11
- end
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_rails_base0/instances/base'
4
- require 'avm/eac_rails_base0/deploy'
5
- require 'avm/eac_rails_base0/apache_host'
6
- require 'avm/eac_rails_base0/apache_path'
7
- require 'avm/eac_rails_base1/runner'
8
- require 'eac_ruby_utils/core_ext'
9
-
10
- module Avm
11
- module EacRailsBase0
12
- module Runners
13
- class Base < ::Avm::EacRailsBase1::Runner
14
- require_sub __FILE__
15
-
16
- STEREOTYPE_NAME = 'EacRailsBase0'
17
-
18
- class << self
19
- def stereotype_name
20
- STEREOTYPE_NAME
21
- end
22
- end
23
- end
24
- end
25
- end
26
- end
@@ -1,26 +0,0 @@
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
- class Runner < ::Avm::EacWebappBase0::Runner
10
- class Bundle
11
- runner_with ::Avm::EacRailsBase1::RunnerWith::Bundle, :help do
12
- desc 'Runs "bundle ...".'
13
- pos_arg :'bundle-args', repeat: true, optional: true
14
- end
15
-
16
- def run
17
- bundle_run
18
- end
19
-
20
- def bundle_args
21
- parsed.bundle_args.reject { |arg| arg == '--' }
22
- end
23
- end
24
- end
25
- end
26
- end
@@ -1,26 +0,0 @@
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
- class Runner < ::Avm::EacWebappBase0::Runner
9
- class CodeRunner
10
- runner_with :help, ::Avm::EacRailsBase1::RunnerWith::Bundle do
11
- desc 'Runs a Ruby code with "rails runner".'
12
- pos_arg :code
13
- end
14
-
15
- def run
16
- infov 'Environment', runner_context.call(:instance).host_env
17
- bundle_run
18
- end
19
-
20
- def bundle_args
21
- %w[exec rails runner] + [parsed.code]
22
- end
23
- end
24
- end
25
- end
26
- end
@@ -1,43 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_rails_base1/runner_with/rails_environment'
4
- require 'avm/eac_webapp_base0/runner'
5
-
6
- module Avm
7
- module EacRailsBase1
8
- class Runner < ::Avm::EacWebappBase0::Runner
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', "#{rails_environment}.log")
24
- end
25
-
26
- def start_banner
27
- infov 'Environment', rails_environment
28
- infov 'Log path', log_path
29
- end
30
-
31
- def tail_command
32
- rails_instance.host_env.command(*tail_command_args)
33
- end
34
-
35
- def tail_command_args
36
- r = %w[tail]
37
- r << '--follow' if parsed.follow?
38
- r + [log_path]
39
- end
40
- end
41
- end
42
- end
43
- end
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_rails_base1/runner_with/rails_environment'
4
- require 'avm/eac_webapp_base0/runner'
5
-
6
- module Avm
7
- module EacRailsBase1
8
- class Runner < ::Avm::EacWebappBase0::Runner
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
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_webapp_base0/runner'
4
- require 'eac_cli/core_ext'
5
-
6
- module Avm
7
- module EacRailsBase1
8
- class Runner < ::Avm::EacWebappBase0::Runner
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
@@ -1,32 +0,0 @@
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
- class Runner < ::Avm::EacWebappBase0::Runner
11
- class RailsServer
12
- DEFAULT_RAILS_ENVIRONMENT = 'development'
13
- runner_with :help, ::Avm::EacRailsBase1::RunnerWith::Bundle do
14
- desc 'Run the embbeded Rails web server.'
15
- end
16
-
17
- def run
18
- infov 'Environment', rails_environment
19
- infov 'Bundle args', ::Shellwords.join(bundle_args)
20
- infov 'Result', bundle_command.system
21
- end
22
-
23
- protected
24
-
25
- def bundle_args
26
- ['exec', 'rails', 'server', '--port',
27
- runner_context.call(:instance).read_entry(::Avm::Instances::EntryKeys::WEB_PORT)]
28
- end
29
- end
30
- end
31
- end
32
- end
@@ -1,46 +0,0 @@
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
- class Runner < ::Avm::EacWebappBase0::Runner
9
- class TasksScheduler
10
- class SystemdUnit
11
- DEFAULT_RESTART = 'on-failure'
12
-
13
- runner_with :help do
14
- desc 'Configure Systemd unit for instace\'s tasks scheduler daemon (Reference: ' \
15
- 'https://www.freedesktop.org/software/systemd/man/systemd.service.html).'
16
- bool_opt '-e', '--exec-run', 'Run daemon with "run" instead of "start"/"stop".'
17
- arg_opt '-r', '--restart', 'Value for systemd.service, Restart=.',
18
- default: DEFAULT_RESTART
19
- end
20
-
21
- delegate :restart, to: :parsed
22
-
23
- def run
24
- if result.error?
25
- fatal_error result.to_s
26
- else
27
- infov 'Result', result.label
28
- end
29
- end
30
-
31
- private
32
-
33
- def systemd_unit_uncached
34
- ::Avm::EacRailsBase1::Instances::SystemdUnit.new(runner_context.call(:instance),
35
- restart: parsed.restart,
36
- exec_run: parsed.exec_run?)
37
- end
38
-
39
- def result_uncached
40
- systemd_unit.run
41
- end
42
- end
43
- end
44
- end
45
- end
46
- end