avm-tools 0.89.0 → 0.94.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/eac_asciidoctor_base0.rb +9 -0
- data/lib/avm/{eac_writings_base1 → eac_asciidoctor_base0}/apache_host.rb +1 -1
- data/lib/avm/eac_asciidoctor_base0/apache_path.rb +10 -0
- data/lib/avm/{eac_writings_base1 → eac_asciidoctor_base0}/build.rb +5 -3
- data/lib/avm/{eac_writings_base1 → eac_asciidoctor_base0}/build/file.rb +4 -4
- data/lib/avm/{eac_writings_base1 → eac_asciidoctor_base0}/deploy.rb +6 -6
- data/lib/avm/{eac_writings_base1 → eac_asciidoctor_base0}/instance.rb +1 -1
- data/lib/avm/{eac_writings_base1 → eac_asciidoctor_base0}/project.rb +1 -1
- data/lib/avm/eac_rails_base0/apache_path.rb +6 -38
- data/lib/avm/eac_webapp_base0/apache_host.rb +7 -31
- data/lib/avm/eac_webapp_base0/apache_path.rb +51 -0
- data/lib/avm/eac_webapp_base0/deploy.rb +12 -30
- data/lib/avm/eac_webapp_base0/runner/apache_host.rb +7 -10
- data/lib/avm/eac_webapp_base0/runner/apache_path.rb +40 -0
- data/lib/avm/eac_webapp_base0/runner/data.rb +6 -15
- data/lib/avm/eac_webapp_base0/runner/data/dump.rb +18 -24
- data/lib/avm/eac_webapp_base0/runner/data/load.rb +12 -23
- data/lib/avm/executables.rb +1 -1
- data/lib/avm/git/auto_commit/commit_info.rb +23 -0
- data/lib/avm/git/auto_commit/rules.rb +31 -0
- data/lib/avm/git/auto_commit/rules/base.rb +39 -0
- data/lib/avm/git/auto_commit/rules/last.rb +19 -0
- data/lib/avm/git/auto_commit/rules/manual.rb +45 -0
- data/lib/avm/git/auto_commit/rules/new.rb +24 -0
- data/lib/avm/git/auto_commit/rules/nth.rb +31 -0
- data/lib/avm/git/auto_commit/rules/unique.rb +21 -0
- data/lib/avm/git/auto_commit_path.rb +0 -21
- data/lib/avm/git/file_auto_fixup.rb +20 -61
- data/lib/avm/tools/runner/{eac_writings_base1.rb → eac_asciidoctor_base0.rb} +2 -2
- data/lib/avm/tools/runner/eac_redmine_base0/core_update.rb +7 -11
- data/lib/avm/tools/runner/git/auto_commit.rb +30 -31
- data/lib/avm/tools/runner/git/commit.rb +11 -20
- data/lib/avm/tools/runner/local_project/{eac_writings_base1.rb → eac_asciidoctor_base0.rb} +2 -2
- data/lib/avm/tools/runner/local_project/{eac_writings_base1 → eac_asciidoctor_base0}/build.rb +5 -9
- data/lib/avm/tools/runner/local_project/ruby.rb +1 -1
- data/lib/avm/tools/runner/local_project/ruby/bundler.rb +1 -1
- data/lib/avm/tools/runner/local_project/ruby/bundler/gemfile_lock.rb +1 -1
- data/lib/avm/tools/runner/ruby.rb +6 -14
- data/lib/avm/tools/runner/ruby/gems.rb +4 -7
- data/lib/avm/tools/runner/ruby/gems/generate.rb +12 -23
- data/lib/avm/tools/runner/ruby/rubocop.rb +1 -1
- data/lib/avm/tools/version.rb +1 -1
- data/template/avm/eac_rails_base0/apache_path/extra_content.conf +5 -0
- data/template/avm/eac_webapp_base0/apache_path/default.conf +9 -0
- data/vendor/avm-apps/Gemfile +5 -0
- data/vendor/avm-apps/avm-apps.gemspec +18 -0
- data/{lib/avm/eac_writings_base1.rb → vendor/avm-apps/lib/avm/apps.rb} +1 -1
- data/vendor/avm-apps/lib/avm/apps/jobs.rb +11 -0
- data/vendor/avm-apps/lib/avm/apps/jobs/base.rb +64 -0
- data/vendor/avm-apps/lib/avm/apps/jobs/variables_source.rb +24 -0
- data/vendor/avm-apps/lib/avm/apps/version.rb +7 -0
- data/vendor/avm-apps/spec/rubocop_spec.rb +7 -0
- data/vendor/avm-apps/spec/spec_helper.rb +100 -0
- data/vendor/eac_cli/lib/eac_cli/definition/alternative.rb +4 -7
- data/vendor/eac_cli/lib/eac_cli/definition/argument_option.rb +8 -0
- data/vendor/eac_cli/lib/eac_cli/definition/base_option.rb +21 -9
- data/vendor/eac_cli/lib/eac_cli/definition/base_option/initialize_args_parser.rb +47 -0
- data/vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb +8 -0
- data/vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb +12 -0
- data/vendor/eac_cli/lib/eac_cli/docopt/doc_builder.rb +15 -1
- data/vendor/eac_cli/lib/eac_cli/parser/collector.rb +3 -17
- data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
- data/vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb +4 -0
- data/vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb +21 -3
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/local_time_zone.rb +4 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- metadata +55 -16
- data/lib/avm/tools/runner/eac_rails_base0/apache_path.rb +0 -38
- data/lib/avm/tools/runner/git/auto_fixup.rb +0 -53
- data/template/avm/eac_rails_base0/apache_path/default.conf +0 -13
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/default_time_zone_set.rb +0 -6
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EacCli
|
4
|
+
class Definition
|
5
|
+
class BaseOption
|
6
|
+
class InitializeArgsParser
|
7
|
+
PROPERTIES = %i[short long description options].freeze
|
8
|
+
attr_reader(*PROPERTIES)
|
9
|
+
|
10
|
+
def initialize(args)
|
11
|
+
self.options = args.extract_options!.freeze
|
12
|
+
args.each { |arg| absorb_arg(arg) }
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
attr_writer(*PROPERTIES)
|
18
|
+
|
19
|
+
def absorb_arg(arg)
|
20
|
+
arg_ext = ArgumentParser.new(arg)
|
21
|
+
send("#{arg_ext.type}=", arg_ext.value)
|
22
|
+
end
|
23
|
+
|
24
|
+
class ArgumentParser
|
25
|
+
TYPES = %i[short long description].freeze
|
26
|
+
common_constructor :value
|
27
|
+
|
28
|
+
def type
|
29
|
+
TYPES.find { |type| send("#{type}?") } || raise("Unknown type for \"#{value}\"")
|
30
|
+
end
|
31
|
+
|
32
|
+
def short?
|
33
|
+
value.start_with?('-') && !long?
|
34
|
+
end
|
35
|
+
|
36
|
+
def long?
|
37
|
+
value.start_with?('--')
|
38
|
+
end
|
39
|
+
|
40
|
+
def description?
|
41
|
+
!short? || !long?
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -13,6 +13,18 @@ module EacCli
|
|
13
13
|
options.assert_valid_keys(self.class.lists.option.values)
|
14
14
|
end
|
15
15
|
|
16
|
+
def build_value(new_value, previous_value)
|
17
|
+
if previous_value.is_a?(::Array)
|
18
|
+
previous_value + [new_value]
|
19
|
+
else
|
20
|
+
new_value
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def default_value
|
25
|
+
repeat? ? [] : nil
|
26
|
+
end
|
27
|
+
|
16
28
|
def identifier
|
17
29
|
name.to_s.variableize.to_sym
|
18
30
|
end
|
@@ -19,10 +19,24 @@ module EacCli
|
|
19
19
|
b += '=<value>' if option.argument?
|
20
20
|
b
|
21
21
|
end
|
22
|
+
|
23
|
+
def option_short(option)
|
24
|
+
b = option.short
|
25
|
+
b += '=<value>' if option.argument?
|
26
|
+
b
|
27
|
+
end
|
28
|
+
|
29
|
+
def option_usage_full(option)
|
30
|
+
if option.long.present?
|
31
|
+
[option.short, option_long(option)].reject(&:blank?).join(SEP)
|
32
|
+
else
|
33
|
+
option_short(option)
|
34
|
+
end
|
35
|
+
end
|
22
36
|
end
|
23
37
|
|
24
38
|
def option_definition(option)
|
25
|
-
|
39
|
+
self.class.option_usage_full(option) + OPTION_DESC_SEP + option.description
|
26
40
|
end
|
27
41
|
|
28
42
|
def section(header, include_header = true)
|
@@ -24,11 +24,7 @@ module EacCli
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def collect(option, value)
|
27
|
-
|
28
|
-
data[option] << value
|
29
|
-
else
|
30
|
-
data[option] = value
|
31
|
-
end
|
27
|
+
data[option] = option.build_value(value, data[option])
|
32
28
|
end
|
33
29
|
|
34
30
|
def supplied?(option)
|
@@ -42,18 +38,8 @@ module EacCli
|
|
42
38
|
end
|
43
39
|
|
44
40
|
def default_values
|
45
|
-
definition.options.each { |option| data[option] =
|
46
|
-
definition.positional.each
|
47
|
-
data[positional] = positional_default_value(positional)
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
def option_default_value(option)
|
52
|
-
option.argument? ? nil : false
|
53
|
-
end
|
54
|
-
|
55
|
-
def positional_default_value(positional)
|
56
|
-
positional.repeat? ? [] : nil
|
41
|
+
definition.options.each { |option| data[option] = option.default_value }
|
42
|
+
definition.positional.each { |positional| data[positional] = positional.default_value }
|
57
43
|
end
|
58
44
|
end
|
59
45
|
end
|
@@ -7,6 +7,10 @@ RSpec.describe ::EacCli::Definition::Alternative do
|
|
7
7
|
|
8
8
|
it { expect { instance.arg_opt '-a', '--opt2', 'A argument option' }.not_to raise_error }
|
9
9
|
it { expect { instance.bool_opt '-b', '--opt1', 'A boolean option' }.not_to raise_error }
|
10
|
+
it { expect { instance.bool_opt '-b', '--no-description' }.not_to raise_error }
|
11
|
+
it { expect { instance.bool_opt '--opt1', 'A option without short' }.not_to raise_error }
|
12
|
+
it { expect { instance.bool_opt '-b', 'A option without long' }.not_to raise_error }
|
13
|
+
it { expect { instance.bool_opt 'A option without selectors' }.to raise_error(::StandardError) }
|
10
14
|
it { expect { instance.options_argument(true) }.not_to raise_error }
|
11
15
|
it { expect { instance.pos_arg :pos1 }.not_to raise_error }
|
12
16
|
it { expect { instance.pos_arg :pos2, optional: true, repeat: true }.not_to raise_error }
|
@@ -12,6 +12,8 @@ RSpec.describe ::EacCli::Runner do
|
|
12
12
|
runner_definition do
|
13
13
|
arg_opt '-o', '--opt1', 'A arg option.'
|
14
14
|
bool_opt '-p', '--opt2', 'A boolean option'
|
15
|
+
arg_opt '-q', '--opt4', 'A repeatable argument option.', repeat: true
|
16
|
+
bool_opt '-r', '--opt5', 'A repeatable boolean option', repeat: true
|
15
17
|
pos_arg :pos1
|
16
18
|
pos_arg :pos2, repeat: true, optional: true
|
17
19
|
alt do
|
@@ -29,7 +31,7 @@ RSpec.describe ::EacCli::Runner do
|
|
29
31
|
context 'when all args are supplied' do
|
30
32
|
let(:argv) { %w[--opt1 aaa --opt2 bbb ccc ddd] }
|
31
33
|
let(:parsed_expected) do
|
32
|
-
{ opt1: 'aaa', opt2: true, opt3: false, pos1: 'bbb',
|
34
|
+
{ opt1: 'aaa', opt2: true, opt3: false, opt4: [], opt5: 0, pos1: 'bbb',
|
33
35
|
pos2: %w[ccc ddd] }
|
34
36
|
end
|
35
37
|
|
@@ -63,7 +65,10 @@ RSpec.describe ::EacCli::Runner do
|
|
63
65
|
|
64
66
|
context 'when only required args are supplied' do
|
65
67
|
let(:argv) { %w[bbb] }
|
66
|
-
let(:parsed_expected)
|
68
|
+
let(:parsed_expected) do
|
69
|
+
{ opt1: nil, opt2: false, opt3: false, opt4: [], opt5: 0, pos1: 'bbb',
|
70
|
+
pos2: [] }
|
71
|
+
end
|
67
72
|
|
68
73
|
it { expect(parsed_actual).to eq(parsed_expected) }
|
69
74
|
it { expect(instance.parsed.opt1).to be_nil }
|
@@ -82,12 +87,25 @@ RSpec.describe ::EacCli::Runner do
|
|
82
87
|
|
83
88
|
context 'when alternative args are supplied' do
|
84
89
|
let(:argv) { %w[--opt3] }
|
85
|
-
let(:parsed_expected)
|
90
|
+
let(:parsed_expected) do
|
91
|
+
{ opt1: nil, opt2: false, opt3: true, opt4: [], opt5: 0, pos1: nil,
|
92
|
+
pos2: [] }
|
93
|
+
end
|
86
94
|
|
87
95
|
it { expect(parsed_actual).to eq(parsed_expected) }
|
88
96
|
it { expect(instance.parsed.opt3?).to eq(true) }
|
89
97
|
end
|
90
98
|
|
99
|
+
context 'when repeated options are supplied' do
|
100
|
+
let(:argv) { %w[--opt5 -rrr --opt4=A -q B --opt4 C AAA] }
|
101
|
+
let(:parsed_expected) do
|
102
|
+
{ opt1: nil, opt2: false, opt3: false, opt4: %w[A B C], opt5: 4, pos1: 'AAA',
|
103
|
+
pos2: [] }
|
104
|
+
end
|
105
|
+
|
106
|
+
it { expect(parsed_actual).to eq(parsed_expected) }
|
107
|
+
end
|
108
|
+
|
91
109
|
context 'when extra args are not supplied' do
|
92
110
|
let(:runner_class) do
|
93
111
|
the_module = described_class
|
@@ -14,6 +14,10 @@ module EacRubyUtils
|
|
14
14
|
%w[tz_env debian_config offset].lazy.map { |s| send("by_#{s}") }.find(&:present?)
|
15
15
|
end
|
16
16
|
|
17
|
+
def auto_set
|
18
|
+
::Time.zone = auto
|
19
|
+
end
|
20
|
+
|
17
21
|
def by_debian_config
|
18
22
|
path = ::Pathname.new(DEBIAN_CONFIG_PATH)
|
19
23
|
path.exist? ? path.read.strip.presence : nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.94.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-parsers
|
@@ -24,6 +24,26 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.4'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: asciidoctor
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 2.0.12
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '2.0'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 2.0.12
|
27
47
|
- !ruby/object:Gem::Dependency
|
28
48
|
name: clipboard
|
29
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -290,6 +310,14 @@ files:
|
|
290
310
|
- lib/avm/docker/image.rb
|
291
311
|
- lib/avm/docker/registry.rb
|
292
312
|
- lib/avm/docker/runner.rb
|
313
|
+
- lib/avm/eac_asciidoctor_base0.rb
|
314
|
+
- lib/avm/eac_asciidoctor_base0/apache_host.rb
|
315
|
+
- lib/avm/eac_asciidoctor_base0/apache_path.rb
|
316
|
+
- lib/avm/eac_asciidoctor_base0/build.rb
|
317
|
+
- lib/avm/eac_asciidoctor_base0/build/file.rb
|
318
|
+
- lib/avm/eac_asciidoctor_base0/deploy.rb
|
319
|
+
- lib/avm/eac_asciidoctor_base0/instance.rb
|
320
|
+
- lib/avm/eac_asciidoctor_base0/project.rb
|
293
321
|
- lib/avm/eac_rails_base0.rb
|
294
322
|
- lib/avm/eac_rails_base0/apache_host.rb
|
295
323
|
- lib/avm/eac_rails_base0/apache_path.rb
|
@@ -317,6 +345,7 @@ files:
|
|
317
345
|
- lib/avm/eac_ubuntu_base0/docker_image.rb
|
318
346
|
- lib/avm/eac_webapp_base0.rb
|
319
347
|
- lib/avm/eac_webapp_base0/apache_host.rb
|
348
|
+
- lib/avm/eac_webapp_base0/apache_path.rb
|
320
349
|
- lib/avm/eac_webapp_base0/deploy.rb
|
321
350
|
- lib/avm/eac_webapp_base0/deploy/appended_directories.rb
|
322
351
|
- lib/avm/eac_webapp_base0/deploy/build.rb
|
@@ -327,6 +356,7 @@ files:
|
|
327
356
|
- lib/avm/eac_webapp_base0/instance.rb
|
328
357
|
- lib/avm/eac_webapp_base0/runner.rb
|
329
358
|
- lib/avm/eac_webapp_base0/runner/apache_host.rb
|
359
|
+
- lib/avm/eac_webapp_base0/runner/apache_path.rb
|
330
360
|
- lib/avm/eac_webapp_base0/runner/data.rb
|
331
361
|
- lib/avm/eac_webapp_base0/runner/data/dump.rb
|
332
362
|
- lib/avm/eac_webapp_base0/runner/data/load.rb
|
@@ -348,13 +378,6 @@ files:
|
|
348
378
|
- lib/avm/eac_writings_base0/project_build.rb
|
349
379
|
- lib/avm/eac_writings_base0/project_build/chapters_content.rb
|
350
380
|
- lib/avm/eac_writings_base0/project_build/copy_files.rb
|
351
|
-
- lib/avm/eac_writings_base1.rb
|
352
|
-
- lib/avm/eac_writings_base1/apache_host.rb
|
353
|
-
- lib/avm/eac_writings_base1/build.rb
|
354
|
-
- lib/avm/eac_writings_base1/build/file.rb
|
355
|
-
- lib/avm/eac_writings_base1/deploy.rb
|
356
|
-
- lib/avm/eac_writings_base1/instance.rb
|
357
|
-
- lib/avm/eac_writings_base1/project.rb
|
358
381
|
- lib/avm/executables.rb
|
359
382
|
- lib/avm/files.rb
|
360
383
|
- lib/avm/files/appendable.rb
|
@@ -380,6 +403,14 @@ files:
|
|
380
403
|
- lib/avm/files/rotate.rb
|
381
404
|
- lib/avm/fs_cache.rb
|
382
405
|
- lib/avm/git.rb
|
406
|
+
- lib/avm/git/auto_commit/commit_info.rb
|
407
|
+
- lib/avm/git/auto_commit/rules.rb
|
408
|
+
- lib/avm/git/auto_commit/rules/base.rb
|
409
|
+
- lib/avm/git/auto_commit/rules/last.rb
|
410
|
+
- lib/avm/git/auto_commit/rules/manual.rb
|
411
|
+
- lib/avm/git/auto_commit/rules/new.rb
|
412
|
+
- lib/avm/git/auto_commit/rules/nth.rb
|
413
|
+
- lib/avm/git/auto_commit/rules/unique.rb
|
383
414
|
- lib/avm/git/auto_commit_path.rb
|
384
415
|
- lib/avm/git/auto_commit_path/ruby.rb
|
385
416
|
- lib/avm/git/commit.rb
|
@@ -498,8 +529,8 @@ files:
|
|
498
529
|
- lib/avm/sync.rb
|
499
530
|
- lib/avm/tools.rb
|
500
531
|
- lib/avm/tools/runner.rb
|
532
|
+
- lib/avm/tools/runner/eac_asciidoctor_base0.rb
|
501
533
|
- lib/avm/tools/runner/eac_rails_base0.rb
|
502
|
-
- lib/avm/tools/runner/eac_rails_base0/apache_path.rb
|
503
534
|
- lib/avm/tools/runner/eac_redmine_base0.rb
|
504
535
|
- lib/avm/tools/runner/eac_redmine_base0/core_update.rb
|
505
536
|
- lib/avm/tools/runner/eac_redmine_base0/docker.rb
|
@@ -507,13 +538,11 @@ files:
|
|
507
538
|
- lib/avm/tools/runner/eac_webapp_base0.rb
|
508
539
|
- lib/avm/tools/runner/eac_wordpress_base0.rb
|
509
540
|
- lib/avm/tools/runner/eac_writings_base0.rb
|
510
|
-
- lib/avm/tools/runner/eac_writings_base1.rb
|
511
541
|
- lib/avm/tools/runner/files.rb
|
512
542
|
- lib/avm/tools/runner/files/format.rb
|
513
543
|
- lib/avm/tools/runner/files/rotate.rb
|
514
544
|
- lib/avm/tools/runner/git.rb
|
515
545
|
- lib/avm/tools/runner/git/auto_commit.rb
|
516
|
-
- lib/avm/tools/runner/git/auto_fixup.rb
|
517
546
|
- lib/avm/tools/runner/git/commit.rb
|
518
547
|
- lib/avm/tools/runner/git/deploy.rb
|
519
548
|
- lib/avm/tools/runner/git/dirty_files.rb
|
@@ -531,12 +560,12 @@ files:
|
|
531
560
|
- lib/avm/tools/runner/launcher/projects.rb
|
532
561
|
- lib/avm/tools/runner/launcher/publish.rb
|
533
562
|
- lib/avm/tools/runner/local_project.rb
|
563
|
+
- lib/avm/tools/runner/local_project/eac_asciidoctor_base0.rb
|
564
|
+
- lib/avm/tools/runner/local_project/eac_asciidoctor_base0/build.rb
|
534
565
|
- lib/avm/tools/runner/local_project/eac_writings_base0.rb
|
535
566
|
- lib/avm/tools/runner/local_project/eac_writings_base0/build_chapters.rb
|
536
567
|
- lib/avm/tools/runner/local_project/eac_writings_base0/build_single.rb
|
537
568
|
- lib/avm/tools/runner/local_project/eac_writings_base0/info.rb
|
538
|
-
- lib/avm/tools/runner/local_project/eac_writings_base1.rb
|
539
|
-
- lib/avm/tools/runner/local_project/eac_writings_base1/build.rb
|
540
569
|
- lib/avm/tools/runner/local_project/info.rb
|
541
570
|
- lib/avm/tools/runner/local_project/ruby.rb
|
542
571
|
- lib/avm/tools/runner/local_project/ruby/bundler.rb
|
@@ -586,13 +615,14 @@ files:
|
|
586
615
|
- lib/eac_launcher/vendor.rb
|
587
616
|
- lib/eac_launcher/vendor/github.rb
|
588
617
|
- lib/eac_launcher/version.rb
|
589
|
-
- template/avm/eac_rails_base0/apache_path/
|
618
|
+
- template/avm/eac_rails_base0/apache_path/extra_content.conf
|
590
619
|
- template/avm/eac_rails_base0/deploy/config/database.yml.template
|
591
620
|
- template/avm/eac_rails_base0/deploy/config/envvars.d/email.yml.template
|
592
621
|
- template/avm/eac_redmine_base0/deploy/config/install.sh.template
|
593
622
|
- template/avm/eac_redmine_base0/deploy/config/secrets.yml
|
594
623
|
- template/avm/eac_ubuntu_base0/docker_image/Dockerfile
|
595
624
|
- template/avm/eac_webapp_base0/apache_host/no_ssl.conf
|
625
|
+
- template/avm/eac_webapp_base0/apache_path/default.conf
|
596
626
|
- template/avm/eac_wordpress_base0/deploy/wp-config.php.template
|
597
627
|
- template/avm/eac_writings_base0/commons/all.tex
|
598
628
|
- template/avm/eac_writings_base0/commons/ebook.tex
|
@@ -611,6 +641,15 @@ files:
|
|
611
641
|
- template/avm/ruby/gems/generator/version.template
|
612
642
|
- template/avm/self/docker_image/Dockerfile
|
613
643
|
- template/avm/self/docker_image/entrypoint.sh
|
644
|
+
- vendor/avm-apps/Gemfile
|
645
|
+
- vendor/avm-apps/avm-apps.gemspec
|
646
|
+
- vendor/avm-apps/lib/avm/apps.rb
|
647
|
+
- vendor/avm-apps/lib/avm/apps/jobs.rb
|
648
|
+
- vendor/avm-apps/lib/avm/apps/jobs/base.rb
|
649
|
+
- vendor/avm-apps/lib/avm/apps/jobs/variables_source.rb
|
650
|
+
- vendor/avm-apps/lib/avm/apps/version.rb
|
651
|
+
- vendor/avm-apps/spec/rubocop_spec.rb
|
652
|
+
- vendor/avm-apps/spec/spec_helper.rb
|
614
653
|
- vendor/eac_cli/Gemfile
|
615
654
|
- vendor/eac_cli/eac_cli.gemspec
|
616
655
|
- vendor/eac_cli/lib/eac_cli.rb
|
@@ -620,6 +659,7 @@ files:
|
|
620
659
|
- vendor/eac_cli/lib/eac_cli/definition/alternative.rb
|
621
660
|
- vendor/eac_cli/lib/eac_cli/definition/argument_option.rb
|
622
661
|
- vendor/eac_cli/lib/eac_cli/definition/base_option.rb
|
662
|
+
- vendor/eac_cli/lib/eac_cli/definition/base_option/initialize_args_parser.rb
|
623
663
|
- vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb
|
624
664
|
- vendor/eac_cli/lib/eac_cli/definition/help_formatter.rb
|
625
665
|
- vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb
|
@@ -1041,7 +1081,6 @@ files:
|
|
1041
1081
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string.rb
|
1042
1082
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb
|
1043
1083
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time.rb
|
1044
|
-
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/default_time_zone_set.rb
|
1045
1084
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash.rb
|
1046
1085
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/entry_key_error.rb
|
1047
1086
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/node.rb
|
@@ -1,38 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_cli/core_ext'
|
4
|
-
require 'avm/eac_webapp_base0/runner/apache_host'
|
5
|
-
require 'eac_ruby_utils/console/docopt_runner'
|
6
|
-
require 'avm/eac_rails_base0/apache_path'
|
7
|
-
|
8
|
-
module Avm
|
9
|
-
module Tools
|
10
|
-
class Runner
|
11
|
-
class EacRailsBase0 < ::Avm::EacRailsBase1::Runner
|
12
|
-
class ApachePath < ::EacRubyUtils::Console::DocoptRunner
|
13
|
-
runner_with
|
14
|
-
|
15
|
-
runner_definition do
|
16
|
-
desc 'Configure Apache path configuration for instance.'
|
17
|
-
end
|
18
|
-
|
19
|
-
def run
|
20
|
-
if result.error?
|
21
|
-
fatal_error result.to_s
|
22
|
-
else
|
23
|
-
infov 'Result', result.label
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
def apache_path_uncached
|
28
|
-
::Avm::EacRailsBase0::ApachePath.new(context(:instance))
|
29
|
-
end
|
30
|
-
|
31
|
-
def result_uncached
|
32
|
-
apache_path.run
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|