eac_tools 0.21.0 → 0.24.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 +70 -70
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm/avm.gemspec +6 -6
- data/sub/avm/lib/avm/instances/base.rb +1 -1
- data/sub/avm/lib/avm/instances/runner.rb +4 -2
- data/sub/avm/lib/avm/sources/base/application.rb +34 -0
- data/sub/avm/lib/avm/sources/base/configuration.rb +2 -0
- data/sub/avm/lib/avm/sources/base/testing.rb +1 -1
- data/sub/avm/lib/avm/version.rb +1 -1
- data/sub/avm/lib/avm/with/application_stereotype.rb +1 -3
- data/sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec +5 -5
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/base.rb +13 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances.rb +11 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/version.rb +1 -1
- data/sub/avm-eac_latex_base0/avm-eac_latex_base0.gemspec +3 -3
- data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances/base.rb +2 -2
- data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/version.rb +1 -1
- data/sub/avm-eac_rails_base0/avm-eac_rails_base0.gemspec +2 -2
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instances/base.rb +13 -0
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instances.rb +11 -0
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/runners/base.rb +1 -1
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/version.rb +1 -1
- data/sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_host_spec.rb +2 -2
- data/sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb +2 -2
- data/sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec +4 -4
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb +27 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances.rb +11 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/bundle.rb +1 -1
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/rails_environment.rb +2 -2
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/version.rb +1 -1
- data/sub/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +6 -6
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base.rb +48 -4
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances.rb +11 -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/runners.rb +11 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources.rb +11 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
- data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +3 -3
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundler.rb +6 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/bundle_update.rb +23 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/update_dependencies_requirements.rb +1 -1
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update.rb +2 -4
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update_dependency_requirements.rb +7 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec.rb +8 -1
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile.lock +1 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/_gitignore +2 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile.lock +1 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/_gitignore +2 -0
- data/sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec +4 -4
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base/subcommand_parent.rb +26 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base.rb +61 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data/dump.rb +65 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data/load.rb +57 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data.rb +19 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners.rb +13 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
- data/sub/avm-eac_wordpress_base0/avm-eac_wordpress_base0.gemspec +3 -3
- data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/base.rb +2 -2
- data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/version.rb +1 -1
- data/sub/avm-tools/avm-tools.gemspec +11 -11
- data/sub/avm-tools/lib/avm/tools/runner/app_src/info.rb +10 -8
- data/sub/avm-tools/lib/avm/tools/runner/instance.rb +3 -1
- data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/list.rb +9 -1
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/value.rb +5 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb +17 -2
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/listable_spec.rb +32 -82
- metadata +49 -49
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instance.rb +0 -11
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instance.rb +0 -11
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb +0 -25
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb +0 -57
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instance/subcommand_parent.rb +0 -24
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instance.rb +0 -62
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/data/dump.rb +0 -63
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/data/load.rb +0 -55
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/data.rb +0 -17
@@ -7,6 +7,13 @@ module Avm
|
|
7
7
|
class Runner
|
8
8
|
class AppSrc
|
9
9
|
class Info
|
10
|
+
SOURCE_PROPERTIES = {
|
11
|
+
path: 'Path',
|
12
|
+
application: 'Application',
|
13
|
+
class: 'Stereotype',
|
14
|
+
scm: 'SCM'
|
15
|
+
}.freeze
|
16
|
+
|
10
17
|
runner_with :help do
|
11
18
|
desc 'Show information about local project instance.'
|
12
19
|
bool_opt '-p', '--parent', 'Show the parent source.'
|
@@ -14,7 +21,6 @@ module Avm
|
|
14
21
|
end
|
15
22
|
|
16
23
|
def run
|
17
|
-
show_instance
|
18
24
|
show_source
|
19
25
|
show_parent
|
20
26
|
show_test_commands
|
@@ -22,11 +28,6 @@ module Avm
|
|
22
28
|
|
23
29
|
private
|
24
30
|
|
25
|
-
def show_instance
|
26
|
-
infov 'Path', instance.path
|
27
|
-
infov 'Launcher stereotypes', instance.stereotypes.map(&:label).join(', ')
|
28
|
-
end
|
29
|
-
|
30
31
|
def show_parent
|
31
32
|
return unless parsed.parent?
|
32
33
|
|
@@ -34,8 +35,9 @@ module Avm
|
|
34
35
|
end
|
35
36
|
|
36
37
|
def show_source
|
37
|
-
|
38
|
-
|
38
|
+
SOURCE_PROPERTIES.each do |property, label|
|
39
|
+
infov label, runner_context.call(:subject).send(property)
|
40
|
+
end
|
39
41
|
end
|
40
42
|
|
41
43
|
def show_test_commands
|
@@ -29,8 +29,16 @@ module EacRubyUtils
|
|
29
29
|
@values.values.map(&:value)
|
30
30
|
end
|
31
31
|
|
32
|
+
def values_with_blank
|
33
|
+
[blank_value.value] + values
|
34
|
+
end
|
35
|
+
|
32
36
|
def options
|
33
|
-
@values.values.map
|
37
|
+
@values.values.map(&:to_option)
|
38
|
+
end
|
39
|
+
|
40
|
+
def options_with_blank
|
41
|
+
[blank_value.to_option] + options
|
34
42
|
end
|
35
43
|
|
36
44
|
def method_missing(name, *args, &block)
|
@@ -1,18 +1,33 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class Object
|
4
|
-
def pretty_debug
|
4
|
+
def pretty_debug(options = {})
|
5
|
+
print_debug_title(options)
|
6
|
+
|
5
7
|
STDERR.write(pretty_inspect)
|
6
8
|
|
7
9
|
self
|
8
10
|
end
|
9
11
|
|
10
|
-
def print_debug
|
12
|
+
def print_debug(options = {})
|
13
|
+
print_debug_title(options)
|
11
14
|
STDERR.write(to_debug + "\n")
|
12
15
|
|
13
16
|
self
|
14
17
|
end
|
15
18
|
|
19
|
+
def print_debug_title(title)
|
20
|
+
if title.is_a?(::Hash)
|
21
|
+
return unless title[:title]
|
22
|
+
|
23
|
+
title = title[:title]
|
24
|
+
end
|
25
|
+
char = '='
|
26
|
+
STDERR.write(char * (4 + title.length) + "\n")
|
27
|
+
STDERR.write("#{char} #{title} #{char}\n")
|
28
|
+
STDERR.write(char * (4 + title.length) + "\n")
|
29
|
+
end
|
30
|
+
|
16
31
|
def to_debug
|
17
32
|
"|#{::Object.instance_method(:to_s).bind(self).call}|#{self}|"
|
18
33
|
end
|
@@ -179,88 +179,38 @@ RSpec.describe ::EacRubyUtils::Listable do
|
|
179
179
|
describe 'instance label and descriptions' do
|
180
180
|
let(:instance) { stub_class.new }
|
181
181
|
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
it { expect(instance.code_description).to eq('Código A Descr.') }
|
215
|
-
end
|
216
|
-
|
217
|
-
context 'when code value is B' do
|
218
|
-
before { instance.code = stub_class::CODE_B }
|
219
|
-
|
220
|
-
it { expect(instance.code_label).to eq('Código B') }
|
221
|
-
it { expect(instance.code_description).to eq('Código B Descr.') }
|
222
|
-
end
|
223
|
-
|
224
|
-
context 'when code value is blank' do
|
225
|
-
before { instance.code = nil }
|
226
|
-
|
227
|
-
it { expect(instance.code_label).to eq('') }
|
228
|
-
it { expect(instance.code_description).to eq('') }
|
229
|
-
end
|
230
|
-
|
231
|
-
context 'when cadeia value is A' do
|
232
|
-
before { instance.cadeia = stub_class::CADEIA_A }
|
233
|
-
|
234
|
-
it { expect(instance.cadeia_label).to eq('Cadeia AAA') }
|
235
|
-
it { expect(instance.cadeia_description).to eq('Cadeia AAA Descr.') }
|
236
|
-
end
|
237
|
-
|
238
|
-
context 'when cadeia value is B' do
|
239
|
-
before { instance.cadeia = stub_class::CADEIA_B }
|
240
|
-
|
241
|
-
it { expect(instance.cadeia_label).to eq('Cadeia BB') }
|
242
|
-
it { expect(instance.cadeia_description).to eq('Cadeia BB Descr.') }
|
243
|
-
end
|
244
|
-
|
245
|
-
context 'when cadeia value is C' do
|
246
|
-
before { instance.cadeia = stub_class::CADEIA_C }
|
247
|
-
|
248
|
-
it { expect(instance.cadeia_label).to eq('Cadeia C') }
|
249
|
-
it { expect(instance.cadeia_description).to eq('Cadeia C Descr.') }
|
250
|
-
end
|
251
|
-
|
252
|
-
context 'when type value is A' do
|
253
|
-
before { instance.type = stub_class::TYPE_A }
|
254
|
-
|
255
|
-
it { expect(instance.type_label).to eq('Tipo A') }
|
256
|
-
it { expect(instance.type_description).to eq('Tipo A Descr.') }
|
257
|
-
end
|
258
|
-
|
259
|
-
context 'when type value is B' do
|
260
|
-
before { instance.type = stub_class::TYPE_B }
|
261
|
-
|
262
|
-
it { expect(instance.type_label).to eq('Tipo B') }
|
263
|
-
it { expect(instance.type_description).to eq('Tipo B Descr.') }
|
182
|
+
{
|
183
|
+
inteiro: {
|
184
|
+
INTEIRO_A: ['Inteiro A', 'Inteiro A Descr.'],
|
185
|
+
INTEIRO_B: ['Inteiro BB', 'Inteiro BB Descr.'],
|
186
|
+
INTEIRO_C: ['Inteiro CCC', 'Inteiro CCC Descr.'],
|
187
|
+
nil => ['Inteiro em branco', 'Inteiro em branco Descr.']
|
188
|
+
},
|
189
|
+
code: {
|
190
|
+
CODE_A: ['Código A', 'Código A Descr.'],
|
191
|
+
CODE_B: ['Código B', 'Código B Descr.'],
|
192
|
+
nil => ['', '']
|
193
|
+
},
|
194
|
+
cadeia: {
|
195
|
+
CADEIA_A: ['Cadeia AAA', 'Cadeia AAA Descr.'],
|
196
|
+
CADEIA_B: ['Cadeia BB', 'Cadeia BB Descr.'],
|
197
|
+
CADEIA_C: ['Cadeia C', 'Cadeia C Descr.']
|
198
|
+
},
|
199
|
+
type: {
|
200
|
+
TYPE_A: ['Tipo A', 'Tipo A Descr.'],
|
201
|
+
TYPE_B: ['Tipo B', 'Tipo B Descr.']
|
202
|
+
}
|
203
|
+
}.each do |attr, attr_values|
|
204
|
+
attr_values.each do |attr_value_const, expected_values|
|
205
|
+
context "when #{attr} value is #{attr_value_const}" do
|
206
|
+
let(:attr_value) { attr_value_const ? stub_class.const_get(attr_value_const) : nil }
|
207
|
+
|
208
|
+
before { instance.send("#{attr}=", attr_value) }
|
209
|
+
|
210
|
+
it { expect(instance.send("#{attr}_label")).to eq(expected_values[0]) }
|
211
|
+
it { expect(instance.send("#{attr}_description")).to eq(expected_values[1]) }
|
212
|
+
end
|
213
|
+
end
|
264
214
|
end
|
265
215
|
end
|
266
216
|
|
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.24.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-14 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.
|
19
|
+
version: '0.37'
|
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.37'
|
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.
|
33
|
+
version: '0.5'
|
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.
|
40
|
+
version: '0.5'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: avm-eac_generic_base0
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -61,7 +61,7 @@ dependencies:
|
|
61
61
|
version: '0.1'
|
62
62
|
- - ">="
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: 0.1.
|
64
|
+
version: 0.1.2
|
65
65
|
type: :runtime
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -71,61 +71,49 @@ dependencies:
|
|
71
71
|
version: '0.1'
|
72
72
|
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 0.1.
|
74
|
+
version: 0.1.2
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: avm-eac_rails_base0
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '0.
|
82
|
-
- - ">="
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
version: 0.6.1
|
81
|
+
version: '0.7'
|
85
82
|
type: :runtime
|
86
83
|
prerelease: false
|
87
84
|
version_requirements: !ruby/object:Gem::Requirement
|
88
85
|
requirements:
|
89
86
|
- - "~>"
|
90
87
|
- !ruby/object:Gem::Version
|
91
|
-
version: '0.
|
92
|
-
- - ">="
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version: 0.6.1
|
88
|
+
version: '0.7'
|
95
89
|
- !ruby/object:Gem::Dependency
|
96
90
|
name: avm-eac_rails_base1
|
97
91
|
requirement: !ruby/object:Gem::Requirement
|
98
92
|
requirements:
|
99
93
|
- - "~>"
|
100
94
|
- !ruby/object:Gem::Version
|
101
|
-
version: '0.
|
102
|
-
- - ">="
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: 0.4.2
|
95
|
+
version: '0.5'
|
105
96
|
type: :runtime
|
106
97
|
prerelease: false
|
107
98
|
version_requirements: !ruby/object:Gem::Requirement
|
108
99
|
requirements:
|
109
100
|
- - "~>"
|
110
101
|
- !ruby/object:Gem::Version
|
111
|
-
version: '0.
|
112
|
-
- - ">="
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
version: 0.4.2
|
102
|
+
version: '0.5'
|
115
103
|
- !ruby/object:Gem::Dependency
|
116
104
|
name: avm-eac_redmine_base0
|
117
105
|
requirement: !ruby/object:Gem::Requirement
|
118
106
|
requirements:
|
119
107
|
- - "~>"
|
120
108
|
- !ruby/object:Gem::Version
|
121
|
-
version: '0.
|
109
|
+
version: '0.12'
|
122
110
|
type: :runtime
|
123
111
|
prerelease: false
|
124
112
|
version_requirements: !ruby/object:Gem::Requirement
|
125
113
|
requirements:
|
126
114
|
- - "~>"
|
127
115
|
- !ruby/object:Gem::Version
|
128
|
-
version: '0.
|
116
|
+
version: '0.12'
|
129
117
|
- !ruby/object:Gem::Dependency
|
130
118
|
name: avm-eac_redmine_plugin_base0
|
131
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,34 +134,34 @@ dependencies:
|
|
146
134
|
requirements:
|
147
135
|
- - "~>"
|
148
136
|
- !ruby/object:Gem::Version
|
149
|
-
version: '0.
|
137
|
+
version: '0.19'
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: 0.19.1
|
150
141
|
type: :runtime
|
151
142
|
prerelease: false
|
152
143
|
version_requirements: !ruby/object:Gem::Requirement
|
153
144
|
requirements:
|
154
145
|
- - "~>"
|
155
146
|
- !ruby/object:Gem::Version
|
156
|
-
version: '0.
|
147
|
+
version: '0.19'
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: 0.19.1
|
157
151
|
- !ruby/object:Gem::Dependency
|
158
152
|
name: avm-eac_webapp_base0
|
159
153
|
requirement: !ruby/object:Gem::Requirement
|
160
154
|
requirements:
|
161
155
|
- - "~>"
|
162
156
|
- !ruby/object:Gem::Version
|
163
|
-
version: '0.
|
164
|
-
- - ">="
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: 0.3.1
|
157
|
+
version: '0.4'
|
167
158
|
type: :runtime
|
168
159
|
prerelease: false
|
169
160
|
version_requirements: !ruby/object:Gem::Requirement
|
170
161
|
requirements:
|
171
162
|
- - "~>"
|
172
163
|
- !ruby/object:Gem::Version
|
173
|
-
version: '0.
|
174
|
-
- - ">="
|
175
|
-
- !ruby/object:Gem::Version
|
176
|
-
version: 0.3.1
|
164
|
+
version: '0.4'
|
177
165
|
- !ruby/object:Gem::Dependency
|
178
166
|
name: avm-eac_wordpress_base0
|
179
167
|
requirement: !ruby/object:Gem::Requirement
|
@@ -183,7 +171,7 @@ dependencies:
|
|
183
171
|
version: '0.1'
|
184
172
|
- - ">="
|
185
173
|
- !ruby/object:Gem::Version
|
186
|
-
version: 0.1.
|
174
|
+
version: 0.1.2
|
187
175
|
type: :runtime
|
188
176
|
prerelease: false
|
189
177
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -193,21 +181,21 @@ dependencies:
|
|
193
181
|
version: '0.1'
|
194
182
|
- - ">="
|
195
183
|
- !ruby/object:Gem::Version
|
196
|
-
version: 0.1.
|
184
|
+
version: 0.1.2
|
197
185
|
- !ruby/object:Gem::Dependency
|
198
186
|
name: avm-tools
|
199
187
|
requirement: !ruby/object:Gem::Requirement
|
200
188
|
requirements:
|
201
189
|
- - "~>"
|
202
190
|
- !ruby/object:Gem::Version
|
203
|
-
version: '0.
|
191
|
+
version: '0.133'
|
204
192
|
type: :runtime
|
205
193
|
prerelease: false
|
206
194
|
version_requirements: !ruby/object:Gem::Requirement
|
207
195
|
requirements:
|
208
196
|
- - "~>"
|
209
197
|
- !ruby/object:Gem::Version
|
210
|
-
version: '0.
|
198
|
+
version: '0.133'
|
211
199
|
- !ruby/object:Gem::Dependency
|
212
200
|
name: eac_ruby_utils
|
213
201
|
requirement: !ruby/object:Gem::Requirement
|
@@ -252,7 +240,8 @@ files:
|
|
252
240
|
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/apache_host.rb
|
253
241
|
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/apache_path.rb
|
254
242
|
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/deploy.rb
|
255
|
-
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/
|
243
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances.rb
|
244
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/base.rb
|
256
245
|
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/runners.rb
|
257
246
|
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/runners/base.rb
|
258
247
|
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources.rb
|
@@ -322,7 +311,8 @@ files:
|
|
322
311
|
- sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/apache_host.rb
|
323
312
|
- sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/apache_path.rb
|
324
313
|
- sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/deploy.rb
|
325
|
-
- sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/
|
314
|
+
- sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instances.rb
|
315
|
+
- sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instances/base.rb
|
326
316
|
- sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/runners.rb
|
327
317
|
- sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/runners/base.rb
|
328
318
|
- sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/source_generators/base.rb
|
@@ -368,7 +358,8 @@ files:
|
|
368
358
|
- sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec
|
369
359
|
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1.rb
|
370
360
|
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/apache_host.rb
|
371
|
-
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/
|
361
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances.rb
|
362
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
|
372
363
|
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner.rb
|
373
364
|
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/bundle.rb
|
374
365
|
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/code_runner.rb
|
@@ -396,14 +387,16 @@ files:
|
|
396
387
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/core_update.rb
|
397
388
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/data_unit.rb
|
398
389
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/deploy.rb
|
399
|
-
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/
|
390
|
+
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances.rb
|
400
391
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base.rb
|
401
392
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/docker_image.rb
|
402
393
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners.rb
|
403
394
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/docker.rb
|
404
395
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project_rename.rb
|
405
396
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/rest_api.rb
|
397
|
+
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/runners.rb
|
406
398
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/runners/base.rb
|
399
|
+
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources.rb
|
407
400
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/base.rb
|
408
401
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/runners.rb
|
409
402
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/runners/core_update.rb
|
@@ -465,6 +458,7 @@ files:
|
|
465
458
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rake.rb
|
466
459
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubygems.rb
|
467
460
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version_bump.rb
|
461
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/bundle_update.rb
|
468
462
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners.rb
|
469
463
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler.rb
|
470
464
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_local.rb
|
@@ -497,12 +491,16 @@ files:
|
|
497
491
|
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir4/false_command.rb
|
498
492
|
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec.rb
|
499
493
|
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile
|
494
|
+
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile.lock
|
495
|
+
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/_gitignore
|
500
496
|
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/dashed-mygem.gemspec
|
501
497
|
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem.rb
|
502
498
|
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem/version.rb
|
503
499
|
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/spec/rubocop_spec.rb
|
504
500
|
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/spec/spec_helper.rb
|
505
501
|
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile
|
502
|
+
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile.lock
|
503
|
+
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/_gitignore
|
506
504
|
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/lib/mygem.rb
|
507
505
|
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/lib/mygem/version.rb
|
508
506
|
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/mygem.gemspec
|
@@ -536,14 +534,15 @@ files:
|
|
536
534
|
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/git_info.rb
|
537
535
|
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/version.rb
|
538
536
|
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/write_on_target.rb
|
539
|
-
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/
|
540
|
-
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/
|
537
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base.rb
|
538
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base/subcommand_parent.rb
|
539
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners.rb
|
540
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data.rb
|
541
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data/dump.rb
|
542
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data/load.rb
|
541
543
|
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner.rb
|
542
544
|
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_host.rb
|
543
545
|
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
|
544
|
-
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/data.rb
|
545
|
-
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/data/dump.rb
|
546
|
-
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/data/load.rb
|
547
546
|
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/deploy.rb
|
548
547
|
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/sources.rb
|
549
548
|
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/sources/base.rb
|
@@ -833,6 +832,7 @@ files:
|
|
833
832
|
- sub/avm/lib/avm/source_generators/runner.rb
|
834
833
|
- sub/avm/lib/avm/sources.rb
|
835
834
|
- sub/avm/lib/avm/sources/base.rb
|
835
|
+
- sub/avm/lib/avm/sources/base/application.rb
|
836
836
|
- sub/avm/lib/avm/sources/base/configuration.rb
|
837
837
|
- sub/avm/lib/avm/sources/base/instance.rb
|
838
838
|
- sub/avm/lib/avm/sources/base/locale.rb
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_ruby_base1/sources/base'
|
4
|
-
require 'avm/eac_webapp_base0/instance'
|
5
|
-
|
6
|
-
module Avm
|
7
|
-
module EacRailsBase1
|
8
|
-
class Instance < ::Avm::EacWebappBase0::Instance
|
9
|
-
DEFAULT_RAILS_ENVIRONMENT = 'production'
|
10
|
-
|
11
|
-
def bundle(*args)
|
12
|
-
the_gem.bundle(*args).chdir_root.envvar('RAILS_ENV', DEFAULT_RAILS_ENVIRONMENT)
|
13
|
-
end
|
14
|
-
|
15
|
-
def rake(*args)
|
16
|
-
bundle('exec', 'rake', *args)
|
17
|
-
end
|
18
|
-
|
19
|
-
def the_gem
|
20
|
-
@the_gem ||= ::Avm::EacRubyBase1::Sources::Base.new(::File.join(read_entry('fs_path')))
|
21
|
-
.env_set(host_env)
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|