eac_tools 0.92.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/Gemfile.lock +68 -53
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm/avm.gemspec +3 -3
- data/sub/avm/lib/avm/launcher/context.rb +0 -5
- data/sub/avm/lib/avm/rspec/launcher_controller.rb +96 -0
- data/sub/avm/lib/avm/rspec/setup.rb +1 -1
- data/sub/avm/lib/avm/rspec/shared_examples/with_launcher.rb +16 -0
- data/sub/avm/lib/avm/scms/base.rb +1 -1
- data/sub/avm/lib/avm/sources/base/sub.rb +1 -1
- data/sub/avm/lib/avm/version.rb +1 -1
- data/sub/avm/spec/lib/avm/launcher/context_spec.rb +2 -2
- data/sub/avm/spec/lib/avm/launcher/instances/base_spec.rb +2 -2
- data/sub/avm/template/avm/rspec/launcher_controller/settings.yml +1 -0
- data/sub/avm-eac_webapp_base0/Gemfile +8 -0
- data/sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec +25 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/executables.rb +26 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/file_formats/css/file_apply.rb +48 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/file_formats/css.rb +22 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/file_formats/html.rb +43 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/file_formats/javascript.rb +22 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/file_formats/json.rb +25 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/file_formats/provider.rb +24 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/file_formats/xml.rb +26 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/file_formats.rb +11 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/apache_base.rb +33 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/apache_host.rb +78 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/apache_path.rb +42 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base/apache.rb +44 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base/deploy_info.rb +30 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base/install.rb +22 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base.rb +44 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy/appended_directories.rb +27 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy/build.rb +50 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy/info.rb +47 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy/scm.rb +88 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy/setup_files_unit.rb +53 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy/write_on_target.rb +20 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy.rb +76 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy_info.rb +37 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/processes/web_server.rb +37 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/processes.rb +13 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb +36 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_path.rb +40 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data/load.rb +60 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/deploy.rb +57 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/deploy_info.rb +28 -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/sources/base.rb +15 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/sources.rb +11 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +7 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0.rb +9 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/file_formats/css_spec.rb +7 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/file_formats/css_spec_files/css1.source.css +11 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/file_formats/css_spec_files/css1.target.css +11 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/file_formats/html_spec.rb +7 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/file_formats/html_spec_files/html_code.html.erb.source +8 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/file_formats/html_spec_files/html_code.html.erb.target +8 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/file_formats/html_spec_files/html_code.html.source +5 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/file_formats/html_spec_files/html_code.html.target +5 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/file_formats/javascript_spec.rb +7 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/file_formats/javascript_spec_files/javascript_code1.js.source +29 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/file_formats/javascript_spec_files/javascript_code1.js.target +21 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/file_formats/json_spec.rb +7 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/file_formats/json_spec_files/json_code.json.source +8 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/file_formats/json_spec_files/json_code.json.target +7 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/file_formats/xml_spec.rb +7 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/file_formats/xml_spec_files/xml_code.xml.source +11 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/file_formats/xml_spec_files/xml_code.xml.target +9 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/instances/base_spec.rb +11 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/sources/base_spec.rb +7 -0
- data/sub/avm-eac_webapp_base0/spec/rubocop_spec.rb +3 -0
- data/sub/avm-eac_webapp_base0/spec/spec_helper.rb +4 -0
- data/sub/avm-eac_webapp_base0/template/avm/eac_webapp_base0/instances/apache_host/no_ssl.conf +11 -0
- data/sub/avm-eac_webapp_base0/template/avm/eac_webapp_base0/instances/apache_path/default.conf +7 -0
- data/sub/avm-git/Gemfile +8 -0
- data/sub/avm-git/avm-git.gemspec +25 -0
- data/sub/avm-git/lib/avm/git/application_scms/base/assert_main_at.rb +49 -0
- data/sub/avm-git/lib/avm/git/application_scms/base.rb +21 -0
- data/sub/avm-git/lib/avm/git/application_scms.rb +11 -0
- data/sub/avm-git/lib/avm/git/commit/class_methods.rb +31 -0
- data/sub/avm-git/lib/avm/git/commit/diff_tree_line.rb +32 -0
- data/sub/avm-git/lib/avm/git/commit/file.rb +46 -0
- data/sub/avm-git/lib/avm/git/commit.rb +59 -0
- data/sub/avm-git/lib/avm/git/issue/complete/commits.rb +42 -0
- data/sub/avm-git/lib/avm/git/issue/complete/git_subrepos.rb +23 -0
- data/sub/avm-git/lib/avm/git/issue/complete/local_branch.rb +61 -0
- data/sub/avm-git/lib/avm/git/issue/complete/local_tag.rb +39 -0
- data/sub/avm-git/lib/avm/git/issue/complete/push.rb +60 -0
- data/sub/avm-git/lib/avm/git/issue/complete/remote.rb +33 -0
- data/sub/avm-git/lib/avm/git/issue/complete/test.rb +40 -0
- data/sub/avm-git/lib/avm/git/issue/complete/tracker.rb +21 -0
- data/sub/avm-git/lib/avm/git/issue/complete/validation.rb +39 -0
- data/sub/avm-git/lib/avm/git/issue/complete/validations.rb +53 -0
- data/sub/avm-git/lib/avm/git/issue/complete/working_tree.rb +19 -0
- data/sub/avm-git/lib/avm/git/issue/complete.rb +69 -0
- data/sub/avm-git/lib/avm/git/issue.rb +11 -0
- data/sub/avm-git/lib/avm/git/launcher/base/class_methods.rb +28 -0
- data/sub/avm-git/lib/avm/git/launcher/base/dirty_files.rb +23 -0
- data/sub/avm-git/lib/avm/git/launcher/base/remotes.rb +40 -0
- data/sub/avm-git/lib/avm/git/launcher/base/subrepo.rb +44 -0
- data/sub/avm-git/lib/avm/git/launcher/base/underlying.rb +59 -0
- data/sub/avm-git/lib/avm/git/launcher/base.rb +87 -0
- data/sub/avm-git/lib/avm/git/launcher/error.rb +15 -0
- data/sub/avm-git/lib/avm/git/launcher/mirror_update.rb +38 -0
- data/sub/avm-git/lib/avm/git/launcher/publish_base.rb +131 -0
- data/sub/avm-git/lib/avm/git/launcher/remote.rb +55 -0
- data/sub/avm-git/lib/avm/git/launcher/sub_warp_base.rb +33 -0
- data/sub/avm-git/lib/avm/git/launcher/warp_base.rb +68 -0
- data/sub/avm-git/lib/avm/git/launcher.rb +7 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git/local_project_mixin.rb +19 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git/publish.rb +15 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git/warp.rb +27 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git.rb +25 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb +31 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/warp.rb +88 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo.rb +36 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git_subtree/publish.rb +14 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git_subtree/warp.rb +32 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git_subtree.rb +51 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/provider.rb +22 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes.rb +11 -0
- data/sub/avm-git/lib/avm/git/organize/reference_update.rb +34 -0
- data/sub/avm-git/lib/avm/git/organize/repository.rb +77 -0
- data/sub/avm-git/lib/avm/git/organize.rb +11 -0
- data/sub/avm-git/lib/avm/git/revision_test.rb +105 -0
- data/sub/avm-git/lib/avm/git/runners/base/commit.rb +102 -0
- data/sub/avm-git/lib/avm/git/runners/base/deploy.rb +111 -0
- data/sub/avm-git/lib/avm/git/runners/base/dirty_files.rb +44 -0
- data/sub/avm-git/lib/avm/git/runners/base/organize.rb +75 -0
- data/sub/avm-git/lib/avm/git/runners/base/revisions_test.rb +66 -0
- data/sub/avm-git/lib/avm/git/runners/base/subrepo/check.rb +48 -0
- data/sub/avm-git/lib/avm/git/runners/base/subrepo/clone.rb +83 -0
- data/sub/avm-git/lib/avm/git/runners/base/subrepo/fix.rb +76 -0
- data/sub/avm-git/lib/avm/git/runners/base/subrepo.rb +19 -0
- data/sub/avm-git/lib/avm/git/runners/base.rb +43 -0
- data/sub/avm-git/lib/avm/git/runners.rb +11 -0
- data/sub/avm-git/lib/avm/git/scms/git/branch.rb +31 -0
- data/sub/avm-git/lib/avm/git/scms/git/branches.rb +20 -0
- data/sub/avm-git/lib/avm/git/scms/git/change_tracker.rb +36 -0
- data/sub/avm-git/lib/avm/git/scms/git/changed_file.rb +16 -0
- data/sub/avm-git/lib/avm/git/scms/git/changed_files.rb +24 -0
- data/sub/avm-git/lib/avm/git/scms/git/commit/deploy.rb +43 -0
- data/sub/avm-git/lib/avm/git/scms/git/commit/deploy_methods.rb +30 -0
- data/sub/avm-git/lib/avm/git/scms/git/commit.rb +67 -0
- data/sub/avm-git/lib/avm/git/scms/git/commit_dirty.rb +36 -0
- data/sub/avm-git/lib/avm/git/scms/git/commits.rb +47 -0
- data/sub/avm-git/lib/avm/git/scms/git/interval.rb +31 -0
- data/sub/avm-git/lib/avm/git/scms/git/milestones.rb +21 -0
- data/sub/avm-git/lib/avm/git/scms/git/remote.rb +21 -0
- data/sub/avm-git/lib/avm/git/scms/git/remotes.rb +32 -0
- data/sub/avm-git/lib/avm/git/scms/git/run_commit.rb +57 -0
- data/sub/avm-git/lib/avm/git/scms/git.rb +51 -0
- data/sub/avm-git/lib/avm/git/scms/git_sub_base/changed_file.rb +21 -0
- data/sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb +27 -0
- data/sub/avm-git/lib/avm/git/scms/git_sub_base/interval.rb +28 -0
- data/sub/avm-git/lib/avm/git/scms/git_sub_base.rb +33 -0
- data/sub/avm-git/lib/avm/git/scms/git_subrepo.rb +37 -0
- data/sub/avm-git/lib/avm/git/scms/git_subtree.rb +34 -0
- data/sub/avm-git/lib/avm/git/scms/provider.rb +21 -0
- data/sub/avm-git/lib/avm/git/scms.rb +11 -0
- data/sub/avm-git/lib/avm/git/subrepo_check/parent.rb +51 -0
- data/sub/avm-git/lib/avm/git/subrepo_check/remote.rb +89 -0
- data/sub/avm-git/lib/avm/git/subrepo_check/show_result.rb +32 -0
- data/sub/avm-git/lib/avm/git/subrepo_check.rb +38 -0
- data/sub/avm-git/lib/avm/git/subrepo_checks.rb +60 -0
- data/sub/avm-git/lib/avm/git/vendor/github.rb +20 -0
- data/sub/avm-git/lib/avm/git/vendor.rb +11 -0
- data/sub/avm-git/lib/avm/git/version.rb +7 -0
- data/sub/avm-git/lib/avm/git.rb +9 -0
- data/sub/avm-git/locale/en.yml +6 -0
- data/sub/avm-git/locale/pt-BR.yml +6 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec.rb +13 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.source.out +1 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.target.yaml +7 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.source.out +1 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.target.yaml +7 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.source.out +1 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.target.yaml +7 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.source.out +2 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.target.yaml +13 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.source.out +2 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.target.yaml +13 -0
- data/sub/avm-git/spec/lib/avm/git/commit_spec.rb +56 -0
- data/sub/avm-git/spec/lib/avm/git/launcher/base_spec.rb +45 -0
- data/sub/avm-git/spec/lib/avm/git/launcher_stereotypes/git_subrepo/publish_spec.rb +83 -0
- data/sub/avm-git/spec/lib/avm/git/launcher_stereotypes/git_subrepo/publish_spec_files/config.yml +5 -0
- data/sub/avm-git/spec/lib/avm/git/launcher_stereotypes/git_subrepo/publish_spec_settings.yml +6 -0
- data/sub/avm-git/spec/lib/avm/git/launcher_stereotypes/git_subrepo/warp_spec.rb +53 -0
- data/sub/avm-git/spec/lib/avm/git/launcher_stereotypes/git_subrepo/warp_spec_files/config.yml +3 -0
- data/sub/avm-git/spec/lib/avm/git/launcher_stereotypes/git_subrepo/warp_spec_settings.yml +6 -0
- data/sub/avm-git/spec/lib/avm/git/runners/base/deploy_spec.rb +126 -0
- data/sub/avm-git/spec/lib/avm/git/runners/base/deploy_spec_files/append1/stub3.txt.template +1 -0
- data/sub/avm-git/spec/lib/avm/git/runners/base/deploy_spec_files/append2/stub4.txt +1 -0
- data/sub/avm-git/spec/lib/avm/git/scms/git/commit/deploy_spec.rb +92 -0
- data/sub/avm-git/spec/lib/avm/git/scms/git_spec.rb +8 -0
- data/sub/avm-git/spec/lib/avm/git/scms/git_subrepo_spec.rb +8 -0
- data/sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb +23 -0
- data/sub/avm-git/spec/rubocop_spec.rb +3 -0
- data/sub/avm-git/spec/spec_helper.rb +4 -0
- data/sub/avm-tools/Gemfile +8 -0
- data/sub/avm-tools/README.textile +28 -0
- data/sub/avm-tools/avm-tools.gemspec +25 -0
- data/sub/avm-tools/exe/avm +6 -0
- data/sub/avm-tools/lib/avm/tools/core_ext.rb +3 -0
- data/sub/avm-tools/lib/avm/tools/rspec/helpers/runner.rb +20 -0
- data/sub/avm-tools/lib/avm/tools/rspec/helpers.rb +13 -0
- data/sub/avm-tools/lib/avm/tools/rspec/setup.rb +24 -0
- data/sub/avm-tools/lib/avm/tools/rspec.rb +11 -0
- data/sub/avm-tools/lib/avm/tools/runner/application/info.rb +36 -0
- data/sub/avm-tools/lib/avm/tools/runner/application.rb +26 -0
- data/sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb +31 -0
- data/sub/avm-tools/lib/avm/tools/runner/application_stereotypes.rb +16 -0
- data/sub/avm-tools/lib/avm/tools/runner/applications/list.rb +31 -0
- data/sub/avm-tools/lib/avm/tools/runner/applications.rb +16 -0
- data/sub/avm-tools/lib/avm/tools/runner/config/load_path.rb +52 -0
- data/sub/avm-tools/lib/avm/tools/runner/config.rb +17 -0
- data/sub/avm-tools/lib/avm/tools/runner/files/format.rb +50 -0
- data/sub/avm-tools/lib/avm/tools/runner/files/rotate.rb +31 -0
- data/sub/avm-tools/lib/avm/tools/runner/files.rb +17 -0
- data/sub/avm-tools/lib/avm/tools/runner/instance/data/clear.rb +18 -0
- data/sub/avm-tools/lib/avm/tools/runner/instance/data/dump.rb +20 -0
- data/sub/avm-tools/lib/avm/tools/runner/instance/data/load.rb +25 -0
- data/sub/avm-tools/lib/avm/tools/runner/instance/data/unit/clear.rb +20 -0
- data/sub/avm-tools/lib/avm/tools/runner/instance/data/unit/dump.rb +20 -0
- data/sub/avm-tools/lib/avm/tools/runner/instance/data/unit/load.rb +25 -0
- data/sub/avm-tools/lib/avm/tools/runner/instance/data/unit.rb +44 -0
- data/sub/avm-tools/lib/avm/tools/runner/instance/data.rb +27 -0
- data/sub/avm-tools/lib/avm/tools/runner/instance/entry.rb +43 -0
- data/sub/avm-tools/lib/avm/tools/runner/instance/info.rb +39 -0
- data/sub/avm-tools/lib/avm/tools/runner/instance/system.rb +65 -0
- data/sub/avm-tools/lib/avm/tools/runner/instance.rb +16 -0
- data/sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb +36 -0
- data/sub/avm-tools/lib/avm/tools/runner/launcher/projects.rb +40 -0
- data/sub/avm-tools/lib/avm/tools/runner/launcher/publish.rb +53 -0
- data/sub/avm-tools/lib/avm/tools/runner/launcher.rb +17 -0
- data/sub/avm-tools/lib/avm/tools/runner/launcher_stereotypes/list.rb +41 -0
- data/sub/avm-tools/lib/avm/tools/runner/launcher_stereotypes.rb +16 -0
- data/sub/avm-tools/lib/avm/tools/runner/self/docker.rb +14 -0
- data/sub/avm-tools/lib/avm/tools/runner/self/registry.rb +25 -0
- data/sub/avm-tools/lib/avm/tools/runner/self.rb +22 -0
- data/sub/avm-tools/lib/avm/tools/runner/source/auto_commit.rb +72 -0
- data/sub/avm-tools/lib/avm/tools/runner/source/info.rb +55 -0
- data/sub/avm-tools/lib/avm/tools/runner/source/issue/complete.rb +86 -0
- data/sub/avm-tools/lib/avm/tools/runner/source/issue/deliver.rb +35 -0
- data/sub/avm-tools/lib/avm/tools/runner/source/issue.rb +19 -0
- data/sub/avm-tools/lib/avm/tools/runner/source/sub/remove.rb +22 -0
- data/sub/avm-tools/lib/avm/tools/runner/source/sub.rb +29 -0
- data/sub/avm-tools/lib/avm/tools/runner/source/subs.rb +72 -0
- data/sub/avm-tools/lib/avm/tools/runner/source/test.rb +93 -0
- data/sub/avm-tools/lib/avm/tools/runner/source/update.rb +22 -0
- data/sub/avm-tools/lib/avm/tools/runner/source/version_bump.rb +81 -0
- data/sub/avm-tools/lib/avm/tools/runner/source.rb +18 -0
- data/sub/avm-tools/lib/avm/tools/runner/source_generate.rb +12 -0
- data/sub/avm-tools/lib/avm/tools/runner.rb +27 -0
- data/sub/avm-tools/lib/avm/tools/runner_with/include_exclude.rb +23 -0
- data/sub/avm-tools/lib/avm/tools/runner_with/instance_data_clear.rb +23 -0
- data/sub/avm-tools/lib/avm/tools/runner_with/instance_data_dump.rb +59 -0
- data/sub/avm-tools/lib/avm/tools/runner_with/instance_data_load.rb +69 -0
- data/sub/avm-tools/lib/avm/tools/runner_with/instance_data_performer.rb +40 -0
- data/sub/avm-tools/lib/avm/tools/runner_with.rb +11 -0
- data/sub/avm-tools/lib/avm/tools/self.rb +23 -0
- data/sub/avm-tools/lib/avm/tools/version.rb +7 -0
- data/sub/avm-tools/lib/avm/tools.rb +9 -0
- data/sub/avm-tools/lib/avm.rb +7 -0
- data/sub/avm-tools/spec/lib/avm/tools/runner/files/rotate_spec.rb +72 -0
- data/sub/avm-tools/spec/lib/avm/tools/runner/launcher_stereotypes/list_spec.rb +17 -0
- data/sub/avm-tools/spec/lib/avm/tools/runner/source/issue/complete_spec.rb +49 -0
- data/sub/avm-tools/spec/lib/avm/tools/runner_spec.rb +15 -0
- data/sub/avm-tools/spec/rubocop_spec.rb +3 -0
- data/sub/avm-tools/spec/spec_helper.rb +4 -0
- metadata +284 -25
- data/sub/avm/spec/spec_helper/launcher_context.rb +0 -75
- /data/sub/avm/{spec → template/avm/rspec/launcher_controller}/dummy/avm-tools_stub/avm-tools.gemspec +0 -0
- /data/sub/avm/{spec → template/avm/rspec/launcher_controller}/dummy/avm-tools_stub/lib/avm/tools/version.rb +0 -0
- /data/sub/avm/{spec → template/avm/rspec/launcher_controller}/dummy/avm-tools_stub/lib/avm/tools.rb +0 -0
- /data/sub/avm/{spec → template/avm/rspec/launcher_controller}/dummy/ruby_gem_stub/lib/ruby_gem_stub/version.rb +0 -0
- /data/sub/avm/{spec → template/avm/rspec/launcher_controller}/dummy/ruby_gem_stub/lib/ruby_gem_stub.rb +0 -0
- /data/sub/avm/{spec → template/avm/rspec/launcher_controller}/dummy/ruby_gem_stub/ruby_gem_stub.gemspec +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de8194475d2a078bd3d8330c6daec6558a2f568656cb4bfa000a751a1251a1d1
|
4
|
+
data.tar.gz: 71ab9f54e9a885e17755d774434d3ea7356dad44e5f49c6c2924808d3acf2042
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a72e472acc586fcce802c22507dcfd1e8f8d9dcbc524c2cdd091746cd9832c8d55a85a3ddbb5d05c345384070005bde49d86aa7826742ae6de54112de16133e
|
7
|
+
data.tar.gz: b403d2d290a763b6cd0b23432bb4d5fcd744c1491068442c7579335d8cb0b336bec2908888c5e885006d9583d044749e327c1654265f4d25d5eb8db343bf2f1c
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eac_tools (0.
|
5
|
-
avm (~> 0.
|
4
|
+
eac_tools (0.94.0)
|
5
|
+
avm (~> 0.94)
|
6
6
|
avm-eac_asciidoctor_base0 (~> 0.23)
|
7
7
|
avm-eac_generic_base0 (~> 0.13)
|
8
8
|
avm-eac_github_base0 (~> 0.3)
|
9
9
|
avm-eac_gitlab_base0 (~> 0.4)
|
10
10
|
avm-eac_latex_base0 (~> 0.3, >= 0.3.2)
|
11
|
-
avm-eac_php_base0 (~> 0.
|
11
|
+
avm-eac_php_base0 (~> 0.5)
|
12
12
|
avm-eac_postgresql_base0 (~> 0.5, >= 0.5.3)
|
13
13
|
avm-eac_python_base0 (~> 0.2, >= 0.2.2)
|
14
14
|
avm-eac_rails_base0 (~> 0.11, >= 0.11.1)
|
@@ -17,22 +17,52 @@ PATH
|
|
17
17
|
avm-eac_redmine_plugin_base0 (~> 0.4, >= 0.4.1)
|
18
18
|
avm-eac_ruby_base0 (~> 0.1)
|
19
19
|
avm-eac_ruby_base1 (~> 0.34, >= 0.34.1)
|
20
|
-
avm-eac_webapp_base0 (~> 0.
|
20
|
+
avm-eac_webapp_base0 (~> 0.20, >= 0.20.1)
|
21
21
|
avm-eac_wordpress_base0 (~> 0.3, >= 0.3.2)
|
22
|
-
avm-git (~> 0.
|
23
|
-
avm-tools (~> 0.
|
22
|
+
avm-git (~> 0.18)
|
23
|
+
avm-tools (~> 0.162)
|
24
|
+
eac_ruby_utils (~> 0.122)
|
25
|
+
|
26
|
+
PATH
|
27
|
+
remote: sub/avm-eac_webapp_base0
|
28
|
+
specs:
|
29
|
+
avm-eac_webapp_base0 (0.20.1)
|
30
|
+
avm (~> 0.94)
|
31
|
+
avm-eac_generic_base0 (~> 0.13)
|
32
|
+
avm-eac_postgresql_base0 (~> 0.5, >= 0.5.3)
|
33
|
+
avm-eac_ubuntu_base0 (~> 0.5, >= 0.5.1)
|
34
|
+
avm-files (~> 0.8)
|
35
|
+
eac_ruby_utils (~> 0.122)
|
36
|
+
htmlbeautifier (~> 1.4, >= 1.4.3)
|
37
|
+
|
38
|
+
PATH
|
39
|
+
remote: sub/avm-git
|
40
|
+
specs:
|
41
|
+
avm-git (0.18.0)
|
42
|
+
avm (~> 0.94)
|
43
|
+
avm-files (~> 0.8)
|
44
|
+
eac_git (~> 0.16)
|
24
45
|
eac_ruby_utils (~> 0.122)
|
46
|
+
git (~> 1.19, >= 1.19.1)
|
47
|
+
|
48
|
+
PATH
|
49
|
+
remote: sub/avm-tools
|
50
|
+
specs:
|
51
|
+
avm-tools (0.162.0)
|
52
|
+
avm (~> 0.94)
|
53
|
+
clipboard (~> 1.4, >= 1.4.1)
|
54
|
+
eac_ruby_base0 (~> 0.19)
|
25
55
|
|
26
56
|
PATH
|
27
57
|
remote: sub/avm
|
28
58
|
specs:
|
29
|
-
avm (0.
|
59
|
+
avm (0.94.0)
|
30
60
|
eac_cli (~> 0.42)
|
31
61
|
eac_config (~> 0.14, >= 0.14.2)
|
32
62
|
eac_docker (~> 0.7)
|
33
|
-
eac_fs (~> 0.
|
63
|
+
eac_fs (~> 0.18)
|
34
64
|
eac_ruby_utils (~> 0.122)
|
35
|
-
eac_templates (~> 0.7)
|
65
|
+
eac_templates (~> 0.7, >= 0.7.1)
|
36
66
|
minitar (~> 0.9)
|
37
67
|
ruby-progressbar (~> 1.13)
|
38
68
|
|
@@ -70,10 +100,10 @@ GEM
|
|
70
100
|
avm (~> 0.84, >= 0.84.2)
|
71
101
|
avm-eac_webapp_base0 (~> 0.18, >= 0.18.3)
|
72
102
|
eac_ruby_utils (~> 0.121)
|
73
|
-
avm-eac_php_base0 (0.
|
74
|
-
avm-eac_generic_base0 (~> 0.
|
75
|
-
avm-eac_webapp_base0 (~> 0.
|
76
|
-
eac_ruby_utils (~> 0.
|
103
|
+
avm-eac_php_base0 (0.5.0)
|
104
|
+
avm-eac_generic_base0 (~> 0.13)
|
105
|
+
avm-eac_webapp_base0 (~> 0.20)
|
106
|
+
eac_ruby_utils (~> 0.122)
|
77
107
|
avm-eac_postgresql_base0 (0.5.3)
|
78
108
|
avm (~> 0.85)
|
79
109
|
eac_ruby_utils (~> 0.121)
|
@@ -112,38 +142,20 @@ GEM
|
|
112
142
|
avm (~> 0.86, >= 0.86.2)
|
113
143
|
eac_ruby_utils (~> 0.121)
|
114
144
|
eac_templates (~> 0.5, >= 0.5.1)
|
115
|
-
avm-eac_webapp_base0 (0.19.0)
|
116
|
-
avm (~> 0.90)
|
117
|
-
avm-eac_generic_base0 (~> 0.13)
|
118
|
-
avm-eac_postgresql_base0 (~> 0.5, >= 0.5.3)
|
119
|
-
avm-eac_ubuntu_base0 (~> 0.5, >= 0.5.1)
|
120
|
-
avm-files (~> 0.7)
|
121
|
-
eac_ruby_utils (~> 0.121)
|
122
|
-
htmlbeautifier (~> 1.4, >= 1.4.3)
|
123
145
|
avm-eac_wordpress_base0 (0.3.2)
|
124
146
|
avm (~> 0.86, >= 0.86.2)
|
125
147
|
avm-eac_webapp_base0 (~> 0.18, >= 0.18.4)
|
126
148
|
eac_ruby_utils (~> 0.121)
|
127
|
-
avm-files (0.
|
128
|
-
avm (~> 0.
|
129
|
-
eac_cli (~> 0.
|
130
|
-
eac_fs (~> 0.
|
131
|
-
eac_ruby_utils (~> 0.
|
132
|
-
eac_templates (~> 0.
|
133
|
-
avm-git (0.17.0)
|
134
|
-
avm (~> 0.86, >= 0.86.1)
|
135
|
-
avm-files (~> 0.7)
|
136
|
-
eac_git (~> 0.16)
|
137
|
-
eac_ruby_utils (~> 0.121)
|
138
|
-
git (~> 1.19, >= 1.19.1)
|
139
|
-
avm-tools (0.161.0)
|
140
|
-
avm (~> 0.86, >= 0.86.1)
|
141
|
-
clipboard (~> 1.3, >= 1.3.6)
|
142
|
-
eac_ruby_base0 (~> 0.19)
|
149
|
+
avm-files (0.8.0)
|
150
|
+
avm (~> 0.93)
|
151
|
+
eac_cli (~> 0.42)
|
152
|
+
eac_fs (~> 0.18)
|
153
|
+
eac_ruby_utils (~> 0.122)
|
154
|
+
eac_templates (~> 0.7, >= 0.7.1)
|
143
155
|
base64 (0.2.0)
|
144
156
|
clipboard (1.4.1)
|
145
157
|
colorize (0.8.1)
|
146
|
-
concurrent-ruby (1.3.
|
158
|
+
concurrent-ruby (1.3.4)
|
147
159
|
content-type (0.0.2)
|
148
160
|
parslet (~> 2.0)
|
149
161
|
curb (0.9.11)
|
@@ -167,9 +179,9 @@ GEM
|
|
167
179
|
faraday-gzip (~> 0.1)
|
168
180
|
faraday-multipart (~> 1.0, >= 1.0.4)
|
169
181
|
faraday-retry (~> 2.2)
|
170
|
-
eac_fs (0.
|
182
|
+
eac_fs (0.18.0)
|
171
183
|
content-type (~> 0.0, >= 0.0.2)
|
172
|
-
eac_ruby_utils (~> 0.
|
184
|
+
eac_ruby_utils (~> 0.122)
|
173
185
|
ruby-filemagic (~> 0.7, >= 0.7.3)
|
174
186
|
eac_git (0.16.0)
|
175
187
|
eac_ruby_utils (~> 0.121)
|
@@ -195,7 +207,7 @@ GEM
|
|
195
207
|
bundler
|
196
208
|
filesize (~> 0.2)
|
197
209
|
net-ssh (~> 4.2)
|
198
|
-
eac_templates (0.7.
|
210
|
+
eac_templates (0.7.1)
|
199
211
|
eac_config (~> 0.14, >= 0.14.2)
|
200
212
|
eac_ruby_utils (~> 0.122)
|
201
213
|
faraday (2.8.1)
|
@@ -221,26 +233,26 @@ GEM
|
|
221
233
|
concurrent-ruby (~> 1.0)
|
222
234
|
json (2.7.2)
|
223
235
|
language_server-protocol (3.17.0.3)
|
224
|
-
minitar (0.
|
225
|
-
minitest (5.
|
236
|
+
minitar (0.12)
|
237
|
+
minitest (5.25.1)
|
226
238
|
multipart-post (2.4.1)
|
227
239
|
net-ssh (4.2.0)
|
228
240
|
os (1.1.4)
|
229
|
-
parallel (1.
|
241
|
+
parallel (1.26.3)
|
230
242
|
parseconfig (1.1.2)
|
231
|
-
parser (3.3.
|
243
|
+
parser (3.3.4.2)
|
232
244
|
ast (~> 2.4.1)
|
233
245
|
racc
|
234
246
|
parslet (2.0.0)
|
235
247
|
pastel (0.8.0)
|
236
248
|
tty-color (~> 0.5)
|
237
249
|
public_suffix (5.1.1)
|
238
|
-
racc (1.8.
|
239
|
-
rack (3.1.
|
250
|
+
racc (1.8.1)
|
251
|
+
rack (3.1.7)
|
240
252
|
rainbow (3.1.1)
|
241
253
|
rchardet (1.8.0)
|
242
254
|
regexp_parser (2.9.2)
|
243
|
-
rexml (3.3.
|
255
|
+
rexml (3.3.6)
|
244
256
|
strscan
|
245
257
|
rouge (3.30.0)
|
246
258
|
rspec (3.13.0)
|
@@ -249,25 +261,25 @@ GEM
|
|
249
261
|
rspec-mocks (~> 3.13.0)
|
250
262
|
rspec-core (3.13.0)
|
251
263
|
rspec-support (~> 3.13.0)
|
252
|
-
rspec-expectations (3.13.
|
264
|
+
rspec-expectations (3.13.2)
|
253
265
|
diff-lcs (>= 1.2.0, < 2.0)
|
254
266
|
rspec-support (~> 3.13.0)
|
255
267
|
rspec-mocks (3.13.1)
|
256
268
|
diff-lcs (>= 1.2.0, < 2.0)
|
257
269
|
rspec-support (~> 3.13.0)
|
258
270
|
rspec-support (3.13.1)
|
259
|
-
rubocop (1.
|
271
|
+
rubocop (1.65.1)
|
260
272
|
json (~> 2.3)
|
261
273
|
language_server-protocol (>= 3.17.0)
|
262
274
|
parallel (~> 1.10)
|
263
275
|
parser (>= 3.3.0.2)
|
264
276
|
rainbow (>= 2.2.2, < 4.0)
|
265
|
-
regexp_parser (>=
|
277
|
+
regexp_parser (>= 2.4, < 3.0)
|
266
278
|
rexml (>= 3.2.5, < 4.0)
|
267
279
|
rubocop-ast (>= 1.31.1, < 2.0)
|
268
280
|
ruby-progressbar (~> 1.7)
|
269
281
|
unicode-display_width (>= 2.4.0, < 3.0)
|
270
|
-
rubocop-ast (1.
|
282
|
+
rubocop-ast (1.32.1)
|
271
283
|
parser (>= 3.3.1.0)
|
272
284
|
rubocop-capybara (2.21.0)
|
273
285
|
rubocop (~> 1.41)
|
@@ -304,7 +316,7 @@ GEM
|
|
304
316
|
concurrent-ruby (~> 1.0)
|
305
317
|
unicode-display_width (2.5.0)
|
306
318
|
unicode_utils (1.4.0)
|
307
|
-
zeitwerk (2.6.
|
319
|
+
zeitwerk (2.6.17)
|
308
320
|
zlib (2.1.1)
|
309
321
|
|
310
322
|
PLATFORMS
|
@@ -312,6 +324,9 @@ PLATFORMS
|
|
312
324
|
|
313
325
|
DEPENDENCIES
|
314
326
|
avm!
|
327
|
+
avm-eac_webapp_base0!
|
328
|
+
avm-git!
|
329
|
+
avm-tools!
|
315
330
|
eac_ruby_gem_support (~> 0.10)
|
316
331
|
eac_tools!
|
317
332
|
|
data/lib/eac_tools/version.rb
CHANGED
data/sub/avm/avm.gemspec
CHANGED
@@ -10,15 +10,15 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.authors = ['Eduardo H. Bogoni']
|
11
11
|
s.summary = 'Ruby base library for Agora Vai! Methodology (https://avm.esquiloazul.tech).'
|
12
12
|
|
13
|
-
s.files = Dir['{lib,locale,template}
|
13
|
+
s.files = Dir['{lib,locale,template}/**/{*,.*}']
|
14
14
|
s.required_ruby_version = '>= 2.7'
|
15
15
|
|
16
16
|
s.add_dependency 'eac_cli', '~> 0.42'
|
17
17
|
s.add_dependency 'eac_config', '~> 0.14', '>= 0.14.2'
|
18
18
|
s.add_dependency 'eac_docker', '~> 0.7'
|
19
|
-
s.add_dependency 'eac_fs', '~> 0.
|
19
|
+
s.add_dependency 'eac_fs', '~> 0.18'
|
20
20
|
s.add_dependency 'eac_ruby_utils', '~> 0.122'
|
21
|
-
s.add_dependency 'eac_templates', '~> 0.7'
|
21
|
+
s.add_dependency 'eac_templates', '~> 0.7', '>= 0.7.1'
|
22
22
|
s.add_dependency 'minitar', '~> 0.9'
|
23
23
|
s.add_dependency 'ruby-progressbar', '~> 1.13'
|
24
24
|
|
@@ -78,11 +78,6 @@ module Avm
|
|
78
78
|
send("default_#{key}".underscore)
|
79
79
|
end
|
80
80
|
|
81
|
-
# @return [String]
|
82
|
-
def default_projects_root
|
83
|
-
'.'.to_pathname.expand_path.to_path
|
84
|
-
end
|
85
|
-
|
86
81
|
def default_settings_file
|
87
82
|
::File.join(::EacFs::Contexts.config.current.path, 'launcher.yaml')
|
88
83
|
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/launcher/context'
|
4
|
+
require 'eac_config/node'
|
5
|
+
require 'eac_ruby_utils/core_ext'
|
6
|
+
require 'fileutils'
|
7
|
+
require 'ruby-progressbar'
|
8
|
+
require 'tmpdir'
|
9
|
+
|
10
|
+
module Avm
|
11
|
+
module Rspec
|
12
|
+
class LauncherController
|
13
|
+
attr_accessor :remotes_dir
|
14
|
+
|
15
|
+
# @param application_id [String]
|
16
|
+
# @param path [Pathname]
|
17
|
+
# @return void
|
18
|
+
def application_source_path(application_id, path)
|
19
|
+
EacConfig::Node.context.current.entry("#{application_id}_dev.install.path").value =
|
20
|
+
path.to_pathname.to_path
|
21
|
+
end
|
22
|
+
|
23
|
+
# @param settings_path [Pathname]
|
24
|
+
# @param projects_root [Pathname]
|
25
|
+
def context_set(settings_path, projects_root)
|
26
|
+
Avm::Launcher::Context.current = Avm::Launcher::Context.new(
|
27
|
+
settings_file: settings_path.to_pathname.to_path,
|
28
|
+
cache_root: Dir.mktmpdir
|
29
|
+
)
|
30
|
+
self.projects_root = projects_root
|
31
|
+
end
|
32
|
+
|
33
|
+
# @return [Pathname]
|
34
|
+
def default_settings_path
|
35
|
+
templates_directory.join('settings.yml')
|
36
|
+
end
|
37
|
+
|
38
|
+
# @return [Pathname]
|
39
|
+
def dummy_directory
|
40
|
+
templates_directory.join('dummy')
|
41
|
+
end
|
42
|
+
|
43
|
+
# @param settings_path [Pathname]
|
44
|
+
def temp_context(settings_path)
|
45
|
+
context_set(settings_path, Dir.mktmpdir)
|
46
|
+
end
|
47
|
+
|
48
|
+
def init_remote(name)
|
49
|
+
require 'avm/git/launcher/base'
|
50
|
+
r = Avm::Git::Launcher::Base.new(File.join(remotes_dir, name))
|
51
|
+
r.init_bare
|
52
|
+
r
|
53
|
+
end
|
54
|
+
|
55
|
+
def init_git(subdir)
|
56
|
+
require 'avm/git/launcher/base'
|
57
|
+
r = Avm::Git::Launcher::Base.new(File.join(projects_root, subdir))
|
58
|
+
r.git
|
59
|
+
r.execute!('config', 'user.email', 'theuser@example.net')
|
60
|
+
r.execute!('config', 'user.name', 'The User')
|
61
|
+
r
|
62
|
+
end
|
63
|
+
|
64
|
+
# @return [Avm::Launcher::Context]
|
65
|
+
def new_context
|
66
|
+
Avm::Launcher::Context.new(
|
67
|
+
settings_file: default_settings_path,
|
68
|
+
cache_root: Dir.mktmpdir
|
69
|
+
)
|
70
|
+
end
|
71
|
+
|
72
|
+
# @param path [String]
|
73
|
+
def projects_root
|
74
|
+
@projects_root ||= Dir.mktmpdir
|
75
|
+
end
|
76
|
+
|
77
|
+
# @param path [Pathname]
|
78
|
+
def projects_root=(path)
|
79
|
+
@projects_root = path.to_pathname.to_path
|
80
|
+
end
|
81
|
+
|
82
|
+
# @return [Pathname]
|
83
|
+
def templates_directory
|
84
|
+
'../../../template/avm/rspec/launcher_controller'.to_pathname.expand_path(__dir__)
|
85
|
+
end
|
86
|
+
|
87
|
+
def touch_commit(repos, subpath)
|
88
|
+
require 'fileutils'
|
89
|
+
FileUtils.mkdir_p(File.dirname(repos.subpath(subpath)))
|
90
|
+
FileUtils.touch(repos.subpath(subpath))
|
91
|
+
repos.execute!('add', repos.subpath(subpath))
|
92
|
+
repos.execute!('commit', '-m', subpath)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -9,7 +9,7 @@ module Avm
|
|
9
9
|
require_sub __FILE__
|
10
10
|
EXAMPLES = %w[avm_file_formats_with_fixtures avm_file_format_file_resource_name
|
11
11
|
avm_source_generated entries_values in_avm_registry not_in_avm_registry
|
12
|
-
with_config].freeze
|
12
|
+
with_config with_launcher].freeze
|
13
13
|
|
14
14
|
def self.extended(obj)
|
15
15
|
obj.setup_examples
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/rspec/launcher_controller'
|
4
|
+
|
5
|
+
RSpec.shared_context 'with_launcher' do
|
6
|
+
let(:launcher_controller) { Avm::Rspec::LauncherController.new }
|
7
|
+
|
8
|
+
before do
|
9
|
+
Avm::Launcher::Context.current = launcher_controller.new_context
|
10
|
+
launcher_controller.remotes_dir = Dir.mktmpdir
|
11
|
+
allow(ProgressBar).to receive(:create).and_return(double.as_null_object)
|
12
|
+
end
|
13
|
+
|
14
|
+
delegate :application_source_path, :context_set, :init_git, :init_remote, :temp_context,
|
15
|
+
:projects_root, :projects_root=, :touch_commit, to: :launcher_controller
|
16
|
+
end
|
data/sub/avm/lib/avm/version.rb
CHANGED
@@ -4,13 +4,13 @@ require 'avm/launcher/context'
|
|
4
4
|
require 'avm/launcher/stereotype'
|
5
5
|
|
6
6
|
RSpec.describe Avm::Launcher::Context do
|
7
|
-
include_context '
|
7
|
+
include_context 'with_launcher'
|
8
8
|
include_examples 'with_config', __FILE__
|
9
9
|
|
10
10
|
describe '#instances' do
|
11
11
|
before do
|
12
12
|
%w[avm-tools_stub ruby_gem_stub].each do |id|
|
13
|
-
application_source_path(id,
|
13
|
+
application_source_path(id, launcher_controller.dummy_directory.join(id))
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
@@ -4,12 +4,12 @@ require 'avm/launcher/context'
|
|
4
4
|
require 'avm/launcher/instances/base'
|
5
5
|
|
6
6
|
RSpec.describe Avm::Launcher::Instances::Base do
|
7
|
-
include_context '
|
7
|
+
include_context 'with_launcher'
|
8
8
|
let(:fixtures_dir) { __dir__.to_pathname.join('base_spec_files') }
|
9
9
|
|
10
10
|
before do
|
11
11
|
allow(ProgressBar).to receive(:create).and_return(double.as_null_object)
|
12
|
-
context_set(fixtures_dir.join('settings.yaml').to_path,
|
12
|
+
context_set(fixtures_dir.join('settings.yaml').to_path, launcher_controller.dummy_directory)
|
13
13
|
%w[avm-tools_stub ruby_gem_stub].each do |id|
|
14
14
|
application_source_path(id, File.join(projects_root, id))
|
15
15
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
--- {}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path('lib', __dir__)
|
4
|
+
|
5
|
+
require 'avm/eac_webapp_base0/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = 'avm-eac_webapp_base0'
|
9
|
+
s.version = Avm::EacWebappBase0::VERSION
|
10
|
+
s.authors = ['Put here the authors']
|
11
|
+
s.summary = 'Put here de description.'
|
12
|
+
|
13
|
+
s.files = Dir['{lib,template}/**/{*,.*}']
|
14
|
+
s.required_ruby_version = '>= 2.7'
|
15
|
+
|
16
|
+
s.add_dependency 'avm', '~> 0.94'
|
17
|
+
s.add_dependency 'avm-eac_generic_base0', '~> 0.13'
|
18
|
+
s.add_dependency 'avm-eac_postgresql_base0', '~> 0.5', '>= 0.5.3'
|
19
|
+
s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.5', '>= 0.5.1'
|
20
|
+
s.add_dependency 'avm-files', '~> 0.8'
|
21
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.122'
|
22
|
+
s.add_dependency 'htmlbeautifier', '~> 1.4', '>= 1.4.3'
|
23
|
+
|
24
|
+
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.10'
|
25
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
require 'eac_ruby_utils/envs'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacWebappBase0
|
8
|
+
module Executables
|
9
|
+
class << self
|
10
|
+
enable_simple_cache
|
11
|
+
|
12
|
+
def env
|
13
|
+
::EacRubyUtils::Envs.local
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
%w[cssbeautify-cli js-beautify tidy].each do |program|
|
19
|
+
define_method("#{program.underscore}_uncached") do
|
20
|
+
env.executable(program, '--version')
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_generic_base0/file_formats/base'
|
4
|
+
require 'avm/eac_webapp_base0/executables'
|
5
|
+
require 'eac_ruby_utils/core_ext'
|
6
|
+
|
7
|
+
module Avm
|
8
|
+
module EacWebappBase0
|
9
|
+
module FileFormats
|
10
|
+
class Css < ::Avm::EacGenericBase0::FileFormats::Base
|
11
|
+
class FileApply
|
12
|
+
EXECUTABLE_NAME = 'cssbeautify-cli'
|
13
|
+
EXECUTABLE_CHECK_ARGS = ['--version'].freeze
|
14
|
+
EXECUTABLE_STATIC_ARGS = ['--autosemicolon', '--indent', ' ', '--openbrace',
|
15
|
+
'end-of-line', '--stdin'].freeze
|
16
|
+
|
17
|
+
common_constructor :file
|
18
|
+
|
19
|
+
def perform
|
20
|
+
on_temp_output_file do |_temp_file|
|
21
|
+
run_command
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
private
|
26
|
+
|
27
|
+
attr_accessor :output_file
|
28
|
+
|
29
|
+
def command
|
30
|
+
::Avm::EacWebappBase0::Executables.cssbeautify_cli.command(*EXECUTABLE_STATIC_ARGS)
|
31
|
+
end
|
32
|
+
|
33
|
+
def on_temp_output_file
|
34
|
+
::EacRubyUtils::Fs::Temp.on_file do |temp_output_file|
|
35
|
+
self.output_file = temp_output_file
|
36
|
+
yield
|
37
|
+
::FileUtils.mv(temp_output_file.to_path, file)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
def run_command
|
42
|
+
command.system!(input_file: file, output_file: output_file.to_path)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_generic_base0/file_formats/base'
|
4
|
+
require 'eac_ruby_utils/envs'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacWebappBase0
|
8
|
+
module FileFormats
|
9
|
+
class Css < ::Avm::EacGenericBase0::FileFormats::Base
|
10
|
+
require_sub __FILE__
|
11
|
+
|
12
|
+
VALID_BASENAMES = %w[*.css *.scss].freeze
|
13
|
+
VALID_TYPES = [].freeze
|
14
|
+
|
15
|
+
def file_apply(file)
|
16
|
+
::Avm::EacWebappBase0::FileFormats::Css::FileApply.new(file).perform
|
17
|
+
super
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_generic_base0/file_formats/base'
|
4
|
+
require 'htmlbeautifier'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacWebappBase0
|
8
|
+
module FileFormats
|
9
|
+
class Html < ::Avm::EacGenericBase0::FileFormats::Base
|
10
|
+
VALID_BASENAMES = %w[*.html *.html.erb].freeze
|
11
|
+
VALID_TYPES = [].freeze
|
12
|
+
|
13
|
+
def file_apply(path)
|
14
|
+
input = ::File.read(path)
|
15
|
+
temppath = tempfile_path
|
16
|
+
::File.open(temppath, 'w') do |output|
|
17
|
+
beautify path, input, output
|
18
|
+
end
|
19
|
+
::FileUtils.mv(temppath, path)
|
20
|
+
super
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
def beautify(name, input, output)
|
26
|
+
output.puts ::HtmlBeautifier.beautify(input, htmlbeautify_options)
|
27
|
+
rescue StandardError => e
|
28
|
+
raise "Error parsing #{name}: #{e}"
|
29
|
+
end
|
30
|
+
|
31
|
+
def htmlbeautify_options
|
32
|
+
@htmlbeautify_options ||= { indent: ' ' }
|
33
|
+
end
|
34
|
+
|
35
|
+
def tempfile_path
|
36
|
+
tempfile = ::Tempfile.new
|
37
|
+
tempfile.close
|
38
|
+
tempfile.path
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|