eac_tools 0.47.1 → 0.48.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +45 -44
  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_python_base0/avm-eac_python_base0.gemspec +2 -2
  9. data/sub/avm-eac_python_base0/lib/avm/eac_python_base0/file_formats/base.rb +1 -1
  10. data/sub/avm-eac_python_base0/lib/avm/eac_python_base0/version.rb +1 -1
  11. data/sub/avm-eac_rails_base0/avm-eac_rails_base0.gemspec +2 -2
  12. data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/version.rb +1 -1
  13. data/sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec +3 -3
  14. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb +1 -0
  15. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/bundle.rb +28 -0
  16. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb +28 -0
  17. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/log.rb +45 -0
  18. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs/clear.rb +27 -0
  19. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs.rb +19 -0
  20. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/rails_server.rb +34 -0
  21. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler/systemd_unit.rb +48 -0
  22. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler.rb +19 -0
  23. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/{runner.rb → instances/runners.rb} +4 -3
  24. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/version.rb +1 -1
  25. data/sub/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +3 -3
  26. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project_rename.rb +1 -1
  27. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
  28. data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +2 -2
  29. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish.rb +6 -6
  30. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
  31. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec.rb +4 -4
  32. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/dir3/Gemfile.lock +27 -0
  33. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb +4 -0
  34. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile.lock +19 -0
  35. data/sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec +2 -2
  36. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
  37. data/sub/avm-eac_wordpress_base0/avm-eac_wordpress_base0.gemspec +3 -3
  38. data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/version.rb +1 -1
  39. metadata +44 -55
  40. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/runners/base.rb +0 -13
  41. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/runners.rb +0 -11
  42. data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/runners/base.rb +0 -26
  43. data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/runners.rb +0 -11
  44. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/bundle.rb +0 -26
  45. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/code_runner.rb +0 -26
  46. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/log.rb +0 -43
  47. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/logs/clear.rb +0 -26
  48. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/logs.rb +0 -18
  49. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb +0 -32
  50. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/tasks_scheduler/systemd_unit.rb +0 -46
  51. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/tasks_scheduler.rb +0 -17
  52. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/runners/base.rb +0 -25
  53. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/runners.rb +0 -11
  54. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner.rb +0 -12
  55. data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/runners/base.rb +0 -14
  56. data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/runners.rb +0 -11
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'curb'
4
3
  require 'json'
5
4
  require 'eac_ruby_utils/simple_cache'
6
5
  require 'rubygems'
7
6
  require 'eac_cli/speaker'
7
+ require 'aranha/parsers/source_address'
8
8
  require 'avm/launcher/publish/base'
9
9
  require 'avm/launcher/publish/check_result'
10
10
  require 'avm/eac_ruby_base1/launcher/gem'
@@ -98,11 +98,11 @@ module Avm
98
98
  end
99
99
 
100
100
  def gem_versions_uncached
101
- http = Curl.get("https://rubygems.org/api/v1/versions/#{gem_spec.name}.json")
102
- return JSON.parse!(http.body_str) if /\A2/ =~ http.status
103
- return [] if /\A4/ =~ http.status
104
-
105
- raise "#{http} code error: #{http.status}"
101
+ ::JSON.parse!(
102
+ ::Aranha::Parsers::SourceAddress.detect_sub(
103
+ "https://rubygems.org/api/v1/versions/#{gem_spec.name}.json"
104
+ ).content
105
+ )
106
106
  end
107
107
 
108
108
  def gem_version_max_uncached
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRubyBase1
5
- VERSION = '0.27.1'
5
+ VERSION = '0.27.3'
6
6
  end
7
7
  end
@@ -10,6 +10,10 @@ require 'avm/eac_ruby_base1/sources/base'
10
10
  let(:dir3) { dir1.join('dir3') }
11
11
  let(:dir4) { fixtures_root.join('dir4') }
12
12
 
