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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df83da96c07da9eadc8be286bd954d0fd8905a2ff0376da5b109289cb8d90635
|
4
|
+
data.tar.gz: 8825abbc5032bd4e7d76031caa85782b3e792f588cc8c5e8811c5ed7fc4232f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3436be6aa4b6017e646f864501f5719d97fe39f9596ef6c2e233e43b2c247302d1d47733573b51d8d596934df9273875f89607762185bf0d27fa9ae8340042aa
|
7
|
+
data.tar.gz: bcbb3e38cbdd66d3e8095fb10b4ed1379ddbbb6c2df5e34bdd72e4043ef8b013a8fd08963675f4c0aa546229a39f887f17f060d8cd0c70597631f055e0dbafa1
|
data/Gemfile
CHANGED
@@ -6,8 +6,7 @@ gemspec
|
|
6
6
|
|
7
7
|
gems_subdir = ::File.join(__dir__, 'vendor', 'gems')
|
8
8
|
Dir["#{gems_subdir}/*"].each do |dir|
|
9
|
-
next unless ::File.
|
9
|
+
next unless ::File.file?(::File.join(dir, 'Gemfile'))
|
10
10
|
|
11
|
-
|
12
|
-
gem basename, path: "#{gems_subdir}/#{basename}"
|
11
|
+
gem ::File.basename(dir), path: dir
|
13
12
|
end
|
data/lib/avm/files/formatter.rb
CHANGED
data/lib/avm/git/commit.rb
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'eac_ruby_utils/
|
4
|
-
require 'eac_ruby_utils/require_sub'
|
5
|
-
::EacRubyUtils.require_sub(__FILE__)
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
6
4
|
|
7
5
|
module Avm
|
8
6
|
module Git
|
9
7
|
class Commit
|
10
|
-
|
8
|
+
require_sub __FILE__, include_modules: true
|
9
|
+
enable_simple_cache
|
11
10
|
|
12
11
|
FIELDS = {
|
13
12
|
author_name: '%an', author_email: '%ae', author_date: '%ai',
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module Git
|
7
|
+
class Commit
|
8
|
+
module ClassMethods
|
9
|
+
common_concern
|
10
|
+
|
11
|
+
module ClassMethods
|
12
|
+
def target_url_to_env_path(target_url)
|
13
|
+
uri = ::Addressable::URI.parse(target_url)
|
14
|
+
uri.scheme = 'file' if uri.scheme.blank?
|
15
|
+
[uri_to_env(uri), uri.path]
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def uri_to_env(uri)
|
21
|
+
case uri.scheme
|
22
|
+
when 'file' then ::EacRubyUtils::Envs.local
|
23
|
+
when 'ssh' then ::EacRubyUtils::Envs.ssh(uri)
|
24
|
+
else "Invalid schema \"#{uri.schema}\" (URI: #{uri})"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -1,63 +1,25 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'addressable'
|
4
|
-
require 'eac_ruby_utils/
|
5
|
-
require 'eac_ruby_utils/require_sub'
|
6
|
-
::EacRubyUtils.require_sub(__FILE__)
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
7
5
|
require 'avm/patches/object/template'
|
8
6
|
|
9
7
|
module Avm
|
10
8
|
module Git
|
11
9
|
class Commit
|
12
|
-
class << self
|
13
|
-
def target_url_to_env_path(target_url)
|
14
|
-
uri = ::Addressable::URI.parse(target_url)
|
15
|
-
uri.scheme = 'file' if uri.scheme.blank?
|
16
|
-
[uri_to_env(uri), uri.path]
|
17
|
-
end
|
18
|
-
|
19
|
-
private
|
20
|
-
|
21
|
-
def uri_to_env(uri)
|
22
|
-
case uri.scheme
|
23
|
-
when 'file' then ::EacRubyUtils::Envs.local
|
24
|
-
when 'ssh' then ::EacRubyUtils::Envs.ssh(uri)
|
25
|
-
else "Invalid schema \"#{uri.schema}\" (URI: #{uri})"
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
def deploy_to_env_path(target_env, target_path)
|
31
|
-
Deploy.new(self, target_env, target_path)
|
32
|
-
end
|
33
|
-
|
34
|
-
def deploy_to_url(target_url)
|
35
|
-
Deploy.new(self, *self.class.target_url_to_env_path(target_url))
|
36
|
-
end
|
37
|
-
|
38
10
|
class Deploy
|
39
|
-
|
11
|
+
require_sub __FILE__, include_modules: true
|
12
|
+
enable_simple_cache
|
40
13
|
|
41
|
-
attr_reader :commit, :target_env, :target_path, :
|
14
|
+
attr_reader :build_dir, :commit, :target_env, :target_path, :variables_source
|
42
15
|
|
43
16
|
def initialize(commit, target_env, target_path)
|
44
17
|
@commit = commit
|
45
18
|
@target_env = target_env
|
46
19
|
@target_path = target_path
|
47
|
-
@appended_directories = []
|
48
20
|
@variables_source = nil
|
49
21
|
end
|
50
22
|
|
51
|
-
def append_directory(directory)
|
52
|
-
@appended_directories << directory
|
53
|
-
self
|
54
|
-
end
|
55
|
-
|
56
|
-
def append_directories(directories)
|
57
|
-
directories.each { |directory| append_directory(directory) }
|
58
|
-
self
|
59
|
-
end
|
60
|
-
|
61
23
|
def variables_source_set(source)
|
62
24
|
@variables_source = source
|
63
25
|
self
|
@@ -66,7 +28,7 @@ module Avm
|
|
66
28
|
def run
|
67
29
|
on_build_dir do
|
68
30
|
copy_git_content
|
69
|
-
|
31
|
+
copy_appended_content
|
70
32
|
mkdir_target
|
71
33
|
clear_content
|
72
34
|
send_untar_package
|
@@ -76,8 +38,6 @@ module Avm
|
|
76
38
|
|
77
39
|
private
|
78
40
|
|
79
|
-
attr_reader :build_dir
|
80
|
-
|
81
41
|
def on_build_dir
|
82
42
|
@build_dir = ::Dir.mktmpdir
|
83
43
|
yield
|
@@ -89,12 +49,6 @@ module Avm
|
|
89
49
|
git_archive_command.pipe(untar_git_archive_command).execute!
|
90
50
|
end
|
91
51
|
|
92
|
-
def copy_appended_directory(directory)
|
93
|
-
raise 'Variables source not set' if variables_source.blank?
|
94
|
-
|
95
|
-
::EacRubyUtils::Templates::Directory.new(directory).apply(variables_source, build_dir)
|
96
|
-
end
|
97
|
-
|
98
52
|
def mkdir_target
|
99
53
|
target_env.command('mkdir', '-p', target_path).execute!
|
100
54
|
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Avm
|
4
|
+
module Git
|
5
|
+
class Commit
|
6
|
+
class Deploy
|
7
|
+
module Appended
|
8
|
+
require_sub __FILE__
|
9
|
+
|
10
|
+
def appended
|
11
|
+
@appended ||= []
|
12
|
+
end
|
13
|
+
|
14
|
+
def append_directory(directory)
|
15
|
+
appended << ::Avm::Git::Commit::Deploy::Appended::Directory.new(self, directory)
|
16
|
+
self
|
17
|
+
end
|
18
|
+
|
19
|
+
def append_directories(directories)
|
20
|
+
directories.each { |directory| append_directory(directory) }
|
21
|
+
self
|
22
|
+
end
|
23
|
+
|
24
|
+
def append_file_content(target_path, content)
|
25
|
+
appended << ::Avm::Git::Commit::Deploy::Appended::FileContent
|
26
|
+
.new(self, target_path, content)
|
27
|
+
self
|
28
|
+
end
|
29
|
+
|
30
|
+
def copy_appended_content
|
31
|
+
appended.each(&:copy_to_build_dir)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
require 'avm/git/commit/deploy/appended/base'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module Git
|
8
|
+
class Commit
|
9
|
+
class Deploy
|
10
|
+
module Appended
|
11
|
+
class Directory < ::Avm::Git::Commit::Deploy::Appended::Base
|
12
|
+
attr_reader :source_path
|
13
|
+
|
14
|
+
def initialize(deploy, source_path)
|
15
|
+
super(deploy)
|
16
|
+
@source_path = source_path
|
17
|
+
end
|
18
|
+
|
19
|
+
def copy_to_build_dir
|
20
|
+
raise 'Variables source not set' if deploy.variables_source.blank?
|
21
|
+
|
22
|
+
::EacRubyUtils::Templates::Directory.new(source_path).apply(
|
23
|
+
deploy.variables_source,
|
24
|
+
deploy.build_dir
|
25
|
+
)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
require 'avm/git/commit/deploy/appended/base'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module Git
|
8
|
+
class Commit
|
9
|
+
class Deploy
|
10
|
+
module Appended
|
11
|
+
class FileContent < ::Avm::Git::Commit::Deploy::Appended::Base
|
12
|
+
attr_reader :target_path, :content
|
13
|
+
|
14
|
+
def initialize(deploy, target_path, content)
|
15
|
+
super(deploy)
|
16
|
+
@target_path = target_path
|
17
|
+
@content = content
|
18
|
+
end
|
19
|
+
|
20
|
+
def copy_to_build_dir
|
21
|
+
deploy.build_dir.to_pathname.join(target_path).write(content)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module Git
|
7
|
+
class Commit
|
8
|
+
module DeployMethods
|
9
|
+
def deploy_to_env_path(target_env, target_path)
|
10
|
+
Deploy.new(self, target_env, target_path)
|
11
|
+
end
|
12
|
+
|
13
|
+
def deploy_to_url(target_url)
|
14
|
+
Deploy.new(self, *self.class.target_url_to_env_path(target_url))
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/git/subrepo_checks'
|
4
|
+
require 'eac_git/local'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module Git
|
8
|
+
module Issue
|
9
|
+
class Complete
|
10
|
+
def git_subrepos_result
|
11
|
+
return ::Avm::Result.error('Unclean workspace') unless clean_workspace?
|
12
|
+
|
13
|
+
r = ::Avm::Git::SubrepoChecks.new(::EacGit::Local.new(@git)).add_all_subrepos
|
14
|
+
r.check_remote = true
|
15
|
+
r.result
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -19,13 +19,13 @@ module Avm
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def branch_name_result
|
22
|
-
::Avm::Result.success_or_error(
|
22
|
+
::Avm::Result.success_or_error(issue_id.present?, branch_name)
|
23
23
|
end
|
24
24
|
|
25
25
|
def branch_hash_result
|
26
26
|
::Avm::Result.success_or_error(
|
27
|
-
branch_hash
|
28
|
-
branch_hash
|
27
|
+
branch_hash.present?,
|
28
|
+
branch_hash
|
29
29
|
)
|
30
30
|
end
|
31
31
|
|
@@ -33,10 +33,7 @@ module Avm
|
|
33
33
|
return ::Avm::Result.neutral('No branch hash') unless branch_hash
|
34
34
|
|
35
35
|
r = follow_master?
|
36
|
-
::Avm::Result.success_or_error(
|
37
|
-
r ? 'yes' : 'no',
|
38
|
-
r
|
39
|
-
)
|
36
|
+
::Avm::Result.success_or_error(r, 'yes', 'no')
|
40
37
|
end
|
41
38
|
|
42
39
|
def follow_master?
|
@@ -5,8 +5,11 @@ module Avm
|
|
5
5
|
module Issue
|
6
6
|
class Complete
|
7
7
|
def clean_workspace_result
|
8
|
-
|
9
|
-
|
8
|
+
::Avm::Result.success_or_error(clean_workspace?, 'yes', 'no')
|
9
|
+
end
|
10
|
+
|
11
|
+
def clean_workspace?
|
12
|
+
@git.dirty_files.none?
|
10
13
|
end
|
11
14
|
end
|
12
15
|
end
|
@@ -0,0 +1,39 @@
|
|
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
|
+
require_sub __FILE__, include_modules: true
|
10
|
+
enable_console_speaker
|
11
|
+
enable_simple_cache
|
12
|
+
|
13
|
+
BLANK_TEXT = 'BLANK'
|
14
|
+
|
15
|
+
common_constructor :subrepo, :options
|
16
|
+
|
17
|
+
def blank_text
|
18
|
+
BLANK_TEXT
|
19
|
+
end
|
20
|
+
|
21
|
+
def check_remote?
|
22
|
+
options.fetch(:check_remote) ? true : false
|
23
|
+
end
|
24
|
+
|
25
|
+
def fix_parent?
|
26
|
+
options.fetch(:fix_parent) ? true : false
|
27
|
+
end
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def result_uncached
|
32
|
+
return ::Avm::Result.error('Parent failed') if parent_result.error?
|
33
|
+
return ::Avm::Result.error('Remote failed') if remote_result.error?
|
34
|
+
|
35
|
+
::Avm::Result.success('Parent and remote ok')
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|