eac_tools 0.87.1 → 0.88.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 +32 -37
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec +24 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/documents_owner.rb +30 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base/file_resource_name.rb +37 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base.rb +17 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/apache_host.rb +19 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/apache_path.rb +12 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/base.rb +33 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/body_target.rb +37 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/header_lines.rb +92 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/media.rb +28 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/pre_process_line.rb +64 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document.rb +101 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/theme.rb +41 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build.rb +59 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/deploy.rb +28 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/base.rb +21 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/breadcrumbs.rb +55 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/child_docs/document_builder.rb +63 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/child_docs.rb +35 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/default_body.rb +21 -0
- data/sub/{avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api.rb → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros.rb} +2 -3
- data/sub/{avm/lib/avm/launcher → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0}/instances.rb +1 -1
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/source_generators/base.rb +28 -0
- data/sub/{avm/lib/avm/entries/auto_values.rb → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/source_generators.rb} +2 -2
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base/instance_to_build.rb +45 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base/theme.rb +46 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base.rb +49 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document/media.rb +28 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document/title.rb +31 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document.rb +56 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/build.rb +54 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/document/build.rb +46 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/document.rb +30 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/documents.rb +28 -0
- data/sub/{avm-eac_redmine_base0/lib/avm/eac_redmine_base0 → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0}/sources/runners.rb +1 -1
- data/sub/{avm-eac_redmine_base0/lib/avm/eac_redmine_base0 → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0}/sources.rb +1 -1
- data/sub/{avm-eac_redmine_base0/lib/avm/eac_redmine_base0 → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0}/version.rb +2 -2
- data/sub/{avm/lib/avm/applications.rb → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0.rb} +1 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/file_formats/base_spec.rb +13 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec.rb +81 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec_files/pre_processed_root_body.adoc +25 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec.rb +22 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/_media/a_media_file +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc1/_media/a_media_file +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc1/body.adoc +11 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc1/title +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/body.adoc +11 -0
- 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 +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/doc2_1/body.adoc +11 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/doc2_1/title +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/title +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/_media/a_media_file +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/_theme/main.css +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc1/_media/a_media_file +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc1/index.html +1 -0
- 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 +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc2/doc2_1/index.html +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc2/index.html +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/index.html +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec.rb +8 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/content/body.adoc +11 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/content/title +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/theme/main.css +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/sources/base_spec.rb +16 -0
- data/sub/avm-eac_asciidoctor_base0/spec/spec_helper/eac_asciidoctor_base0_stubs.rb +55 -0
- data/sub/{avm-eac_redmine_base0 → avm-eac_asciidoctor_base0}/spec/spec_helper.rb +4 -1
- data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/content/body.adoc +11 -0
- data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/content/title +1 -0
- data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/theme/main.css +1 -0
- metadata +75 -310
- data/sub/avm/Gemfile +0 -8
- data/sub/avm/avm.gemspec +0 -28
- data/sub/avm/lib/avm/application_scms/base.rb +0 -39
- data/sub/avm/lib/avm/application_scms.rb +0 -9
- data/sub/avm/lib/avm/application_stereotypes/base.rb +0 -31
- data/sub/avm/lib/avm/application_stereotypes.rb +0 -9
- data/sub/avm/lib/avm/applications/base/auto_local_source_path.rb +0 -24
- data/sub/avm/lib/avm/applications/base/local_instance.rb +0 -31
- data/sub/avm/lib/avm/applications/base/local_source.rb +0 -30
- data/sub/avm/lib/avm/applications/base/naming.rb +0 -28
- data/sub/avm/lib/avm/applications/base/organization.rb +0 -29
- data/sub/avm/lib/avm/applications/base/publishing.rb +0 -43
- data/sub/avm/lib/avm/applications/base/scm.rb +0 -27
- data/sub/avm/lib/avm/applications/base/stereotype.rb +0 -31
- data/sub/avm/lib/avm/applications/base.rb +0 -37
- data/sub/avm/lib/avm/data/callbacks.rb +0 -37
- data/sub/avm/lib/avm/data/clearer.rb +0 -20
- data/sub/avm/lib/avm/data/dumper.rb +0 -142
- data/sub/avm/lib/avm/data/loader.rb +0 -28
- data/sub/avm/lib/avm/data/package/base_performer.rb +0 -38
- data/sub/avm/lib/avm/data/package/build_directory.rb +0 -28
- data/sub/avm/lib/avm/data/package/clear.rb +0 -22
- data/sub/avm/lib/avm/data/package/dump.rb +0 -45
- data/sub/avm/lib/avm/data/package/load.rb +0 -36
- data/sub/avm/lib/avm/data/package.rb +0 -67
- data/sub/avm/lib/avm/data/performer.rb +0 -49
- data/sub/avm/lib/avm/data/rotate.rb +0 -107
- data/sub/avm/lib/avm/data/unit.rb +0 -49
- data/sub/avm/lib/avm/data/unit_with_commands.rb +0 -52
- data/sub/avm/lib/avm/docker/container.rb +0 -50
- data/sub/avm/lib/avm/docker/image.rb +0 -76
- data/sub/avm/lib/avm/docker/runner.rb +0 -121
- data/sub/avm/lib/avm/docker.rb +0 -9
- data/sub/avm/lib/avm/entries/auto_values/entry.rb +0 -39
- data/sub/avm/lib/avm/entries/auto_values/uri_entry.rb +0 -24
- data/sub/avm/lib/avm/entries/base/inherited_entry_value.rb +0 -46
- data/sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb +0 -28
- data/sub/avm/lib/avm/entries/base/uri_component_entry_value/inherited_value.rb +0 -39
- data/sub/avm/lib/avm/entries/base/uri_component_entry_value/url_entry_value.rb +0 -31
- data/sub/avm/lib/avm/entries/base/uri_component_entry_value.rb +0 -44
- data/sub/avm/lib/avm/entries/base/uri_components_entries_values/component_factory.rb +0 -42
- data/sub/avm/lib/avm/entries/base/uri_components_entries_values/generic_component.rb +0 -63
- data/sub/avm/lib/avm/entries/base/uri_components_entries_values/path_component.rb +0 -19
- data/sub/avm/lib/avm/entries/base/uri_components_entries_values/url_component.rb +0 -28
- data/sub/avm/lib/avm/entries/base/uri_components_entries_values.rb +0 -25
- data/sub/avm/lib/avm/entries/base.rb +0 -57
- data/sub/avm/lib/avm/entries/entry/no_context_entry.rb +0 -23
- data/sub/avm/lib/avm/entries/entry.rb +0 -70
- data/sub/avm/lib/avm/entries/jobs/base.rb +0 -62
- data/sub/avm/lib/avm/entries/jobs/variables_source/read_entry.rb +0 -50
- data/sub/avm/lib/avm/entries/jobs/variables_source.rb +0 -15
- data/sub/avm/lib/avm/entries/jobs/with_variables_source.rb +0 -15
- data/sub/avm/lib/avm/entries/jobs.rb +0 -11
- data/sub/avm/lib/avm/entries/keys_constants_set.rb +0 -43
- data/sub/avm/lib/avm/entries/uri_builder.rb +0 -91
- data/sub/avm/lib/avm/entries.rb +0 -9
- data/sub/avm/lib/avm/executables.rb +0 -24
- data/sub/avm/lib/avm/file_formats/base.rb +0 -35
- data/sub/avm/lib/avm/file_formats/file_result.rb +0 -13
- data/sub/avm/lib/avm/file_formats/search_formatter.rb +0 -87
- data/sub/avm/lib/avm/file_formats/unknown.rb +0 -18
- data/sub/avm/lib/avm/file_formats/utf8_assert.rb +0 -72
- data/sub/avm/lib/avm/file_formats.rb +0 -9
- data/sub/avm/lib/avm/instances/base/auto_values/data.rb +0 -25
- data/sub/avm/lib/avm/instances/base/auto_values/database.rb +0 -62
- data/sub/avm/lib/avm/instances/base/auto_values/mailer.rb +0 -35
- data/sub/avm/lib/avm/instances/base/auto_values/source.rb +0 -15
- data/sub/avm/lib/avm/instances/base/auto_values.rb +0 -14
- data/sub/avm/lib/avm/instances/base/dockerizable.rb +0 -45
- data/sub/avm/lib/avm/instances/base/entry_keys.rb +0 -27
- data/sub/avm/lib/avm/instances/base/install.rb +0 -31
- data/sub/avm/lib/avm/instances/base/processes.rb +0 -27
- data/sub/avm/lib/avm/instances/base/subcommand_parent.rb +0 -25
- data/sub/avm/lib/avm/instances/base/web.rb +0 -16
- data/sub/avm/lib/avm/instances/base.rb +0 -71
- data/sub/avm/lib/avm/instances/data/files_unit.rb +0 -59
- data/sub/avm/lib/avm/instances/data/package.rb +0 -27
- data/sub/avm/lib/avm/instances/data/unit.rb +0 -30
- data/sub/avm/lib/avm/instances/data.rb +0 -11
- data/sub/avm/lib/avm/instances/docker_image.rb +0 -15
- data/sub/avm/lib/avm/instances/entry_keys.rb +0 -43
- data/sub/avm/lib/avm/instances/ids.rb +0 -30
- data/sub/avm/lib/avm/instances/process.rb +0 -31
- data/sub/avm/lib/avm/instances/runner.rb +0 -37
- data/sub/avm/lib/avm/instances.rb +0 -9
- data/sub/avm/lib/avm/launcher/context/instance_collector.rb +0 -46
- data/sub/avm/lib/avm/launcher/context/instance_discovery.rb +0 -56
- data/sub/avm/lib/avm/launcher/context/instance_manager/cached_instance.rb +0 -37
- data/sub/avm/lib/avm/launcher/context/instance_manager/cached_instances.rb +0 -35
- data/sub/avm/lib/avm/launcher/context/instance_manager.rb +0 -77
- data/sub/avm/lib/avm/launcher/context/settings.rb +0 -53
- data/sub/avm/lib/avm/launcher/context.rb +0 -100
- data/sub/avm/lib/avm/launcher/errors/base.rb +0 -10
- data/sub/avm/lib/avm/launcher/errors/non_project.rb +0 -15
- data/sub/avm/lib/avm/launcher/errors.rb +0 -11
- data/sub/avm/lib/avm/launcher/instances/base/cache.rb +0 -43
- data/sub/avm/lib/avm/launcher/instances/base/publishing.rb +0 -53
- data/sub/avm/lib/avm/launcher/instances/base.rb +0 -78
- data/sub/avm/lib/avm/launcher/instances/error.rb +0 -10
- data/sub/avm/lib/avm/launcher/instances/runner_helper.rb +0 -47
- data/sub/avm/lib/avm/launcher/instances/settings.rb +0 -26
- data/sub/avm/lib/avm/launcher/paths/logical.rb +0 -80
- data/sub/avm/lib/avm/launcher/paths/real.rb +0 -44
- data/sub/avm/lib/avm/launcher/paths.rb +0 -11
- data/sub/avm/lib/avm/launcher/project.rb +0 -17
- data/sub/avm/lib/avm/launcher/publish/base.rb +0 -47
- data/sub/avm/lib/avm/launcher/publish/check_result.rb +0 -65
- data/sub/avm/lib/avm/launcher/publish.rb +0 -11
- data/sub/avm/lib/avm/launcher/stereotype.rb +0 -63
- data/sub/avm/lib/avm/launcher.rb +0 -9
- data/sub/avm/lib/avm/launcher_stereotypes.rb +0 -9
- data/sub/avm/lib/avm/patches/eac_config/entry_path.rb +0 -46
- data/sub/avm/lib/avm/path_string.rb +0 -27
- data/sub/avm/lib/avm/registry/application_scms.rb +0 -15
- data/sub/avm/lib/avm/registry/application_stereotypes/build_available.rb +0 -49
- data/sub/avm/lib/avm/registry/application_stereotypes/stereotype_builder.rb +0 -33
- data/sub/avm/lib/avm/registry/application_stereotypes.rb +0 -52
- data/sub/avm/lib/avm/registry/applications.rb +0 -38
- data/sub/avm/lib/avm/registry/config_objects.rb +0 -18
- data/sub/avm/lib/avm/registry/file_formats.rb +0 -20
- data/sub/avm/lib/avm/registry/from_gems.rb +0 -80
- data/sub/avm/lib/avm/registry/instances.rb +0 -16
- data/sub/avm/lib/avm/registry/launcher_stereotypes.rb +0 -11
- data/sub/avm/lib/avm/registry/runners.rb +0 -10
- data/sub/avm/lib/avm/registry/scms.rb +0 -10
- data/sub/avm/lib/avm/registry/source_generators.rb +0 -17
- data/sub/avm/lib/avm/registry/sources.rb +0 -40
- data/sub/avm/lib/avm/registry/with_path/cache.rb +0 -31
- data/sub/avm/lib/avm/registry/with_path.rb +0 -49
- data/sub/avm/lib/avm/registry.rb +0 -35
- data/sub/avm/lib/avm/result.rb +0 -82
- data/sub/avm/lib/avm/rspec/setup/launcher.rb +0 -20
- data/sub/avm/lib/avm/rspec/setup/source_generator.rb +0 -22
- data/sub/avm/lib/avm/rspec/setup.rb +0 -35
- data/sub/avm/lib/avm/rspec/shared_examples/avm_file_format_file_resource_name.rb +0 -15
- data/sub/avm/lib/avm/rspec/shared_examples/avm_file_formats_with_fixtures.rb +0 -31
- data/sub/avm/lib/avm/rspec/shared_examples/avm_source_generated.rb +0 -23
- data/sub/avm/lib/avm/rspec/shared_examples/entries_values.rb +0 -23
- data/sub/avm/lib/avm/rspec/shared_examples/in_avm_registry.rb +0 -11
- data/sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb +0 -14
- data/sub/avm/lib/avm/rspec.rb +0 -9
- data/sub/avm/lib/avm/runners/base.rb +0 -27
- data/sub/avm/lib/avm/scms/auto_commit/file_resource_name.rb +0 -39
- data/sub/avm/lib/avm/scms/auto_commit/for_file.rb +0 -82
- data/sub/avm/lib/avm/scms/auto_commit/rules/base.rb +0 -40
- data/sub/avm/lib/avm/scms/auto_commit/rules/last.rb +0 -19
- data/sub/avm/lib/avm/scms/auto_commit/rules/manual.rb +0 -40
- data/sub/avm/lib/avm/scms/auto_commit/rules/new.rb +0 -24
- data/sub/avm/lib/avm/scms/auto_commit/rules/nth.rb +0 -31
- data/sub/avm/lib/avm/scms/auto_commit/rules/unique.rb +0 -21
- data/sub/avm/lib/avm/scms/auto_commit/rules.rb +0 -36
- data/sub/avm/lib/avm/scms/auto_commit.rb +0 -11
- data/sub/avm/lib/avm/scms/base/branches.rb +0 -22
- data/sub/avm/lib/avm/scms/base/commits.rb +0 -34
- data/sub/avm/lib/avm/scms/base/milestones.rb +0 -21
- data/sub/avm/lib/avm/scms/base/remotes.rb +0 -22
- data/sub/avm/lib/avm/scms/base.rb +0 -61
- data/sub/avm/lib/avm/scms/branch.rb +0 -26
- data/sub/avm/lib/avm/scms/changed_file.rb +0 -26
- data/sub/avm/lib/avm/scms/commit.rb +0 -66
- data/sub/avm/lib/avm/scms/commit_info.rb +0 -39
- data/sub/avm/lib/avm/scms/inflector.rb +0 -22
- data/sub/avm/lib/avm/scms/interval.rb +0 -18
- data/sub/avm/lib/avm/scms/null/commit.rb +0 -15
- data/sub/avm/lib/avm/scms/null.rb +0 -21
- data/sub/avm/lib/avm/scms/remote.rb +0 -11
- data/sub/avm/lib/avm/scms.rb +0 -9
- data/sub/avm/lib/avm/self/docker_image.rb +0 -14
- data/sub/avm/lib/avm/self/instance/entry_keys.rb +0 -12
- data/sub/avm/lib/avm/self/instance.rb +0 -31
- data/sub/avm/lib/avm/source_generators/base.rb +0 -45
- data/sub/avm/lib/avm/source_generators/option.rb +0 -11
- data/sub/avm/lib/avm/source_generators/option_list.rb +0 -32
- data/sub/avm/lib/avm/source_generators/runner.rb +0 -58
- data/sub/avm/lib/avm/source_generators.rb +0 -9
- data/sub/avm/lib/avm/sources/auto_commit/for_file.rb +0 -31
- data/sub/avm/lib/avm/sources/auto_commit.rb +0 -11
- data/sub/avm/lib/avm/sources/base/application.rb +0 -36
- data/sub/avm/lib/avm/sources/base/configuration.rb +0 -92
- data/sub/avm/lib/avm/sources/base/instance.rb +0 -16
- data/sub/avm/lib/avm/sources/base/locale.rb +0 -33
- data/sub/avm/lib/avm/sources/base/organizational.rb +0 -32
- data/sub/avm/lib/avm/sources/base/parent.rb +0 -28
- data/sub/avm/lib/avm/sources/base/stereotype.rb +0 -18
- data/sub/avm/lib/avm/sources/base/sub/remove.rb +0 -38
- data/sub/avm/lib/avm/sources/base/sub.rb +0 -26
- data/sub/avm/lib/avm/sources/base/subs.rb +0 -67
- data/sub/avm/lib/avm/sources/base/subs_paths.rb +0 -32
- data/sub/avm/lib/avm/sources/base/testing.rb +0 -70
- data/sub/avm/lib/avm/sources/base/update.rb +0 -39
- data/sub/avm/lib/avm/sources/base/update_sub.rb +0 -57
- data/sub/avm/lib/avm/sources/base/update_subs.rb +0 -19
- data/sub/avm/lib/avm/sources/base/version_bump.rb +0 -29
- data/sub/avm/lib/avm/sources/base.rb +0 -61
- data/sub/avm/lib/avm/sources/configuration/rubocop.rb +0 -26
- data/sub/avm/lib/avm/sources/configuration.rb +0 -59
- data/sub/avm/lib/avm/sources/issues/deliver.rb +0 -52
- data/sub/avm/lib/avm/sources/issues.rb +0 -11
- data/sub/avm/lib/avm/sources/runner.rb +0 -40
- data/sub/avm/lib/avm/sources/tests/builder.rb +0 -96
- data/sub/avm/lib/avm/sources/tests/performer.rb +0 -35
- data/sub/avm/lib/avm/sources/tests/result.rb +0 -15
- data/sub/avm/lib/avm/sources/tests/single.rb +0 -75
- data/sub/avm/lib/avm/sources/tests.rb +0 -11
- data/sub/avm/lib/avm/sources/update_error.rb +0 -8
- data/sub/avm/lib/avm/sources.rb +0 -9
- data/sub/avm/lib/avm/sync.rb +0 -92
- data/sub/avm/lib/avm/version.rb +0 -5
- data/sub/avm/lib/avm/version_number.rb +0 -45
- data/sub/avm/lib/avm/with/application_stereotype.rb +0 -33
- data/sub/avm/lib/avm/with/extra_subcommands.rb +0 -44
- data/sub/avm/lib/avm.rb +0 -7
- data/sub/avm/locale/en.yml +0 -6
- data/sub/avm/locale/pt-BR.yml +0 -6
- data/sub/avm/spec/dummy/avm-tools_stub/avm-tools.gemspec +0 -29
- data/sub/avm/spec/dummy/avm-tools_stub/lib/avm/tools/version.rb +0 -7
- data/sub/avm/spec/dummy/avm-tools_stub/lib/avm/tools.rb +0 -6
- data/sub/avm/spec/dummy/ruby_gem_stub/lib/ruby_gem_stub/version.rb +0 -5
- data/sub/avm/spec/dummy/ruby_gem_stub/lib/ruby_gem_stub.rb +0 -3
- data/sub/avm/spec/dummy/ruby_gem_stub/ruby_gem_stub.gemspec +0 -16
- data/sub/avm/spec/lib/avm/applications/base/entries_spec.rb +0 -31
- data/sub/avm/spec/lib/avm/applications/base/entries_spec_files/config.yml +0 -12
- data/sub/avm/spec/lib/avm/applications/base_spec.rb +0 -23
- data/sub/avm/spec/lib/avm/applications/base_spec_fixture.yml +0 -3
- data/sub/avm/spec/lib/avm/file_formats/base_spec.rb +0 -11
- data/sub/avm/spec/lib/avm/instances/base_spec.rb +0 -107
- data/sub/avm/spec/lib/avm/instances/base_spec_files/config.yml +0 -50
- data/sub/avm/spec/lib/avm/launcher/context_spec.rb +0 -128
- data/sub/avm/spec/lib/avm/launcher/context_spec.yml +0 -5
- data/sub/avm/spec/lib/avm/launcher/instances/base_spec.rb +0 -43
- data/sub/avm/spec/lib/avm/launcher/instances/base_spec_files/projects/avm-tools_stub/avm-tools.gemspec +0 -29
- data/sub/avm/spec/lib/avm/launcher/instances/base_spec_files/projects/avm-tools_stub/lib/avm/tools/version.rb +0 -7
- data/sub/avm/spec/lib/avm/launcher/instances/base_spec_files/projects/avm-tools_stub/lib/avm/tools.rb +0 -6
- data/sub/avm/spec/lib/avm/launcher/instances/base_spec_files/projects/ruby_gem_stub/lib/ruby_gem_stub/version.rb +0 -5
- data/sub/avm/spec/lib/avm/launcher/instances/base_spec_files/projects/ruby_gem_stub/lib/ruby_gem_stub.rb +0 -3
- data/sub/avm/spec/lib/avm/launcher/instances/base_spec_files/projects/ruby_gem_stub/ruby_gem_stub.gemspec +0 -16
- data/sub/avm/spec/lib/avm/launcher/instances/base_spec_files/settings.yaml +0 -5
- data/sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb +0 -28
- data/sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb +0 -21
- data/sub/avm/spec/lib/avm/scms/base_spec.rb +0 -7
- data/sub/avm/spec/lib/avm/sources/base_spec.rb +0 -7
- data/sub/avm/spec/lib/avm/sources/runner_spec.rb +0 -9
- data/sub/avm/spec/rubocop_spec.rb +0 -3
- data/sub/avm/spec/spec_helper/eac_launcher/settings.yml +0 -6
- data/sub/avm/spec/spec_helper/eac_launcher.rb +0 -52
- data/sub/avm/spec/spec_helper.rb +0 -5
- data/sub/avm/template/avm/self/docker_image/Dockerfile +0 -17
- data/sub/avm/template/avm/self/docker_image/entrypoint.sh +0 -12
- data/sub/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +0 -27
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/apache_host.rb +0 -12
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/database.rb +0 -30
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/files.rb +0 -22
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/gitolite.rb +0 -55
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/install.rb +0 -46
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/nodejs.rb +0 -22
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/web.rb +0 -20
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base.rb +0 -59
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/deploy.rb +0 -19
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/docker_image.rb +0 -106
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/entity_base.rb +0 -35
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/project.rb +0 -26
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/root.rb +0 -21
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/wiki_page.rb +0 -54
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/docker.rb +0 -17
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project/wiki_page/read.rb +0 -27
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project/wiki_page/write.rb +0 -70
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project/wiki_page.rb +0 -30
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project.rb +0 -26
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project_rename.rb +0 -56
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners.rb +0 -14
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances.rb +0 -11
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/base.rb +0 -36
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/core_update.rb +0 -131
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/runners/core_update.rb +0 -65
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/runners/docker.rb +0 -19
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0.rb +0 -9
- data/sub/avm-eac_redmine_base0/locale/en.yml +0 -6
- data/sub/avm-eac_redmine_base0/locale/pt-BR.yml +0 -6
- data/sub/avm-eac_redmine_base0/spec/lib/avm/eac_redmine_base0/instances/apache_host_spec.rb +0 -22
- data/sub/avm-eac_redmine_base0/spec/lib/avm/eac_redmine_base0/instances/apache_host_spec_files/apache_host_spec_no_ssl_content.conf +0 -11
- data/sub/avm-eac_redmine_base0/spec/lib/avm/eac_redmine_base0/instances/base/gitolite_spec.rb +0 -26
- data/sub/avm-eac_redmine_base0/spec/lib/avm/eac_redmine_base0/instances/base/gitolite_spec_files/config.yml +0 -10
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/deploy/config/install.sh.template +0 -45
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/deploy/config/secrets.yml +0 -8
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template +0 -33
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_host_dockerfile +0 -8
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_http_virtualhost.conf.template +0 -10
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_https_virtualhost.conf.template +0 -16
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_path_dockerfile +0 -5
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/start.sh.template +0 -52
- /data/sub/{avm-eac_redmine_base0 → avm-eac_asciidoctor_base0}/Gemfile +0 -0
- /data/sub/{avm-eac_redmine_base0 → avm-eac_asciidoctor_base0}/spec/rubocop_spec.rb +0 -0
@@ -1,16 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
$LOAD_PATH.push File.expand_path('lib', __dir__)
|
4
|
-
|
5
|
-
# Maintain your gem's version:
|
6
|
-
require 'ruby_gem_stub/version'
|
7
|
-
|
8
|
-
# Describe your gem and declare its dependencies:
|
9
|
-
Gem::Specification.new do |s|
|
10
|
-
s.name = 'ruby_gem_stub'
|
11
|
-
s.version = RubyGemStub::VERSION
|
12
|
-
s.authors = ['Esquilo Azul Company']
|
13
|
-
s.summary = 'Ruby gem stub for tests.'
|
14
|
-
s.files = Dir['{lib}/**/*']
|
15
|
-
s.required_ruby_version = '>= 2.7'
|
16
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/patches/eac_config/entry_path'
|
4
|
-
|
5
|
-
RSpec.describe EacConfig::EntryPath do
|
6
|
-
{
|
7
|
-
'install.path' => {
|
8
|
-
auto: 'auto_install_path',
|
9
|
-
default: 'install_path_default_value',
|
10
|
-
get: 'install_path',
|
11
|
-
get_optional: 'install_path_optional',
|
12
|
-
inherited_block: 'install_path_inherited_value_proc'
|
13
|
-
}
|
14
|
-
}.each do |instance_path, test_data|
|
15
|
-
context "when path is \"#{instance_path}\"" do
|
16
|
-
let(:instance) { described_class.assert(instance_path) }
|
17
|
-
|
18
|
-
test_data.each do |method_prefix, expected_value|
|
19
|
-
method_name = "#{method_prefix}_method_name"
|
20
|
-
context "when method name is \"#{method_name}\"" do
|
21
|
-
it do
|
22
|
-
expect(instance.send(method_name)).to eq(expected_value.to_sym)
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/scms/auto_commit/file_resource_name'
|
4
|
-
|
5
|
-
RSpec.describe Avm::Scms::AutoCommit::FileResourceName, :git do
|
6
|
-
let(:git) { stubbed_git_local_repo }
|
7
|
-
|
8
|
-
describe '#class_name' do
|
9
|
-
{
|
10
|
-
'app/models/mynamespace/the_class.rb' => 'Mynamespace::TheClass',
|
11
|
-
'lib/ruby/lib/cliutils/eac_redmine_base0/activity.rb' => 'Cliutils::EacRedmineBase0::Activity'
|
12
|
-
}.each do |relative_path, expected_class_name|
|
13
|
-
context "when path is \"#{relative_path}\"" do
|
14
|
-
let(:path) { git.root_path.join(relative_path) }
|
15
|
-
let(:instance) { described_class.new(git, path) }
|
16
|
-
|
17
|
-
it { expect(instance.class_name).to eq(expected_class_name) }
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,52 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
DUMMY_DIR = File.expand_path('../dummy', __dir__)
|
4
|
-
ROOT_DIR = File.expand_path('../..', __dir__)
|
5
|
-
|
6
|
-
require 'avm/launcher/context'
|
7
|
-
|
8
|
-
RSpec.configure do |config|
|
9
|
-
config.before do
|
10
|
-
require 'avm/launcher/context'
|
11
|
-
Avm::Launcher::Context.current = Avm::Launcher::Context.new(
|
12
|
-
projects_root: DUMMY_DIR,
|
13
|
-
settings_file: File.join(__dir__, 'eac_launcher', 'settings.yml'),
|
14
|
-
cache_root: Dir.mktmpdir
|
15
|
-
)
|
16
|
-
@remotes_dir = Dir.mktmpdir
|
17
|
-
allow(ProgressBar).to receive(:create).and_return(double.as_null_object)
|
18
|
-
end
|
19
|
-
|
20
|
-
def temp_context(settings_path)
|
21
|
-
require 'avm/launcher/context'
|
22
|
-
require 'tmpdir'
|
23
|
-
Avm::Launcher::Context.current = Avm::Launcher::Context.new(
|
24
|
-
projects_root: Dir.mktmpdir, settings_file: settings_path, cache_root: Dir.mktmpdir
|
25
|
-
)
|
26
|
-
end
|
27
|
-
|
28
|
-
def init_remote(name)
|
29
|
-
require 'avm/git/launcher/base'
|
30
|
-
r = Avm::Git::Launcher::Base.new(File.join(@remotes_dir, name))
|
31
|
-
r.init_bare
|
32
|
-
r
|
33
|
-
end
|
34
|
-
|
35
|
-
def init_git(subdir)
|
36
|
-
require 'avm/git/launcher/base'
|
37
|
-
r = Avm::Git::Launcher::Base.new(File.join(Avm::Launcher::Context.current.root.real,
|
38
|
-
subdir))
|
39
|
-
r.git
|
40
|
-
r.execute!('config', 'user.email', 'theuser@example.net')
|
41
|
-
r.execute!('config', 'user.name', 'The User')
|
42
|
-
r
|
43
|
-
end
|
44
|
-
|
45
|
-
def touch_commit(repos, subpath)
|
46
|
-
require 'fileutils'
|
47
|
-
FileUtils.mkdir_p(File.dirname(repos.subpath(subpath)))
|
48
|
-
FileUtils.touch(repos.subpath(subpath))
|
49
|
-
repos.execute!('add', repos.subpath(subpath))
|
50
|
-
repos.execute!('commit', '-m', subpath)
|
51
|
-
end
|
52
|
-
end
|
data/sub/avm/spec/spec_helper.rb
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
FROM ruby:2.5
|
2
|
-
RUN gem install avm-tools
|
3
|
-
|
4
|
-
RUN apt-get update && apt-get -y --no-install-recommends install \
|
5
|
-
ca-certificates \
|
6
|
-
curl
|
7
|
-
|
8
|
-
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
|
9
|
-
RUN curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.4/gosu-$(dpkg --print-architecture)" \
|
10
|
-
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.4/gosu-$(dpkg --print-architecture).asc" \
|
11
|
-
&& gpg --verify /usr/local/bin/gosu.asc \
|
12
|
-
&& rm /usr/local/bin/gosu.asc \
|
13
|
-
&& chmod +x /usr/local/bin/gosu
|
14
|
-
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
15
|
-
RUN chmod +x /usr/local/bin/entrypoint.sh
|
16
|
-
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
17
|
-
CMD []
|
@@ -1,12 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
# Add local user
|
4
|
-
# Either use the LOCAL_USER_ID if passed in at runtime or
|
5
|
-
# fallback
|
6
|
-
|
7
|
-
USER_ID=${LOCAL_USER_ID:-9001}
|
8
|
-
|
9
|
-
echo "Starting with UID : $USER_ID"
|
10
|
-
useradd --shell /bin/bash -u $USER_ID -o -c "" -m user
|
11
|
-
export HOME=/home/user
|
12
|
-
exec /usr/local/bin/gosu user avm "$@"
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
$LOAD_PATH.push File.expand_path('lib', __dir__)
|
4
|
-
|
5
|
-
require 'avm/eac_redmine_base0/version'
|
6
|
-
|
7
|
-
Gem::Specification.new do |s|
|
8
|
-
s.name = 'avm-eac_redmine_base0'
|
9
|
-
s.version = Avm::EacRedmineBase0::VERSION
|
10
|
-
s.authors = ['Put here the authors']
|
11
|
-
s.summary = 'Put here de description.'
|
12
|
-
|
13
|
-
s.files = Dir['{lib,locale,template}/**/*']
|
14
|
-
|
15
|
-
s.required_ruby_version = '>= 2.7.0'
|
16
|
-
|
17
|
-
s.add_dependency 'avm', '~> 0.90', '>= 0.90.1'
|
18
|
-
s.add_dependency 'avm-eac_generic_base0', '~> 0.13'
|
19
|
-
s.add_dependency 'avm-eac_rails_base1', '~> 0.10'
|
20
|
-
s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.5', '>= 0.5.1'
|
21
|
-
s.add_dependency 'curb', '~> 0.9', '>= 0.9.11'
|
22
|
-
s.add_dependency 'eac_fs', '~> 0.17'
|
23
|
-
s.add_dependency 'eac_rest', '~> 0.12'
|
24
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.121'
|
25
|
-
|
26
|
-
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.9.0'
|
27
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_rails_base1/instances/base'
|
4
|
-
require 'eac_ruby_utils/core_ext'
|
5
|
-
|
6
|
-
module Avm
|
7
|
-
module EacRedmineBase0
|
8
|
-
module Instances
|
9
|
-
class Base < ::Avm::EacRailsBase1::Instances::Base
|
10
|
-
module Database
|
11
|
-
DATABASE_INTERNAL_HOSTNAME = ::Avm::Instances::Base::AutoValues::Database::LOCAL_ADDRESS
|
12
|
-
DEFAULT_POSTGRESQL_VERSION = ''
|
13
|
-
|
14
|
-
common_concern do
|
15
|
-
uri_components_entries_values 'postgresql', %w[version]
|
16
|
-
end
|
17
|
-
|
18
|
-
def database_internal
|
19
|
-
::Avm::Instances::Base::AutoValues::Database::LOCAL_ADDRESSES
|
20
|
-
.include?(entry(::Avm::Instances::EntryKeys::DATABASE_HOSTNAME).value)
|
21
|
-
end
|
22
|
-
|
23
|
-
def postgresql_version_default_value
|
24
|
-
DEFAULT_POSTGRESQL_VERSION
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_rails_base1/instances/base'
|
4
|
-
require 'avm/instances/data/files_unit'
|
5
|
-
require 'eac_ruby_utils/core_ext'
|
6
|
-
|
7
|
-
module Avm
|
8
|
-
module EacRedmineBase0
|
9
|
-
module Instances
|
10
|
-
class Base < ::Avm::EacRailsBase1::Instances::Base
|
11
|
-
module Files
|
12
|
-
FILES_SUBPATH = 'files'
|
13
|
-
|
14
|
-
# @return [Avm::Instances::Data::FilesUnit]
|
15
|
-
def files_data_unit
|
16
|
-
::Avm::Instances::Data::FilesUnit.new(self, FILES_SUBPATH)
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -1,55 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_rails_base1/instances/base'
|
4
|
-
require 'eac_ruby_utils/core_ext'
|
5
|
-
|
6
|
-
module Avm
|
7
|
-
module EacRedmineBase0
|
8
|
-
module Instances
|
9
|
-
class Base < ::Avm::EacRailsBase1::Instances::Base
|
10
|
-
module Gitolite
|
11
|
-
GITOLITE_ENTRY_KEYS_PREFIX = 'gitolite'
|
12
|
-
DEFAULT_HOSTNAME = 'localhost'
|
13
|
-
DEFAULT_PATH_PARENT = '/var/lib'
|
14
|
-
DEFAULT_SCHEME = 'file'
|
15
|
-
DEFAULT_USERNAME = 'git'
|
16
|
-
|
17
|
-
common_concern do
|
18
|
-
uri_components_entries_values GITOLITE_ENTRY_KEYS_PREFIX
|
19
|
-
undef_method :gitolite_path_inherited_value_proc
|
20
|
-
end
|
21
|
-
|
22
|
-
# @return [Avm::Instances::Data::FilesUnit]
|
23
|
-
def gitolite_data_unit
|
24
|
-
::Avm::Instances::Data::FilesUnit.new(self, gitolite_repositories_path,
|
25
|
-
sudo_user: entry('gitolite.username').value!)
|
26
|
-
end
|
27
|
-
|
28
|
-
def gitolite_hostname_default_value
|
29
|
-
DEFAULT_HOSTNAME
|
30
|
-
end
|
31
|
-
|
32
|
-
# @return [String]
|
33
|
-
def gitolite_path_default_value
|
34
|
-
gitolite_username_optional.if_present do |v|
|
35
|
-
::File.join(DEFAULT_PATH_PARENT, v)
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
# @return [Pathname]
|
40
|
-
def gitolite_repositories_path
|
41
|
-
entry('gitolite.path').value!.to_pathname.join('repositories')
|
42
|
-
end
|
43
|
-
|
44
|
-
def gitolite_scheme_default_value
|
45
|
-
DEFAULT_SCHEME
|
46
|
-
end
|
47
|
-
|
48
|
-
def gitolite_username_default_value
|
49
|
-
DEFAULT_USERNAME
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_rails_base1/instances/base'
|
4
|
-
require 'eac_ruby_utils/core_ext'
|
5
|
-
|
6
|
-
module Avm
|
7
|
-
module EacRedmineBase0
|
8
|
-
module Instances
|
9
|
-
class Base < ::Avm::EacRailsBase1::Instances::Base
|
10
|
-
module Install
|
11
|
-
INSTALL_EXTRA_KEY = 'install.extra'
|
12
|
-
DEFAULT_INSTALL_EXTRA = ''
|
13
|
-
|
14
|
-
# @return [String]
|
15
|
-
def auto_install_extra
|
16
|
-
inherited_entry_value(::Avm::Instances::EntryKeys::INSTALL_ID, INSTALL_EXTRA_KEY) ||
|
17
|
-
DEFAULT_INSTALL_EXTRA
|
18
|
-
end
|
19
|
-
|
20
|
-
def run_installer
|
21
|
-
::EacRubyUtils::Ruby.on_clean_environment do
|
22
|
-
installer_command.system!
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
def installer_command
|
27
|
-
host_env.command(installer_path, install_task)
|
28
|
-
end
|
29
|
-
|
30
|
-
def installer_path
|
31
|
-
::File.join(install_path, 'plugins', 'redmine_installer', 'installer',
|
32
|
-
'run.sh')
|
33
|
-
end
|
34
|
-
|
35
|
-
def install_task
|
36
|
-
if web_path_optional.present?
|
37
|
-
'redmine_as_apache_path'
|
38
|
-
else
|
39
|
-
'redmine_as_apache_base'
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_rails_base1/instances/base'
|
4
|
-
require 'eac_ruby_utils/core_ext'
|
5
|
-
|
6
|
-
module Avm
|
7
|
-
module EacRedmineBase0
|
8
|
-
module Instances
|
9
|
-
class Base < ::Avm::EacRailsBase1::Instances::Base
|
10
|
-
module Nodejs
|
11
|
-
DEFAULT_NODEJS_VERSION = '19.8.1'
|
12
|
-
NODEJS_VERSION_KEY = 'nodejs.version'
|
13
|
-
|
14
|
-
def auto_install_nodejs_version
|
15
|
-
inherited_entry_value(::Avm::Instances::EntryKeys::INSTALL_ID, NODEJS_VERSION_KEY) ||
|
16
|
-
DEFAULT_NODEJS_VERSION
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_rails_base1/instances/base'
|
4
|
-
require 'eac_ruby_utils/core_ext'
|
5
|
-
|
6
|
-
module Avm
|
7
|
-
module EacRedmineBase0
|
8
|
-
module Instances
|
9
|
-
class Base < ::Avm::EacRailsBase1::Instances::Base
|
10
|
-
module Web
|
11
|
-
def web_authority
|
12
|
-
web_hostname.if_present do |h|
|
13
|
-
h.to_s + web_port_optional.if_present('') { |p| ":#{p}" }
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,59 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'addressable/uri'
|
4
|
-
require 'avm/eac_redmine_base0/instances/apache_host'
|
5
|
-
require 'avm/eac_redmine_base0/instances/docker_image'
|
6
|
-
require 'avm/eac_redmine_base0/instances/runners'
|
7
|
-
require 'avm/eac_redmine_base0/instances/rest_api'
|
8
|
-
require 'avm/eac_rails_base1/instances/base'
|
9
|
-
require 'avm/eac_ruby_base1/instances/mixin'
|
10
|
-
|
11
|
-
module Avm
|
12
|
-
module EacRedmineBase0
|
13
|
-
module Instances
|
14
|
-
class Base < ::Avm::EacRailsBase1::Instances::Base
|
15
|
-
require_sub __FILE__, include_modules: true, require_dependency: true
|
16
|
-
enable_simple_cache
|
17
|
-
|
18
|
-
include ::Avm::EacRubyBase1::Instances::Mixin
|
19
|
-
|
20
|
-
def docker_image_class
|
21
|
-
::Avm::EacRedmineBase0::Instances::DockerImage
|
22
|
-
end
|
23
|
-
|
24
|
-
def docker_run_arguments
|
25
|
-
[
|
26
|
-
'--volume',
|
27
|
-
"#{install_path}:/home/myuser/eac_redmine_base0",
|
28
|
-
'--publish', "#{read_entry(:ssh_port)}:22",
|
29
|
-
'--publish', "#{read_entry(:http_port)}:80",
|
30
|
-
'--publish', "#{read_entry(:https_port)}:443"
|
31
|
-
]
|
32
|
-
end
|
33
|
-
|
34
|
-
# @return [Avm::Instances::Data::Package]
|
35
|
-
def data_package_create
|
36
|
-
r = super.add_unit('files', files_data_unit).add_unit('gitolite', gitolite_data_unit)
|
37
|
-
r.after_load { instance.run_installer }
|
38
|
-
r
|
39
|
-
end
|
40
|
-
|
41
|
-
# @return [Addressable::URI]
|
42
|
-
def root_url
|
43
|
-
r = ::Addressable::URI.parse(read_entry(::Avm::Instances::EntryKeys::WEB_URL))
|
44
|
-
r.query_values = nil
|
45
|
-
r
|
46
|
-
end
|
47
|
-
|
48
|
-
private
|
49
|
-
|
50
|
-
# @return [Avm::EacRedmineBase0::Instances::RestApi]
|
51
|
-
def rest_api_uncached
|
52
|
-
url = root_url
|
53
|
-
url.query_values = { key: admin_api_key }
|
54
|
-
::Avm::EacRedmineBase0::Instances::RestApi.new(url)
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_rails_base1/instances/deploy'
|
4
|
-
require 'eac_ruby_utils/ruby'
|
5
|
-
|
6
|
-
module Avm
|
7
|
-
module EacRedmineBase0
|
8
|
-
module Instances
|
9
|
-
class Deploy < ::Avm::EacRailsBase1::Instances::Deploy
|
10
|
-
set_callback :assert_instance_branch, :after, :run_installer
|
11
|
-
|
12
|
-
def run_installer
|
13
|
-
infom 'Running installer'
|
14
|
-
instance.run_installer
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,106 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/core_ext'
|
4
|
-
require 'avm/eac_redmine_base0/instances/deploy'
|
5
|
-
require 'avm/eac_ubuntu_base0/instances/base'
|
6
|
-
require 'avm/instances/docker_image'
|
7
|
-
require 'eac_templates/core_ext'
|
8
|
-
|
9
|
-
module Avm
|
10
|
-
module EacRedmineBase0
|
11
|
-
module Instances
|
12
|
-
class DockerImage < ::Avm::Instances::DockerImage
|
13
|
-
enable_simple_cache
|
14
|
-
|
15
|
-
APACHE_HOST_DOCKERFILE_SUBPATH = 'apache_host_dockerfile'
|
16
|
-
APACHE_PATH_DOCKERFILE_SUBPATH = 'apache_path_dockerfile'
|
17
|
-
INSTALLER_TARGET_TASK_WITH_WEB_PATH_BLANK = 'redmine_as_apache_base'
|
18
|
-
INSTALLER_TARGET_TASK_WITH_WEB_PATH_PRESENT = 'redmine_as_apache_path'
|
19
|
-
REDMINE_SOURCE_HOST_SUBPATH = 'redmine_source'
|
20
|
-
|
21
|
-
delegate :database_internal, to: :instance
|
22
|
-
|
23
|
-
def avm_fs_cache_object_id
|
24
|
-
instance.id
|
25
|
-
end
|
26
|
-
|
27
|
-
def apache_setup
|
28
|
-
template.child(apache_setup_dockerfile).apply(self)
|
29
|
-
end
|
30
|
-
|
31
|
-
# @return [String]
|
32
|
-
def apache_setup_dockerfile
|
33
|
-
web_path_present? ? APACHE_PATH_DOCKERFILE_SUBPATH : APACHE_HOST_DOCKERFILE_SUBPATH
|
34
|
-
end
|
35
|
-
|
36
|
-
def base_image
|
37
|
-
eac_ubuntu_base0_instance.docker_image.provide.id
|
38
|
-
end
|
39
|
-
|
40
|
-
def installer_target_task
|
41
|
-
if web_path_present?
|
42
|
-
INSTALLER_TARGET_TASK_WITH_WEB_PATH_PRESENT
|
43
|
-
else
|
44
|
-
INSTALLER_TARGET_TASK_WITH_WEB_PATH_BLANK
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
def redmine_user
|
49
|
-
eac_ubuntu_base0_instance.docker_image.user_name
|
50
|
-
end
|
51
|
-
|
52
|
-
def redmine_user_home
|
53
|
-
eac_ubuntu_base0_instance.docker_image.user_home
|
54
|
-
end
|
55
|
-
|
56
|
-
def redmine_path
|
57
|
-
"#{redmine_user_home}/redmine_app"
|
58
|
-
end
|
59
|
-
|
60
|
-
def skip_database
|
61
|
-
ENV.fetch('SKIP_DATABASE', nil)
|
62
|
-
end
|
63
|
-
|
64
|
-
def start_path
|
65
|
-
'/start.sh'
|
66
|
-
end
|
67
|
-
|
68
|
-
def web_path_present?
|
69
|
-
::Addressable::URI.parse(instance.web_url).path.present?
|
70
|
-
end
|
71
|
-
|
72
|
-
def write_in_provide_dir
|
73
|
-
super
|
74
|
-
|
75
|
-
::Avm::EacRedmineBase0::Instances::Deploy.template.child('config')
|
76
|
-
.child('install.sh.template')
|
77
|
-
.apply_to_file(variables_source, provide_dir.join('install_settings.sh'))
|
78
|
-
end
|
79
|
-
|
80
|
-
private
|
81
|
-
|
82
|
-
def eac_ubuntu_base0_instance
|
83
|
-
r = ::Avm::EacUbuntuBase0::Instances::Base.by_id(instance.id)
|
84
|
-
r.docker_image_options = instance.docker_image_options
|
85
|
-
r
|
86
|
-
end
|
87
|
-
|
88
|
-
def git_repo_uncached
|
89
|
-
::EacGit::Local.new(instance.source_instance.install_path)
|
90
|
-
end
|
91
|
-
|
92
|
-
def redmine_source_git_id
|
93
|
-
git_repo.rev_parse('HEAD')
|
94
|
-
end
|
95
|
-
|
96
|
-
def redmine_source_path_uncached
|
97
|
-
r = provide_dir.join(REDMINE_SOURCE_HOST_SUBPATH)
|
98
|
-
::FileUtils.rm_rf(r.to_path)
|
99
|
-
r.mkpath
|
100
|
-
git_repo.commit(redmine_source_git_id).archive_to_dir(r).system!
|
101
|
-
REDMINE_SOURCE_HOST_SUBPATH
|
102
|
-
end
|
103
|
-
end
|
104
|
-
end
|
105
|
-
end
|
106
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_rest/api'
|
4
|
-
require 'eac_rest/entity'
|
5
|
-
require 'eac_ruby_utils/core_ext'
|
6
|
-
|
7
|
-
module Avm
|
8
|
-
module EacRedmineBase0
|
9
|
-
module Instances
|
10
|
-
class RestApi < ::EacRest::Api
|
11
|
-
class EntityBase < ::EacRest::Entity
|
12
|
-
def build_request(url_suffix)
|
13
|
-
api.request_json("#{url_suffix}.json")
|
14
|
-
end
|
15
|
-
|
16
|
-
def data_from_response(response)
|
17
|
-
raise "\"#{response.url}\" returned non-ok status: #{response.status}" unless
|
18
|
-
response.status.to_s.start_with?('2')
|
19
|
-
|
20
|
-
return {} if response.body_str.blank?
|
21
|
-
|
22
|
-
response.body_data
|
23
|
-
rescue ::JSON::ParserError
|
24
|
-
raise "\"#{response.url}\" returned invalid JSON: \"#{response.body_str}\" " \
|
25
|
-
"(Status: #{response.status})"
|
26
|
-
end
|
27
|
-
|
28
|
-
def fetch_data(url_suffix)
|
29
|
-
data_from_response(build_request(url_suffix).response)
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|