avm-tools 0.52.0 → 0.55.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -3
- data/lib/avm/files/formatter.rb +1 -1
- data/lib/avm/git/commit.rb +3 -4
- data/lib/avm/git/commit/class_methods.rb +31 -0
- data/lib/avm/git/commit/deploy.rb +5 -51
- data/lib/avm/git/commit/deploy/appended.rb +37 -0
- data/lib/avm/git/commit/deploy/appended/base.rb +17 -0
- data/lib/avm/git/commit/deploy/appended/directory.rb +32 -0
- data/lib/avm/git/commit/deploy/appended/file_content.rb +28 -0
- data/lib/avm/git/commit/deploy_methods.rb +19 -0
- data/lib/avm/git/issue/complete/_commits.rb +1 -4
- data/lib/avm/git/issue/complete/_git_subrepos.rb +20 -0
- data/lib/avm/git/issue/complete/_local_branch.rb +4 -7
- data/lib/avm/git/issue/complete/_push.rb +1 -1
- data/lib/avm/git/issue/complete/_validations.rb +1 -0
- data/lib/avm/git/issue/complete/_working_tree.rb +5 -2
- data/lib/avm/git/subrepo_check.rb +39 -0
- data/lib/avm/git/subrepo_check/parent.rb +51 -0
- data/lib/avm/git/subrepo_check/remote.rb +89 -0
- data/lib/avm/git/subrepo_check/show_result.rb +33 -0
- data/lib/avm/git/subrepo_checks.rb +59 -0
- data/lib/avm/result.rb +13 -3
- data/lib/avm/stereotypes/eac_webapp_base0/deploy.rb +7 -46
- data/lib/avm/stereotypes/eac_webapp_base0/deploy/appended_directories.rb +27 -0
- data/lib/avm/stereotypes/eac_webapp_base0/deploy/file_unit.rb +1 -1
- data/lib/avm/stereotypes/eac_webapp_base0/deploy/git_info.rb +51 -0
- data/lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb +22 -0
- data/lib/avm/tools/runner/git/subrepo.rb +22 -0
- data/lib/avm/tools/runner/git/subrepo/check.rb +51 -0
- data/lib/avm/tools/version.rb +1 -1
- data/lib/eac_launcher.rb +0 -3
- data/lib/eac_launcher/git/base.rb +10 -26
- data/lib/eac_launcher/git/base/underlying.rb +11 -9
- data/vendor/gems/eac_git/Gemfile +5 -0
- data/vendor/gems/eac_git/eac_git.gemspec +19 -0
- data/vendor/gems/eac_git/lib/eac_git.rb +7 -0
- data/vendor/gems/eac_git/lib/eac_git/executables.rb +44 -0
- data/vendor/gems/eac_git/lib/eac_git/local.rb +57 -0
- data/vendor/gems/eac_git/lib/eac_git/local/subrepo.rb +48 -0
- data/vendor/gems/eac_git/lib/eac_git/local/subrepo/config.rb +43 -0
- data/vendor/gems/eac_git/lib/eac_git/remote.rb +19 -0
- data/vendor/gems/eac_git/lib/eac_git/remote/ls_result.rb +20 -0
- data/vendor/gems/eac_git/lib/eac_git/rspec.rb +17 -0
- data/vendor/gems/eac_git/lib/eac_git/version.rb +5 -0
- data/vendor/gems/eac_git/spec/lib/eac_git/executables_spec.rb +13 -0
- data/vendor/gems/eac_git/spec/rubocop_spec.rb +7 -0
- data/vendor/gems/eac_git/spec/spec_helper.rb +103 -0
- data/vendor/gems/eac_git/vendor/git-subrepo/Changes +110 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/Intro.pod +7 -6
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/License +1 -1
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/Makefile +9 -7
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/Meta +4 -4
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ReadMe.pod +15 -12
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/doc/comparison.swim +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/doc/git-subrepo.swim +6 -9
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/doc/intro-to-subrepo.swim +4 -4
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/bashplus/Changes +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/bashplus/License +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/bashplus/Makefile +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/bashplus/Meta +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/bashplus/ReadMe.pod +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/bashplus/bin/bash+ +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/bashplus/doc/bash+.swim +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/bashplus/lib/bash+.bash +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/bashplus/man/man1/bash+.1 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/bashplus/man/man3/bash+.3 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/bashplus/test/base.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/bashplus/test/fcopy.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/bashplus/test/lib/foo/bar.bash +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/bashplus/test/lib/foo/foo.bash +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/bashplus/test/source-bash+-std.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/bashplus/test/source-bash+.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/bashplus/test/test.bash +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/bashplus/test/use.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/Changes +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/License +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/Makefile +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/Meta +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ReadMe.pod +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/doc/test-more.swim +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/bashplus/Changes +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/bashplus/License +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/bashplus/Makefile +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/bashplus/Meta +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/bashplus/ReadMe.pod +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/bashplus/bin/bash+ +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/bashplus/doc/bash+.swim +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/bashplus/lib/bash+.bash +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/bashplus/man/man1/bash+.1 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/bashplus/man/man3/bash+.3 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/bashplus/test/base.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/bashplus/test/fcopy.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/bashplus/test/lib/foo/bar.bash +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/bashplus/test/lib/foo/foo.bash +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/bashplus/test/source-bash+-std.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/bashplus/test/source-bash+.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/bashplus/test/test.bash +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/bashplus/test/use.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/Changes +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/License +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/Makefile +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/Meta +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/ReadMe.pod +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/doc/test-tap.swim +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/lib/test/tap.bash +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/man/man3/test-tap.3 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/test/bail_out.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/test/done.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/test/fail.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/test/fail_fast.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/test/helper.bash +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/test/pass.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/test/plan.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/test/skip_all.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/test/tap.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/test/test/bail.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/test/test/fail.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/test/test/fail_fast.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/test/test/skip-all-init.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/ext/test-tap-bash/test/test/skip-all-plan.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/lib/test/more.bash +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/man/man3/test-more.3 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/test/fail.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/test/more.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/test/pass.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/test/setup +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/test/skip_all.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/test/test/fail1.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/ext/test-more-bash/test/test/skip_all.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/lib/git-subrepo +30 -20
- data/vendor/gems/eac_git/vendor/git-subrepo/lib/git-subrepo.d/bash+.bash +1 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/lib/git-subrepo.d/help-functions.bash +1 -5
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/man/man1/git-subrepo.1 +18 -21
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/0.4.0 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/AllGitCmds +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/Cases +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/Commands +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/Dags +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/Gists +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/Links +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/Plugins +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/Spec +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/Story1 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/ToDo +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/design.swim +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/design2.swim +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/init-test +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/pull-dance.txt +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/recreate-rebase-conflict.sh +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/subtree-rebase-fail-example/test.bash +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/test-subrepo-push.sh +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/note/test.sh +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/pkg/bin/generate-completion.pl +1 -1
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/pkg/bin/generate-help-functions.pl +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/share/completion.bash +3 -3
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/share/enable-completion.sh +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/share/git-completion.bash +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/share/zsh-completion/_git-subrepo +3 -4
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/branch-all.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/branch-rev-list-one-path.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/branch-rev-list.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/branch.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/clean.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/clone-annotated-tag.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/clone.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/compile.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/config.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/encode.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/error.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/fetch.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/gitignore.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/init.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/issue29.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/issue95.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/issue96.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/pull-all.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/pull-merge.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/pull-message.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/pull-new-branch.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/pull-ours.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/pull-theirs.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/pull-twice.t +0 -0
- data/vendor/gems/eac_git/vendor/git-subrepo/test/pull-worktree.t +40 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/pull.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/push-after-init.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/push-force.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/push-new-branch.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/push-no-changes.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/push-squash.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/push.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/reclone.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/bar/HEAD +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/bar/config +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/bar/objects/1f/0c4b264caed0126814a0ede851a1e0b4e16ae6 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/bar/objects/87/46903fdb1b9c2101377880125917c2e05b4d69 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/bar/objects/94/c86ffc745232d89f78c6f895e11e71272518db +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/bar/objects/c6/76c57b6576743fa56278527aa60ebd2e202a7c +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/bar/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/bar/objects/f6/2a8ff3feadf39b0a98f1a86ec6d1eb33858ee9 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/bar/refs/heads/master +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/bar/refs/tags/A +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/foo/HEAD +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/foo/config +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/foo/objects/a0/f4cdaaf533a936296cdebbed8206c3b9ededa8 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/foo/objects/e2/1291a1ad392a9d4c51dd9586804f1467b28afd +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/foo/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/foo/refs/heads/master +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/HEAD +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/config +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/11/523f5dcf03b4c89b592dc8a3d0308f68da2386 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/14/2addf8ec5f37334e837440122c62f2c68a29ad +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/32/5180321750a21cd7a4e7ecda319e557a4f6a09 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/3d/918c6901c02f43af5d31779dd5e1f9166aeb36 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/3e/4cb596066dce63ba4d047abddb677389b65e19 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/4b/6e53022e7a04f07887697e4f3d7c377fd9822b +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/58/931fc1bd559b59c41ea738fc7ad04f9ad01bd3 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/5e/c0c28e1b806f25efdca18fcf7a74b49c3755bd +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/75/fa6584e748f57eff06eebdc55e9ac21d4fcbf2 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/80/2d5edbd5e1cb7fca82b5bd38e7c8a0a496fb20 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/94/7b3d714c38791e95ad6f928b48c98bb8708acd +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/95/e1f2df3f4d5f3d7a60588c25a7ca8a913d3c2a +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/b1/5f4a7666baf40d949548ead946a3370e273479 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/c3/ee8978c4c5d84c3b7d00ba8e5906933d027882 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/c8/b0bffbc405ef3fad7354ff833fbec36d67ddfa +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/dd/8bdb934ec848137f011fe423b185505c343626 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/e2/9be58c767cfeb27235c995d293a7d71aac0135 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/ee/1224401fc6aac595145fa727dcf6706ac8aec1 +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/objects/f1/cc1a657b2e805c400f5dcaaa76bd29c6178b1b +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/repo/init/refs/heads/master +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/setup +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/status.t +0 -0
- data/vendor/{git-subrepo → gems/eac_git/vendor/git-subrepo}/test/submodule.t +0 -0
- data/vendor/gems/eac_ruby_utils/lib/eac_ruby_utils/envs/command.rb +1 -0
- data/vendor/gems/eac_ruby_utils/lib/eac_ruby_utils/envs/command/extra_options.rb +8 -0
- data/vendor/gems/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb +32 -5
- data/vendor/gems/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- metadata +234 -188
- data/lib/avm/stereotypes/eac_webapp_base0/deploy/_appended_directories.rb +0 -25
- data/vendor/git-subrepo/Changes +0 -51
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/result'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module Git
|
8
|
+
class SubrepoCheck
|
9
|
+
module Parent
|
10
|
+
def fix_parent
|
11
|
+
return if parent_result.success?
|
12
|
+
|
13
|
+
info(' Fixing...')
|
14
|
+
self.parent_hash = expected_parent_hash
|
15
|
+
info_banner
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def expected_parent_hash_uncached
|
21
|
+
subrepo.local.rev_parse("#{last_file_change_rev}^")
|
22
|
+
end
|
23
|
+
|
24
|
+
def last_file_change_rev
|
25
|
+
subrepo.local.command('log', '-n', '1', '--pretty=format:%H', '--',
|
26
|
+
subrepo.config_relative_path.to_path).execute!.strip
|
27
|
+
end
|
28
|
+
|
29
|
+
def parent_hash
|
30
|
+
subrepo.parent_commit_id
|
31
|
+
end
|
32
|
+
|
33
|
+
def parent_hash=(new_hash)
|
34
|
+
subrepo.config.parent_commit_id = new_hash
|
35
|
+
subrepo.write_config
|
36
|
+
end
|
37
|
+
|
38
|
+
def parent_hash_ok?
|
39
|
+
return false if expected_parent_hash.blank? || parent_hash.blank?
|
40
|
+
|
41
|
+
expected_parent_hash == parent_hash
|
42
|
+
end
|
43
|
+
|
44
|
+
def parent_result_uncached
|
45
|
+
::Avm::Result.success_or_error(parent_hash_ok?,
|
46
|
+
parent_hash.presence || blank_text)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/result'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module Git
|
8
|
+
class SubrepoCheck
|
9
|
+
module Remote
|
10
|
+
private
|
11
|
+
|
12
|
+
def fetch_uncached
|
13
|
+
subrepo.command('clean').execute!
|
14
|
+
subrepo.command('fetch').execute!
|
15
|
+
end
|
16
|
+
|
17
|
+
def check_remote_disabled?
|
18
|
+
!check_remote?
|
19
|
+
end
|
20
|
+
|
21
|
+
def check_remote_disabled_result
|
22
|
+
::Avm::Result.neutral('Check remote disabled')
|
23
|
+
end
|
24
|
+
|
25
|
+
def local_descend_remote?
|
26
|
+
local_id.present? && remote_id.present? && subrepo.local.descendant?(local_id, remote_id)
|
27
|
+
end
|
28
|
+
|
29
|
+
def local_descend_remote_result
|
30
|
+
::Avm::Result.pending(remote_result_value)
|
31
|
+
end
|
32
|
+
|
33
|
+
def local_id_uncached
|
34
|
+
fetch
|
35
|
+
subrepo.command('branch', '--force').execute!
|
36
|
+
subrepo.local.rev_parse("subrepo/#{subrepo.subpath}")
|
37
|
+
end
|
38
|
+
|
39
|
+
def remote_descend_local?
|
40
|
+
local_id.present? && remote_id.present? && subrepo.local.descendant?(remote_id, local_id)
|
41
|
+
end
|
42
|
+
|
43
|
+
def remote_descend_local_result
|
44
|
+
::Avm::Result.outdated(remote_result_value)
|
45
|
+
end
|
46
|
+
|
47
|
+
def remote_branches
|
48
|
+
['', 'refs/heads/', 'refs/tags/'].map { |prefix| "#{prefix}#{subrepo.remote_branch}" }
|
49
|
+
end
|
50
|
+
|
51
|
+
def remote_id_uncached
|
52
|
+
ls_result = subrepo.remote.ls
|
53
|
+
remote_branches.each do |b|
|
54
|
+
return ls_result[b] if ls_result[b].present?
|
55
|
+
end
|
56
|
+
nil
|
57
|
+
end
|
58
|
+
|
59
|
+
def remote_result_uncached
|
60
|
+
%w[check_remote_disabled same_ids local_descend_remote remote_descend_local]
|
61
|
+
.each do |condition|
|
62
|
+
return send("#{condition}_result") if send("#{condition}?")
|
63
|
+
end
|
64
|
+
|
65
|
+
::Avm::Result.error(remote_result_value)
|
66
|
+
end
|
67
|
+
|
68
|
+
def remote_result_value
|
69
|
+
local_s = local_id.presence || blank_text
|
70
|
+
remote_s = remote_id.presence || blank_text
|
71
|
+
|
72
|
+
if local_s == remote_s
|
73
|
+
"[L/R=#{local_s}]"
|
74
|
+
else
|
75
|
+
"[L=#{local_s}, R=#{remote_s}]"
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
def same_ids?
|
80
|
+
local_id.present? && remote_id.present? && local_id == remote_id
|
81
|
+
end
|
82
|
+
|
83
|
+
def same_ids_result
|
84
|
+
::Avm::Result.success(remote_result_value)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_launcher/git/base'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module Git
|
8
|
+
class SubrepoCheck
|
9
|
+
module ShowResult
|
10
|
+
def show_result
|
11
|
+
out(subrepo.subpath.to_path.cyan)
|
12
|
+
out_attr('parent', parent_result.label)
|
13
|
+
run_fix_parent
|
14
|
+
out_attr('remote', remote_result.label)
|
15
|
+
out("\n")
|
16
|
+
end
|
17
|
+
|
18
|
+
def run_fix_parent
|
19
|
+
return unless fix_parent?
|
20
|
+
return unless parent_result.error?
|
21
|
+
|
22
|
+
out('|Fixing...'.white)
|
23
|
+
self.parent_hash = expected_parent_hash
|
24
|
+
out_attr('new parent', parent_result.label)
|
25
|
+
end
|
26
|
+
|
27
|
+
def out_attr(key, value)
|
28
|
+
out('|' + "#{key}=".white + value)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_launcher/git/base'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module Git
|
8
|
+
class SubrepoChecks
|
9
|
+
enable_console_speaker
|
10
|
+
enable_simple_cache
|
11
|
+
attr_accessor :check_remote, :fix_parent
|
12
|
+
common_constructor :repository
|
13
|
+
|
14
|
+
def add_all_subrepos
|
15
|
+
add_subrepos(
|
16
|
+
*repository.command('subrepo', '-q', 'status').execute!.split("\n").map(&:strip)
|
17
|
+
.select(&:present?)
|
18
|
+
)
|
19
|
+
end
|
20
|
+
|
21
|
+
def add_subrepos(*subpath_list)
|
22
|
+
subpath_list.each do |subpath|
|
23
|
+
subpaths.add(subpath)
|
24
|
+
end
|
25
|
+
reset_cache
|
26
|
+
self
|
27
|
+
end
|
28
|
+
|
29
|
+
def check_options
|
30
|
+
{ fix_parent: fix_parent, check_remote: check_remote }
|
31
|
+
end
|
32
|
+
|
33
|
+
def show_result
|
34
|
+
checks.each(&:show_result)
|
35
|
+
infov 'Result', result.label
|
36
|
+
end
|
37
|
+
|
38
|
+
private
|
39
|
+
|
40
|
+
def checks_uncached
|
41
|
+
subpaths.map do |subpath|
|
42
|
+
::Avm::Git::SubrepoCheck.new(repository.subrepo(subpath), check_options)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def result_uncached
|
47
|
+
error_count = checks.count { |check| check.result.error? }
|
48
|
+
::Avm::Result.success_or_error(
|
49
|
+
error_count.zero?,
|
50
|
+
"#{error_count} of #{checks.count} subrepos failed"
|
51
|
+
)
|
52
|
+
end
|
53
|
+
|
54
|
+
def subpaths
|
55
|
+
@subpaths ||= ::Set.new
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
data/lib/avm/result.rb
CHANGED
@@ -2,12 +2,13 @@
|
|
2
2
|
|
3
3
|
require 'colorized_string'
|
4
4
|
require 'eac_ruby_utils/listable'
|
5
|
+
require 'eac_ruby_utils/core_ext'
|
5
6
|
|
6
7
|
module Avm
|
7
8
|
class Result < ::SimpleDelegator
|
8
9
|
include ::EacRubyUtils::Listable
|
9
10
|
|
10
|
-
lists.add_string :type, :success, :error, :neutral
|
11
|
+
lists.add_string :type, :success, :error, :neutral, :pending, :outdated
|
11
12
|
|
12
13
|
lists.type.values.each do |type| # rubocop:disable Style/HashEachMethods
|
13
14
|
class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
|
@@ -20,10 +21,19 @@ module Avm
|
|
20
21
|
TYPE_SUCCESS_COLOR = 'green'
|
21
22
|
TYPE_ERROR_COLOR = 'red'
|
22
23
|
TYPE_NEUTRAL_COLOR = 'light_black'
|
24
|
+
TYPE_PENDING_COLOR = 'yellow'
|
25
|
+
TYPE_OUTDATED_COLOR = 'blue'
|
23
26
|
|
24
27
|
class << self
|
25
|
-
|
26
|
-
|
28
|
+
# Return Avm::Result.success(success_value) if +success+ is truthy.
|
29
|
+
# Return Avm::Result.error(error_value || success_value) if +success+ is falsely.
|
30
|
+
# @return [Avm::Result]
|
31
|
+
def success_or_error(success, success_value, error_value = nil)
|
32
|
+
if success
|
33
|
+
self.success(success_value)
|
34
|
+
else
|
35
|
+
error(error_value.presence || success_value)
|
36
|
+
end
|
27
37
|
end
|
28
38
|
end
|
29
39
|
|
@@ -12,10 +12,9 @@ module Avm
|
|
12
12
|
module Stereotypes
|
13
13
|
module EacWebappBase0
|
14
14
|
class Deploy
|
15
|
+
require_sub __FILE__, include_modules: true
|
15
16
|
include ::ActiveSupport::Callbacks
|
16
17
|
|
17
|
-
require_relative 'deploy/_appended_directories'
|
18
|
-
|
19
18
|
DEFAULT_REFERENCE = 'HEAD'
|
20
19
|
|
21
20
|
enable_console_speaker
|
@@ -61,18 +60,16 @@ module Avm
|
|
61
60
|
|
62
61
|
def git_deploy
|
63
62
|
infom 'Deploying source code and appended content...'
|
64
|
-
build_git_commit
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
def git_reference
|
70
|
-
options[:reference] || DEFAULT_REFERENCE
|
63
|
+
build_git_commit
|
64
|
+
.append_directory(template.path)
|
65
|
+
.append_directories(appended_directories)
|
66
|
+
.append_file_content(VERSION_TARGET_PATH, version)
|
67
|
+
.run
|
71
68
|
end
|
72
69
|
|
73
70
|
def setup_files_units
|
74
71
|
instance.class.const_get('FILES_UNITS').each do |data_key, fs_path_subpath|
|
75
|
-
|
72
|
+
FileUnit.new(self, data_key, fs_path_subpath).run
|
76
73
|
end
|
77
74
|
end
|
78
75
|
|
@@ -89,42 +86,10 @@ module Avm
|
|
89
86
|
fatal_error "Request to #{uri} failed" unless response.code.to_i == 200
|
90
87
|
end
|
91
88
|
|
92
|
-
def commit_sha1_uncached
|
93
|
-
git_fetch
|
94
|
-
r = git.rev_parse(git_reference_found)
|
95
|
-
return r if r
|
96
|
-
|
97
|
-
raise ::Avm::Result::Error, "No commit SHA1 found for \"#{git_reference_found}\""
|
98
|
-
end
|
99
|
-
|
100
|
-
def git_reference_found_uncached
|
101
|
-
%w[git_reference instance_branch master_branch].map { |b| send(b) }.find(&:present?) ||
|
102
|
-
raise(
|
103
|
-
::Avm::Result::Error,
|
104
|
-
'No git reference found (Searched for option, instance and master)'
|
105
|
-
)
|
106
|
-
end
|
107
|
-
|
108
89
|
def git_uncached
|
109
90
|
::EacLauncher::Git::Base.new(git_repository_path)
|
110
91
|
end
|
111
92
|
|
112
|
-
def instance_branch
|
113
|
-
remote_branch(instance.id)
|
114
|
-
end
|
115
|
-
|
116
|
-
def master_branch
|
117
|
-
remote_branch('master')
|
118
|
-
end
|
119
|
-
|
120
|
-
def git_remote_name
|
121
|
-
::Avm::Git::DEFAULT_REMOTE_NAME
|
122
|
-
end
|
123
|
-
|
124
|
-
def git_remote_hashs_uncached
|
125
|
-
git.remote_hashs(git_remote_name)
|
126
|
-
end
|
127
|
-
|
128
93
|
def git_fetch_uncached
|
129
94
|
infom "Fetching remote \"#{git_remote_name}\" from \"#{git_repository_path}\"..."
|
130
95
|
git.fetch(git_remote_name)
|
@@ -133,10 +98,6 @@ module Avm
|
|
133
98
|
def git_repository_path
|
134
99
|
instance.source_instance.read_entry(:fs_path)
|
135
100
|
end
|
136
|
-
|
137
|
-
def remote_branch(name)
|
138
|
-
git_remote_hashs.key?("refs/heads/#{name}") ? "#{git_remote_name}/#{name}" : nil
|
139
|
-
end
|
140
101
|
end
|
141
102
|
end
|
142
103
|
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/path_string'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module Stereotypes
|
7
|
+
module EacWebappBase0
|
8
|
+
class Deploy
|
9
|
+
module AppendedDirectories
|
10
|
+
APPENDED_DIRECTORIES_ENTRY_KEY = 'deploy.appended_directories'
|
11
|
+
|
12
|
+
def appended_directories
|
13
|
+
appended_directories_from_instance_entry + appended_directories_from_options
|
14
|
+
end
|
15
|
+
|
16
|
+
def appended_directories_from_instance_entry
|
17
|
+
::Avm::PathString.paths(instance.read_entry_optional(APPENDED_DIRECTORIES_ENTRY_KEY))
|
18
|
+
end
|
19
|
+
|
20
|
+
def appended_directories_from_options
|
21
|
+
options[:appended_directories] || []
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Avm
|
4
|
+
module Stereotypes
|
5
|
+
module EacWebappBase0
|
6
|
+
class Deploy
|
7
|
+
module GitInfo
|
8
|
+
def commit_sha1_uncached
|
9
|
+
git_fetch
|
10
|
+
r = git.rev_parse(git_reference_found)
|
11
|
+
return r if r
|
12
|
+
|
13
|
+
raise ::Avm::Result::Error, "No commit SHA1 found for \"#{git_reference_found}\""
|
14
|
+
end
|
15
|
+
|
16
|
+
def git_reference
|
17
|
+
options[:reference] || DEFAULT_REFERENCE
|
18
|
+
end
|
19
|
+
|
20
|
+
def git_reference_found_uncached
|
21
|
+
%w[git_reference instance_branch master_branch].map { |b| send(b) }.find(&:present?) ||
|
22
|
+
raise(
|
23
|
+
::Avm::Result::Error,
|
24
|
+
'No git reference found (Searched for option, instance and master)'
|
25
|
+
)
|
26
|
+
end
|
27
|
+
|
28
|
+
def git_remote_hashs_uncached
|
29
|
+
git.remote_hashs(git_remote_name)
|
30
|
+
end
|
31
|
+
|
32
|
+
def git_remote_name
|
33
|
+
::Avm::Git::DEFAULT_REMOTE_NAME
|
34
|
+
end
|
35
|
+
|
36
|
+
def instance_branch
|
37
|
+
remote_branch(instance.id)
|
38
|
+
end
|
39
|
+
|
40
|
+
def remote_branch(name)
|
41
|
+
git_remote_hashs.key?("refs/heads/#{name}") ? "#{git_remote_name}/#{name}" : nil
|
42
|
+
end
|
43
|
+
|
44
|
+
def master_branch
|
45
|
+
remote_branch('master')
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|