13
+ before do
14
+ ::Avm::EacRubyBase1::Sources::Base.new(dir3).bundle.execute!
15
+ end
16
+
13
17
  {
14
18
  dir1: '0.48.1',
15
19
  dir2: ::Avm::EacRubyBase1::Sources::Base.new(::File.expand_path('../../../../../..', __dir__))
@@ -21,10 +25,6 @@ require 'avm/eac_ruby_base1/sources/base'
21
25
  let(:dir) { send(dir_name) }
22
26
  let(:thegem) { ::Avm::EacRubyBase1::Sources::Base.new(dir) }
23
27
 
24
- before do
25
- thegem.bundle.system! if thegem.gemfile_path.exist?
26
- end
27
-
28
28
  it "return #{rubocop_version} as Rubocop version" do
29
29
  argv = ['-C', dir.to_s, '--', '--version']
30
30
  expect { described_class.run(argv: argv) }.to(
@@ -0,0 +1,27 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ ast (2.4.2)
5
+ parser (2.7.2.0)
6
+ ast (~> 2.4.1)
7
+ powerpack (0.1.3)
8
+ rainbow (2.2.2)
9
+ rake
10
+ rake (13.0.6)
11
+ rubocop (0.48.1)
12
+ parser (>= 2.3.3.1, < 3.0)
13
+ powerpack (~> 0.1)
14
+ rainbow (>= 1.99.1, < 3.0)
15
+ ruby-progressbar (~> 1.7)
16
+ unicode-display_width (~> 1.0, >= 1.0.1)
17
+ ruby-progressbar (1.11.0)
18
+ unicode-display_width (1.8.0)
19
+
20
+ PLATFORMS
21
+ x86_64-linux
22
+
23
+ DEPENDENCIES
24
+ rubocop (= 0.48.1)
25
+
26
+ BUNDLED WITH
27
+ 2.3.26
@@ -6,6 +6,10 @@ require 'avm/eac_ruby_base1/sources/base'
6
6
  let(:mygem_path) { ::Pathname.new(__dir__).join('bundler_spec_files', 'mygem') }
7
7
  let(:mygem) { described_class.new(mygem_path) }
8
8
 
9
+ before do
10
+ mygem.bundle.execute!
11
+ end
12
+
9
13
  describe '#bundle' do
10
14
  specify do
11
15
  expect(mygem.bundle('exec', 'myrunner').execute!).to include('My Runner')
@@ -0,0 +1,19 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ mygem (1.0.0)
5
+ rake
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ rake (13.0.6)
11
+
12
+ PLATFORMS
13
+ x86_64-linux
14
+
15
+ DEPENDENCIES
16
+ mygem!
17
+
18
+ BUNDLED WITH
19
+ 2.3.17
@@ -14,10 +14,10 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.add_dependency 'avm', '~> 0.57'
16
16
  s.add_dependency 'avm-eac_generic_base0', '~> 0.8'
17
- s.add_dependency 'avm-eac_postgresql_base0', '~> 0.2', '>= 0.2.1'
17
+ s.add_dependency 'avm-eac_postgresql_base0', '~> 0.2', '>= 0.2.2'
18
18
  s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.3'
19
19
  s.add_dependency 'avm-files', '~> 0.6'
20
- s.add_dependency 'eac_ruby_utils', '~> 0.107', '>= 0.107.1'
20
+ s.add_dependency 'eac_ruby_utils', '~> 0.109'
21
21
 
22
22
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
23
23
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacWebappBase0
5
- VERSION = '0.12.3'
5
+ VERSION = '0.13.0'
6
6
  end
7
7
  end
@@ -12,9 +12,9 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib,template}/**/*']
14
14
 
15
- s.add_dependency 'avm', '~> 0.45'
16
- s.add_dependency 'avm-eac_webapp_base0', '~> 0.9'
17
- s.add_dependency 'eac_ruby_utils', '~> 0.104'
15
+ s.add_dependency 'avm', '~> 0.57'
16
+ s.add_dependency 'avm-eac_webapp_base0', '~> 0.13'
17
+ s.add_dependency 'eac_ruby_utils', '~> 0.109'
18
18
 
19
19
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5', '>= 0.5.1'
20
20
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacWordpressBase0
5
- VERSION = '0.2.1'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  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.1
4
+ version: 0.48.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-11-24 00:00:00.000000000 Z
11
+ date: 2022-12-10 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
@@ -101,59 +101,67 @@ dependencies:
101
101
  - !ruby/object:Gem::Version
102
102
  version: 0.2.2
103
103
  - !ruby/object:Gem::Dependency
104
- name: avm-eac_rails_base0
104
+ name: avm-eac_python_base0
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '0.8'
109
+ version: '0.2'
110
110
  - - ">="
111
111
  - !ruby/object:Gem::Version
112
- version: 0.8.1
112
+ version: 0.2.1
113
113
  type: :runtime
114
114
  prerelease: false
115
115
  version_requirements: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - "~>"
118
118
  - !ruby/object:Gem::Version
119
- version: '0.8'
119
+ version: '0.2'
120
120
  - - ">="
121
121
  - !ruby/object:Gem::Version
122
- version: 0.8.1
122
+ version: 0.2.1
123
123
  - !ruby/object:Gem::Dependency
124
- name: avm-eac_rails_base1
124
+ name: avm-eac_rails_base0
125
125
  requirement: !ruby/object:Gem::Requirement
126
126
  requirements:
127
127
  - - "~>"
128
128
  - !ruby/object:Gem::Version
129
- version: '0.7'
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: 0.7.1
129
+ version: '0.9'
133
130
  type: :runtime
134
131
  prerelease: false
135
132
  version_requirements: !ruby/object:Gem::Requirement
136
133
  requirements:
137
134
  - - "~>"
138
135
  - !ruby/object:Gem::Version
139
- version: '0.7'
140
- - - ">="
136
+ version: '0.9'
137
+ - !ruby/object:Gem::Dependency
138
+ name: avm-eac_rails_base1
139
+ requirement: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - "~>"
141
142
  - !ruby/object:Gem::Version
142
- version: 0.7.1
143
+ version: '0.8'
144
+ type: :runtime
145
+ prerelease: false
146
+ version_requirements: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - "~>"
149
+ - !ruby/object:Gem::Version
150
+ version: '0.8'
143
151
  - !ruby/object:Gem::Dependency
144
152
  name: avm-eac_redmine_base0
145
153
  requirement: !ruby/object:Gem::Requirement
146
154
  requirements:
147
155
  - - "~>"
148
156
  - !ruby/object:Gem::Version
149
- version: '0.17'
157
+ version: '0.18'
150
158
  type: :runtime
151
159
  prerelease: false
152
160
  version_requirements: !ruby/object:Gem::Requirement
153
161
  requirements:
154
162
  - - "~>"
155
163
  - !ruby/object:Gem::Version
156
- version: '0.17'
164
+ version: '0.18'
157
165
  - !ruby/object:Gem::Dependency
158
166
  name: avm-eac_redmine_plugin_base0
159
167
  requirement: !ruby/object:Gem::Requirement
@@ -177,7 +185,7 @@ dependencies:
177
185
  version: '0.27'
178
186
  - - ">="
179
187
  - !ruby/object:Gem::Version
180
- version: 0.27.1
188
+ version: 0.27.3
181
189
  type: :runtime
182
190
  prerelease: false
183
191
  version_requirements: !ruby/object:Gem::Requirement
@@ -187,47 +195,35 @@ dependencies:
187
195
  version: '0.27'
188
196
  - - ">="
189
197
  - !ruby/object:Gem::Version
190
- version: 0.27.1
198
+ version: 0.27.3
191
199
  - !ruby/object:Gem::Dependency
192
200
  name: avm-eac_webapp_base0
193
201
  requirement: !ruby/object:Gem::Requirement
194
202
  requirements:
195
203
  - - "~>"
196
204
  - !ruby/object:Gem::Version
197
- version: '0.12'
198
- - - ">="
199
- - !ruby/object:Gem::Version
200
- version: 0.12.3
205
+ version: '0.13'
201
206
  type: :runtime
202
207
  prerelease: false
203
208
  version_requirements: !ruby/object:Gem::Requirement
204
209
  requirements:
205
210
  - - "~>"
206
211
  - !ruby/object:Gem::Version
207
- version: '0.12'
208
- - - ">="
209
- - !ruby/object:Gem::Version
210
- version: 0.12.3
212
+ version: '0.13'
211
213
  - !ruby/object:Gem::Dependency
212
214
  name: avm-eac_wordpress_base0
213
215
  requirement: !ruby/object:Gem::Requirement
214
216
  requirements:
215
217
  - - "~>"
216
218
  - !ruby/object:Gem::Version
217
- version: '0.2'
218
- - - ">="
219
- - !ruby/object:Gem::Version
220
- version: 0.2.1
219
+ version: '0.3'
221
220
  type: :runtime
222
221
  prerelease: false
223
222
  version_requirements: !ruby/object:Gem::Requirement
224
223
  requirements:
225
224
  - - "~>"
226
225
  - !ruby/object:Gem::Version
227
- version: '0.2'
228
- - - ">="
229
- - !ruby/object:Gem::Version
230
- version: 0.2.1
226
+ version: '0.3'
231
227
  - !ruby/object:Gem::Dependency
232
228
  name: avm-tools
233
229
  requirement: !ruby/object:Gem::Requirement
@@ -343,8 +339,6 @@ files:
343
339
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/header_macro_value.rb
344
340
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/pre_process_line.rb
345
341
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/deploy.rb
346
- - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/runners.rb
347
- - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/runners/base.rb
348
342
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/source_generators.rb
349
343
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/source_generators/base.rb
350
344
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources.rb
@@ -486,8 +480,6 @@ files:
486
480
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/deploy.rb
487
481
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instances.rb
488
482
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instances/base.rb
489
- - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/runners.rb
490
- - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/runners/base.rb
491
483
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/source_generators/base.rb
492
484
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/sources/base.rb
493
485
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/version.rb
@@ -533,18 +525,18 @@ files:
533
525
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances.rb
534
526
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_host.rb
535
527
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
528
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners.rb
529
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/bundle.rb
530
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb
531
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/log.rb
532
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs.rb
533
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs/clear.rb
534
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/rails_server.rb
535
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler.rb
536
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler/systemd_unit.rb
536
537
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit.rb
537
538
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit/service.rb
538
539
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler_command.rb
539
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner.rb
540
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/bundle.rb
541
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/code_runner.rb
542
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/log.rb
543
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/logs.rb
544
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/logs/clear.rb
545
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb
546
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/tasks_scheduler.rb
547
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/tasks_scheduler/systemd_unit.rb
548
540
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/bundle.rb
549
541
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/rails_environment.rb
550
542
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/sources/base.rb
@@ -571,8 +563,6 @@ files:
571
563
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners.rb
572
564
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/docker.rb
573
565
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project_rename.rb
574
- - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/runners.rb
575
- - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/runners/base.rb
576
566
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources.rb
577
567
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/base.rb
578
568
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/core_update.rb
@@ -706,6 +696,7 @@ files:
706
696
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/version_file_spec_files/a_version_file.rb
707
697
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec.rb
708
698
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/dir3/Gemfile
699
+ - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/dir3/Gemfile.lock
709
700
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir2/empty.rb
710
701
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir4/false_command.rb
711
702
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec.rb
@@ -727,6 +718,7 @@ files:
727
718
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/spec/spec_helper.rb
728
719
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb
729
720
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile
721
+ - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile.lock
730
722
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Rakefile
731
723
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/exe/myrunner
732
724
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/lib/mygem.rb
@@ -771,7 +763,6 @@ files:
771
763
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data/dump.rb
772
764
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data/load.rb
773
765
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/deploy.rb
774
- - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner.rb
775
766
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/sources.rb
776
767
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/sources/base.rb
777
768
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb
@@ -804,8 +795,6 @@ files:
804
795
  - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/apache_host.rb
805
796
  - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/base.rb
806
797
  - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/deploy.rb
807
- - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/runners.rb
808
- - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/runners/base.rb
809
798
  - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/version.rb
810
799
  - sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec.rb
811
800
  - sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec_no_ssl_content.conf
@@ -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,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Avm
6
- module EacRailsBase0
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_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