eac_tools 0.96.0 → 0.96.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +27 -33
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec +22 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_base.rb +16 -0
- data/sub/{avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0 → avm-eac_rails_base1/lib/avm/eac_rails_base1}/instances/apache_host.rb +4 -5
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_path.rb +21 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb +50 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/deploy.rb +23 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes/daemon.rb +39 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes/tasks_scheduler.rb +27 -0
- data/sub/{avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros.rb → avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes.rb} +2 -2
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/bundle.rb +28 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb +28 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/log.rb +45 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs/clear.rb +27 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs.rb +19 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/rails_server.rb +34 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler/systemd_unit.rb +48 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler.rb +19 -0
- data/sub/{avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources → avm-eac_rails_base1/lib/avm/eac_rails_base1/instances}/runners.rb +2 -2
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit/service.rb +72 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler_command.rb +31 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit.rb +59 -0
- data/sub/{avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0 → avm-eac_rails_base1/lib/avm/eac_rails_base1}/instances.rb +1 -1
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/bundle.rb +27 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/rails_environment.rb +47 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/sources/base.rb +43 -0
- data/sub/{avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0 → avm-eac_rails_base1/lib/avm/eac_rails_base1}/version.rb +2 -2
- data/sub/{avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0.rb → avm-eac_rails_base1/lib/avm/eac_rails_base1.rb} +1 -1
- data/sub/{avm-eac_asciidoctor_base0 → avm-eac_rails_base1}/spec/spec_helper.rb +0 -4
- data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/instances/apache_path/extra_content.conf +5 -0
- data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler.service +12 -0
- data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler_command.sh +6 -0
- metadata +47 -90
- data/sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec +0 -26
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/documents_owner.rb +0 -30
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base/file_resource_name.rb +0 -37
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base.rb +0 -17
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/apache_path.rb +0 -12
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/base.rb +0 -33
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/body_target.rb +0 -47
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/header_lines.rb +0 -92
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/media.rb +0 -28
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/pre_process_line.rb +0 -64
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document.rb +0 -101
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/theme.rb +0 -41
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build.rb +0 -60
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/deploy.rb +0 -28
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/base.rb +0 -21
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/breadcrumbs.rb +0 -55
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/child_docs/document_builder.rb +0 -63
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/child_docs.rb +0 -35
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/default_body.rb +0 -21
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/logging/catcher.rb +0 -47
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/logging/error.rb +0 -18
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/logging.rb +0 -11
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/source_generators/base.rb +0 -28
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/source_generators.rb +0 -11
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base/instance_to_build.rb +0 -45
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base/theme.rb +0 -46
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base.rb +0 -49
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document/media.rb +0 -28
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document/title.rb +0 -31
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document.rb +0 -56
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/build.rb +0 -54
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/document/build.rb +0 -46
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/document.rb +0 -30
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/documents.rb +0 -28
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources.rb +0 -11
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/file_formats/base_spec.rb +0 -13
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec.rb +0 -81
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec_files/pre_processed_root_body.adoc +0 -25
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec.rb +0 -22
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/_media/a_media_file +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc1/_media/a_media_file +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc1/body.adoc +0 -11
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc1/title +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/body.adoc +0 -11
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/doc2_1/_media/a_media_file +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/doc2_1/body.adoc +0 -11
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/doc2_1/title +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/title +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/_media/a_media_file +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/_theme/main.css +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc1/_media/a_media_file +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc1/index.html +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc2/doc2_1/_media/a_media_file +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc2/doc2_1/index.html +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc2/index.html +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/index.html +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec.rb +0 -8
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/content/body.adoc +0 -11
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/content/title +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/theme/main.css +0 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/sources/base_spec.rb +0 -16
- data/sub/avm-eac_asciidoctor_base0/spec/spec_helper/eac_asciidoctor_base0_stubs.rb +0 -55
- data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/content/body.adoc +0 -11
- data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/content/title +0 -1
- data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/theme/main.css +0 -1
- /data/sub/{avm-eac_asciidoctor_base0 → avm-eac_rails_base1}/Gemfile +0 -0
- /data/sub/{avm-eac_asciidoctor_base0 → avm-eac_rails_base1}/spec/rubocop_spec.rb +0 -0
@@ -1,81 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_asciidoctor_base0/instances/build'
|
4
|
-
|
5
|
-
RSpec.describe Avm::EacAsciidoctorBase0::Instances::Build::Document do
|
6
|
-
let(:app_director) { eac_asciidoctor_base0_stubs }
|
7
|
-
let(:build) { Avm::EacAsciidoctorBase0::Instances::Build.new(app_director.instance) }
|
8
|
-
let(:fixtures_dir) { __dir__.to_pathname.join('document_spec_files') }
|
9
|
-
let(:instance) { build_doc_child(build.root_document, :c1, :c1_1, :c1_1_1) } # rubocop:disable Naming/VariableNumber
|
10
|
-
let(:target_file) { fixtures_dir.join('pre_processed_root_body.adoc') }
|
11
|
-
let(:source) { app_director.source }
|
12
|
-
let(:doc_template) do
|
13
|
-
r = temp_dir
|
14
|
-
FileUtils.copy_entry(source.root_document.root_path, r)
|
15
|
-
r
|
16
|
-
end
|
17
|
-
let(:pre_processed_body_source_content) do
|
18
|
-
sanitize_body_source(instance.pre_processed_body_source_content)
|
19
|
-
end
|
20
|
-
|
21
|
-
before do
|
22
|
-
copy_template_hash(
|
23
|
-
source.root_document,
|
24
|
-
c1: {
|
25
|
-
c1_1: { # rubocop:disable Naming/VariableNumber
|
26
|
-
c1_1_1: { # rubocop:disable Naming/VariableNumber
|
27
|
-
c1_1_1_1: {}, # rubocop:disable Naming/VariableNumber
|
28
|
-
c1_1_1_2: {} # rubocop:disable Naming/VariableNumber
|
29
|
-
},
|
30
|
-
c1_1_2: { # rubocop:disable Naming/VariableNumber
|
31
|
-
c1_1_2_1: {}, # rubocop:disable Naming/VariableNumber
|
32
|
-
c1_1_2_2: {} # rubocop:disable Naming/VariableNumber
|
33
|
-
}
|
34
|
-
}
|
35
|
-
},
|
36
|
-
c2: {
|
37
|
-
c2_1: {} # rubocop:disable Naming/VariableNumber
|
38
|
-
}
|
39
|
-
)
|
40
|
-
end
|
41
|
-
|
42
|
-
it do
|
43
|
-
expect(pre_processed_body_source_content).to eq(target_file.read)
|
44
|
-
end
|
45
|
-
|
46
|
-
# @return [Avm::EacAsciidoctorBase0::Sources::Document]
|
47
|
-
def copy_template_doc(parent, basename)
|
48
|
-
parent.assert_argument(Avm::EacAsciidoctorBase0::Sources::Document, 'parent')
|
49
|
-
|
50
|
-
root_target = parent.root_path.join(basename.to_s)
|
51
|
-
FileUtils.copy_entry(doc_template, root_target)
|
52
|
-
root_target.join('title').write(root_target.basename.to_path)
|
53
|
-
Avm::EacAsciidoctorBase0::Sources::Document.new(parent.source, parent,
|
54
|
-
root_target.basename)
|
55
|
-
end
|
56
|
-
|
57
|
-
# @return [Array<Avm::EacAsciidoctorBase0::Sources::Document>]
|
58
|
-
def copy_template_hash(parent, hash)
|
59
|
-
parent.assert_argument(Avm::EacAsciidoctorBase0::Sources::Document, 'parent')
|
60
|
-
hash.assert_argument(Hash, 'hash')
|
61
|
-
|
62
|
-
hash.map do |k, v|
|
63
|
-
r = copy_template_doc(parent, k)
|
64
|
-
copy_template_hash(r, v)
|
65
|
-
r
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
# @return [Avm::EacAsciidoctorBase0::Instances::Build::Document]
|
70
|
-
def build_doc_child(build_doc, *path)
|
71
|
-
basename = path.shift.to_s
|
72
|
-
r = build_doc.child!(basename)
|
73
|
-
path.any? ? build_doc_child(r, *path) : r
|
74
|
-
end
|
75
|
-
|
76
|
-
# @param source [String]
|
77
|
-
# @return [String]
|
78
|
-
def sanitize_body_source(source)
|
79
|
-
source.gsub(/^:stylesheet:\s*.+\s*$/, ':stylesheet: ../../../../theme/main.css')
|
80
|
-
end
|
81
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
:stylesheet: ../../../../theme/main.css
|
2
|
-
= c1_1_1
|
3
|
-
The Author <theauthor@example.net>
|
4
|
-
:Author Initials: T.A.
|
5
|
-
:toc: left
|
6
|
-
:icons:
|
7
|
-
:numbered:
|
8
|
-
:source-highlighter: rouge
|
9
|
-
:website: https://www.example.net
|
10
|
-
|
11
|
-
[.normal]
|
12
|
-
link:../../../index.html[Home] » link:../../index.html[c1] » link:../index.html[c1_1] » link:index.html[c1_1_1]
|
13
|
-
|
14
|
-
== Child Documents
|
15
|
-
|
16
|
-
* link:c1_1_1_1/index.html[c1_1_1_1]
|
17
|
-
* link:c1_1_1_2/index.html[c1_1_1_2]
|
18
|
-
|
19
|
-
== First Section
|
20
|
-
|
21
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean sapien.
|
22
|
-
|
23
|
-
== Second Section
|
24
|
-
|
25
|
-
Nam faucibus quis dui at laoreet. Pellentesque ut sapien est.
|
data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_asciidoctor_base0/instances/build'
|
4
|
-
require 'eac_fs/comparator'
|
5
|
-
|
6
|
-
RSpec.describe Avm::EacAsciidoctorBase0::Instances::Build do
|
7
|
-
let(:app_director) { eac_asciidoctor_base0_stubs }
|
8
|
-
let(:fs_comparator) { EacFs::Comparator.new.truncate_file('*.html') }
|
9
|
-
let(:instance) { described_class.new(app_director.instance) }
|
10
|
-
|
11
|
-
include_examples 'source_target_fixtures', __FILE__ do
|
12
|
-
def source_data(source_file)
|
13
|
-
FileUtils.copy_entry(source_file, app_director.source.path)
|
14
|
-
instance.perform
|
15
|
-
fs_comparator.build(instance.target_directory)
|
16
|
-
end
|
17
|
-
|
18
|
-
def target_data(target_file)
|
19
|
-
fs_comparator.build(target_file.to_pathname)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
<DATA>
|
@@ -1 +0,0 @@
|
|
1
|
-
<DATA>
|
@@ -1 +0,0 @@
|
|
1
|
-
EacAsciidoctorBase0 Generated Source
|
@@ -1 +0,0 @@
|
|
1
|
-
<DATA>
|
@@ -1 +0,0 @@
|
|
1
|
-
EacAsciidoctorBase0 Generated Source
|
@@ -1 +0,0 @@
|
|
1
|
-
EacAsciidoctorBase0 Generated Source
|
@@ -1 +0,0 @@
|
|
1
|
-
<DATA>
|
@@ -1 +0,0 @@
|
|
1
|
-
@import "https://darshandsoni.com/asciidoctor-skins/css/adoc-colony.css";
|
@@ -1 +0,0 @@
|
|
1
|
-
<DATA>
|
@@ -1 +0,0 @@
|
|
1
|
-
__TRUNCATED__
|
@@ -1 +0,0 @@
|
|
1
|
-
<DATA>
|
@@ -1 +0,0 @@
|
|
1
|
-
__TRUNCATED__
|
@@ -1 +0,0 @@
|
|
1
|
-
__TRUNCATED__
|
@@ -1 +0,0 @@
|
|
1
|
-
__TRUNCATED__
|
data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec.rb
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_asciidoctor_base0/source_generators/base'
|
4
|
-
require 'avm/source_generators/runner'
|
5
|
-
|
6
|
-
RSpec.describe Avm::EacAsciidoctorBase0::SourceGenerators::Base do
|
7
|
-
include_examples 'avm_source_generated', __FILE__, 'EacAsciidoctorBase0'
|
8
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
EacAsciidoctorBase0 Generated Source
|
@@ -1 +0,0 @@
|
|
1
|
-
@import "https://darshandsoni.com/asciidoctor-skins/css/adoc-colony.css";
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_asciidoctor_base0/instances/base'
|
4
|
-
require 'avm/eac_asciidoctor_base0/sources/base'
|
5
|
-
|
6
|
-
RSpec.describe Avm::EacAsciidoctorBase0::Sources::Base do
|
7
|
-
include_examples 'in_avm_registry', 'sources'
|
8
|
-
|
9
|
-
describe '#instance' do
|
10
|
-
let(:source) { eac_asciidoctor_base0_stubs.source }
|
11
|
-
|
12
|
-
it do
|
13
|
-
expect(source.instance).to be_a(Avm::EacAsciidoctorBase0::Instances::Base)
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
@@ -1,55 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_config/node'
|
4
|
-
require 'avm/applications/base'
|
5
|
-
require 'avm/instances/base'
|
6
|
-
require 'eac_ruby_utils/core_ext'
|
7
|
-
|
8
|
-
module EacAsciidoctorBase0Stubs
|
9
|
-
class Director
|
10
|
-
DEFAULT_APPLICATION_ID = 'myapp'
|
11
|
-
INSTANCE_ENTRY_KEYS = {
|
12
|
-
'install.name' => 'The Author',
|
13
|
-
'install.name_initials' => 'T.A.',
|
14
|
-
'install.email' => 'theauthor@example.net',
|
15
|
-
'web.url' => 'https://www.example.net'
|
16
|
-
}.freeze
|
17
|
-
|
18
|
-
enable_simple_cache
|
19
|
-
common_constructor :rspec_example, :application_id, default: [DEFAULT_APPLICATION_ID] do
|
20
|
-
source
|
21
|
-
application
|
22
|
-
instance
|
23
|
-
end
|
24
|
-
|
25
|
-
private
|
26
|
-
|
27
|
-
# @return [Avm::Applications::Base]
|
28
|
-
def application_uncached
|
29
|
-
r = ::Avm::Applications::Base.new(application_id)
|
30
|
-
r.entry('stereotype').write('EacAsciidoctorBase0')
|
31
|
-
r.local_source_path_entry.value = source.path.to_path
|
32
|
-
r
|
33
|
-
end
|
34
|
-
|
35
|
-
# @return [Avm::EacAsciidoctorBase0::Instances::Base]
|
36
|
-
def instance_uncached
|
37
|
-
r = ::Avm::EacAsciidoctorBase0::Instances::Base.new(application, 'stub')
|
38
|
-
INSTANCE_ENTRY_KEYS.each { |k, v| r.entry(k).write(v) }
|
39
|
-
r
|
40
|
-
end
|
41
|
-
|
42
|
-
# @return [Avm::EacAsciidoctorBase0::Sources::Base]
|
43
|
-
def source_uncached
|
44
|
-
rspec_example.avm_source('EacAsciidoctorBase0', target_basename: application_id)
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
def eac_asciidoctor_base0_stubs(id = nil)
|
49
|
-
args = [self]
|
50
|
-
args << id if id.present?
|
51
|
-
::EacAsciidoctorBase0Stubs::Director.new(*args)
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
EacRubyUtils::Rspec.default_setup.rspec_config.include(EacAsciidoctorBase0Stubs)
|
@@ -1 +0,0 @@
|
|
1
|
-
EacAsciidoctorBase0 Generated Source
|
@@ -1 +0,0 @@
|
|
1
|
-
@import "https://darshandsoni.com/asciidoctor-skins/css/adoc-colony.css";
|
File without changes
|
File without changes
|