eac_tools 0.126.2 → 0.126.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +32 -30
- data/eac_tools.gemspec +2 -2
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm-git/.gitrepo +12 -0
- data/sub/{avm-eac_rails_base0 → avm-git}/.rubocop.yml +2 -2
- data/sub/avm-git/avm-git.gemspec +25 -0
- data/sub/avm-git/lib/avm/git/application_scms/base/assert_main_at.rb +44 -0
- data/sub/avm-git/lib/avm/git/application_scms/base.rb +18 -0
- data/sub/avm-git/lib/avm/git/commit/class_methods.rb +29 -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 +42 -0
- data/sub/avm-git/lib/avm/git/commit.rb +57 -0
- data/sub/avm-git/lib/avm/git/issue/complete/commits.rb +40 -0
- data/sub/avm-git/lib/avm/git/issue/complete/git_subrepos.rb +20 -0
- data/sub/avm-git/lib/avm/git/issue/complete/local_branch.rb +59 -0
- data/sub/avm-git/lib/avm/git/issue/complete/local_tag.rb +37 -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 +34 -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 +36 -0
- data/sub/avm-git/lib/avm/git/issue/complete/validations.rb +54 -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 +66 -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 +21 -0
- data/sub/avm-git/lib/avm/git/launcher/base/remotes.rb +37 -0
- data/sub/avm-git/lib/avm/git/launcher/base/subrepo.rb +42 -0
- data/sub/avm-git/lib/avm/git/launcher/base/underlying.rb +54 -0
- data/sub/avm-git/lib/avm/git/launcher/base.rb +80 -0
- data/sub/avm-git/lib/avm/git/launcher/error.rb +13 -0
- data/sub/avm-git/lib/avm/git/launcher/mirror_update.rb +36 -0
- data/sub/avm-git/lib/avm/git/launcher/publish_base.rb +128 -0
- data/sub/avm-git/lib/avm/git/launcher/remote.rb +53 -0
- data/sub/avm-git/lib/avm/git/launcher/sub_warp_base.rb +36 -0
- data/sub/avm-git/lib/avm/git/launcher/warp_base.rb +63 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git/local_project_mixin.rb +16 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git/publish.rb +13 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git/warp.rb +25 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git.rb +21 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb +29 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/warp.rb +82 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo.rb +35 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/provider.rb +16 -0
- data/sub/avm-git/lib/avm/git/organize/reference_update.rb +32 -0
- data/sub/avm-git/lib/avm/git/organize/repository.rb +74 -0
- data/sub/avm-git/lib/avm/git/revision_test.rb +102 -0
- data/sub/avm-git/lib/avm/git/runners/base/commit.rb +98 -0
- data/sub/avm-git/lib/avm/git/runners/base/deploy.rb +108 -0
- data/sub/avm-git/lib/avm/git/runners/base/dirty_files.rb +42 -0
- data/sub/avm-git/lib/avm/git/runners/base/organize.rb +72 -0
- data/sub/avm-git/lib/avm/git/runners/base/revisions_test.rb +63 -0
- data/sub/avm-git/lib/avm/git/runners/base/subrepo/check.rb +45 -0
- data/sub/avm-git/lib/avm/git/runners/base/subrepo/clone.rb +80 -0
- data/sub/avm-git/lib/avm/git/runners/base/subrepo/fix/rebase.rb +51 -0
- data/sub/avm-git/lib/avm/git/runners/base/subrepo/fix.rb +78 -0
- data/sub/avm-git/lib/avm/git/runners/base/subrepo.rb +16 -0
- data/sub/avm-git/lib/avm/git/runners/base.rb +39 -0
- data/sub/avm-git/lib/avm/git/scms/git/branch.rb +28 -0
- data/sub/avm-git/lib/avm/git/scms/git/branches.rb +17 -0
- data/sub/avm-git/lib/avm/git/scms/git/change_tracker.rb +34 -0
- data/sub/avm-git/lib/avm/git/scms/git/changed_file.rb +25 -0
- data/sub/avm-git/lib/avm/git/scms/git/changed_files.rb +21 -0
- data/sub/avm-git/lib/avm/git/scms/git/commit/deploy.rb +38 -0
- data/sub/avm-git/lib/avm/git/scms/git/commit/deploy_methods.rb +24 -0
- data/sub/avm-git/lib/avm/git/scms/git/commit.rb +64 -0
- data/sub/avm-git/lib/avm/git/scms/git/commit_dirty.rb +32 -0
- data/sub/avm-git/lib/avm/git/scms/git/commits.rb +44 -0
- data/sub/avm-git/lib/avm/git/scms/git/interval.rb +28 -0
- data/sub/avm-git/lib/avm/git/scms/git/milestones.rb +18 -0
- data/sub/avm-git/lib/avm/git/scms/git/remote.rb +18 -0
- data/sub/avm-git/lib/avm/git/scms/git/remotes.rb +29 -0
- data/sub/avm-git/lib/avm/git/scms/git/run_commit.rb +54 -0
- data/sub/avm-git/lib/avm/git/scms/git.rb +46 -0
- data/sub/avm-git/lib/avm/git/scms/git_sub_base/changed_file.rb +19 -0
- data/sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb +23 -0
- data/sub/avm-git/lib/avm/git/scms/git_sub_base/interval.rb +23 -0
- data/sub/avm-git/lib/avm/git/scms/git_sub_base.rb +28 -0
- data/sub/avm-git/lib/avm/git/scms/git_subrepo.rb +28 -0
- data/sub/avm-git/lib/avm/git/scms/git_subtree.rb +29 -0
- data/sub/avm-git/lib/avm/git/scms/provider.rb +16 -0
- data/sub/avm-git/lib/avm/git/subrepo/check/parent.rb +50 -0
- data/sub/avm-git/lib/avm/git/subrepo/check/remote.rb +90 -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 +59 -0
- data/sub/avm-git/lib/avm/git/vendor/github.rb +20 -0
- data/sub/{avm-eac_rails_base0/lib/avm/eac_rails_base0 → avm-git/lib/avm/git}/version.rb +2 -2
- data/sub/{avm-eac_rails_base0/lib/avm/eac_rails_base0.rb → avm-git/lib/avm/git.rb} +7 -3
- 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 +11 -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 +54 -0
- data/sub/avm-git/spec/lib/avm/git/launcher/base_spec.rb +43 -0
- data/sub/avm-git/spec/lib/avm/git/launcher_stereotypes/git_subrepo/publish_spec.rb +82 -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 +124 -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/runners/base/subrepo/fix/rebase_spec.rb +28 -0
- data/sub/avm-git/spec/lib/avm/git/scms/git/commit/deploy_spec.rb +89 -0
- data/sub/avm-git/spec/lib/avm/git/scms/git_spec.rb +5 -0
- data/sub/avm-git/spec/lib/avm/git/scms/git_subrepo_spec.rb +5 -0
- data/sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb +21 -0
- data/sub/{avm-eac_rails_base0 → avm-git}/spec/spec_helper.rb +2 -3
- metadata +125 -61
- data/sub/avm-eac_rails_base0/.gitrepo +0 -7
- data/sub/avm-eac_rails_base0/avm-eac_rails_base0.gemspec +0 -20
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instances/apache_host.rb +0 -10
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instances/apache_path.rb +0 -10
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instances/base.rb +0 -21
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instances/deploy.rb +0 -51
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/source_generators/base.rb +0 -10
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/sources/base/depends_on_eac_rails_base0.rb +0 -40
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/sources/base.rb +0 -39
- data/sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb +0 -19
- data/sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec_files/apache_host_spec_no_ssl_content.conf +0 -11
- data/sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_path_spec.rb +0 -20
- data/sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_path_spec_files/stub-app_0_apache_path.conf +0 -13
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/instances/deploy/config/database.yml.template +0 -21
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/instances/deploy/config/envvars.d/email.yml.template +0 -11
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/.gitignore +0 -34
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/.rspec +0 -2
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/.rubocop.yml +0 -13
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/Gemfile +0 -11
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/Rakefile +0 -8
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/app/assets/config/manifest.js +0 -3
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/app/assets/javascripts/application.js +0 -1
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/app/assets/stylesheets/application.scss +0 -1
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/app/controllers/application_controller.rb +0 -4
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/app/controllers/welcome_controller.rb +0 -5
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/app/views/welcome/index.html.erb +0 -1
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/bin/bundle +0 -5
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/bin/rails +0 -11
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/bin/rake +0 -11
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/bin/yarn +0 -11
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config/application.rb +0 -11
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config/boot.rb +0 -5
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config/cable.yml +0 -8
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config/credentials.yml.enc +0 -1
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config/environment.rb +0 -7
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config/puma.rb +0 -39
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config/routes.rb +0 -5
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config/spring.rb +0 -8
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config.ru +0 -7
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/db/schema.rb +0 -1
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/lib/ability.rb +0 -20
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/lib/ability_mapping.rb +0 -10
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/log/.keep +0 -0
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/public/favicon.ico +0 -0
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/spec/code/rubocop_spec.rb +0 -3
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/spec/fixtures/.keep +0 -1
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/spec/spec_helper.rb +0 -8
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/tmp/.keep +0 -0
- /data/sub/{avm-eac_rails_base0 → avm-git}/.gitignore +0 -0
- /data/sub/{avm-eac_rails_base0 → avm-git}/.rspec +0 -0
- /data/sub/{avm-eac_rails_base0 → avm-git}/Gemfile +0 -0
- /data/sub/{avm-eac_rails_base0 → avm-git}/spec/meta/rubocop_spec.rb +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa4c53fa494c914ab5fab98a447f1ed50d751daf48d2f8e8b756fe215d8f7523
|
|
4
|
+
data.tar.gz: 4945d167910473778c28c711a3fe19c4ee5da0b54d6f60215615e85bf372b123
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc9210fb918737de9e095b3f016b4284d5dbb1e52678d6ce2edb2a09772bd4c756ac12528c781e831c837c87718a6eb648cd6a94defd3a70555956278bafdf6b
|
|
7
|
+
data.tar.gz: 78ac692d1743dd9b000977e902c52f627fdcbfed1b4644e4f89e925d83b4eb695b5a67977a79804136b6c5ad9b85a437882f65fd54b7169eb01bdeb68f79751c
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
eac_tools (0.126.
|
|
4
|
+
eac_tools (0.126.3)
|
|
5
5
|
avm (~> 0.103)
|
|
6
6
|
avm-eac_asciidoctor_base0 (~> 0.29)
|
|
7
7
|
avm-eac_generic_base0 (~> 0.16, >= 0.16.1)
|
|
@@ -19,16 +19,19 @@ PATH
|
|
|
19
19
|
avm-eac_ruby_base1 (~> 0.45, >= 0.45.2)
|
|
20
20
|
avm-eac_webapp_base0 (~> 0.23)
|
|
21
21
|
avm-eac_wordpress_base0 (~> 0.3, >= 0.3.2)
|
|
22
|
-
avm-git (~> 0.
|
|
22
|
+
avm-git (~> 0.24)
|
|
23
23
|
avm-tools (~> 0.164, >= 0.164.1)
|
|
24
24
|
eac_ruby_base1 (~> 0.1, >= 0.1.2)
|
|
25
25
|
|
|
26
26
|
PATH
|
|
27
|
-
remote: sub/avm-
|
|
27
|
+
remote: sub/avm-git
|
|
28
28
|
specs:
|
|
29
|
-
avm-
|
|
30
|
-
avm
|
|
29
|
+
avm-git (0.24.0)
|
|
30
|
+
avm (~> 0.103)
|
|
31
|
+
eac_git (~> 0.22, >= 0.22.1)
|
|
31
32
|
eac_ruby_utils (~> 0.136)
|
|
33
|
+
filesize (~> 0.2)
|
|
34
|
+
git (~> 1.19, >= 1.19.1)
|
|
32
35
|
|
|
33
36
|
GEM
|
|
34
37
|
remote: https://rubygems.org/
|
|
@@ -100,6 +103,9 @@ GEM
|
|
|
100
103
|
avm-eac_python_base0 (0.2.2)
|
|
101
104
|
avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
|
|
102
105
|
eac_ruby_utils (~> 0.119, >= 0.119.2)
|
|
106
|
+
avm-eac_rails_base0 (0.11.3)
|
|
107
|
+
avm-eac_rails_base1 (~> 0.12, >= 0.12.1)
|
|
108
|
+
eac_ruby_utils (~> 0.136)
|
|
103
109
|
avm-eac_rails_base1 (0.12.1)
|
|
104
110
|
avm (~> 0.102, >= 0.102.3)
|
|
105
111
|
avm-eac_ruby_base1 (~> 0.43, >= 0.43.2)
|
|
@@ -141,12 +147,6 @@ GEM
|
|
|
141
147
|
avm (~> 0.86, >= 0.86.2)
|
|
142
148
|
avm-eac_webapp_base0 (~> 0.18, >= 0.18.4)
|
|
143
149
|
eac_ruby_utils (~> 0.121)
|
|
144
|
-
avm-git (0.23.0)
|
|
145
|
-
avm (~> 0.103)
|
|
146
|
-
eac_git (~> 0.22)
|
|
147
|
-
eac_ruby_utils (~> 0.134)
|
|
148
|
-
filesize (~> 0.2)
|
|
149
|
-
git (~> 1.19, >= 1.19.1)
|
|
150
150
|
avm-tools (0.164.1)
|
|
151
151
|
avm (~> 0.102, >= 0.102.2)
|
|
152
152
|
eac_ruby_base0 (~> 0.19, >= 0.19.3)
|
|
@@ -155,18 +155,18 @@ GEM
|
|
|
155
155
|
clipboard (2.0.0)
|
|
156
156
|
colorize (0.8.1)
|
|
157
157
|
concurrent-ruby (1.3.8)
|
|
158
|
-
connection_pool (3.0.
|
|
158
|
+
connection_pool (3.0.3)
|
|
159
159
|
content-type (0.0.2)
|
|
160
160
|
parslet (~> 2.0)
|
|
161
161
|
csv (3.3.7)
|
|
162
162
|
diff-lcs (1.6.2)
|
|
163
163
|
drb (2.2.3)
|
|
164
|
-
eac_cli (0.47.
|
|
164
|
+
eac_cli (0.47.3)
|
|
165
165
|
clipboard (~> 2.0)
|
|
166
166
|
colorize (~> 0.8, >= 0.8.1)
|
|
167
|
-
csv (~> 3.3, >= 3.3.
|
|
167
|
+
csv (~> 3.3, >= 3.3.7)
|
|
168
168
|
eac_config (~> 0.15, >= 0.15.2)
|
|
169
|
-
eac_ruby_utils (~> 0.
|
|
169
|
+
eac_ruby_utils (~> 0.136)
|
|
170
170
|
tty-table (~> 0.12)
|
|
171
171
|
eac_config (0.15.2)
|
|
172
172
|
addressable (~> 2.9)
|
|
@@ -192,10 +192,10 @@ GEM
|
|
|
192
192
|
eac_git (0.22.1)
|
|
193
193
|
eac_ruby_utils (~> 0.134)
|
|
194
194
|
parseconfig (~> 1.1, >= 1.1.2)
|
|
195
|
-
eac_rest (0.
|
|
196
|
-
eac_envs-http (~> 0.7, >= 0.7.
|
|
197
|
-
eac_fs (~> 0.20, >= 0.20.
|
|
198
|
-
eac_ruby_utils (~> 0.
|
|
195
|
+
eac_rest (0.14.0)
|
|
196
|
+
eac_envs-http (~> 0.7, >= 0.7.2)
|
|
197
|
+
eac_fs (~> 0.20, >= 0.20.3)
|
|
198
|
+
eac_ruby_utils (~> 0.136)
|
|
199
199
|
eac_ruby_base0 (0.22.0)
|
|
200
200
|
avm-eac_ruby_base1 (~> 0.45)
|
|
201
201
|
eac_cli (~> 0.47, >= 0.47.1)
|
|
@@ -203,11 +203,11 @@ GEM
|
|
|
203
203
|
eac_ruby_base1 (~> 0.1, >= 0.1.1)
|
|
204
204
|
eac_ruby_base1 (0.1.2)
|
|
205
205
|
eac_ruby_utils (~> 0.135)
|
|
206
|
-
eac_ruby_gem_support (0.
|
|
207
|
-
eac_ruby_base1 (~> 0.1, >= 0.1.
|
|
206
|
+
eac_ruby_gem_support (0.16.0)
|
|
207
|
+
eac_ruby_base1 (~> 0.1, >= 0.1.2)
|
|
208
208
|
rspec (~> 3.13, >= 3.13.2)
|
|
209
|
-
rubocop (~> 1.
|
|
210
|
-
rubocop-rails (~> 2.
|
|
209
|
+
rubocop (~> 1.92, >= 1.92.2)
|
|
210
|
+
rubocop-rails (~> 2.38)
|
|
211
211
|
rubocop-rspec (~> 3.10, >= 3.10.2)
|
|
212
212
|
super_diff (~> 0.19)
|
|
213
213
|
eac_ruby_utils (0.136.0)
|
|
@@ -267,7 +267,7 @@ GEM
|
|
|
267
267
|
ostruct (0.6.3)
|
|
268
268
|
parallel (2.3.0)
|
|
269
269
|
parseconfig (1.1.2)
|
|
270
|
-
parser (3.3.
|
|
270
|
+
parser (3.3.14.0)
|
|
271
271
|
ast (~> 2.4.1)
|
|
272
272
|
racc
|
|
273
273
|
parslet (2.0.0)
|
|
@@ -278,12 +278,12 @@ GEM
|
|
|
278
278
|
prism (2.1.0-x86_64-linux-gnu)
|
|
279
279
|
public_suffix (7.0.5)
|
|
280
280
|
racc (1.8.1)
|
|
281
|
-
rack (3.2.
|
|
281
|
+
rack (3.2.9)
|
|
282
282
|
rainbow (3.1.1)
|
|
283
283
|
random-port (0.8.2)
|
|
284
284
|
tago (~> 0.0)
|
|
285
285
|
rchardet (1.10.2)
|
|
286
|
-
regexp_parser (2.13.
|
|
286
|
+
regexp_parser (2.13.4)
|
|
287
287
|
rouge (3.30.0)
|
|
288
288
|
rspec (3.13.2)
|
|
289
289
|
rspec-core (~> 3.13.0)
|
|
@@ -298,7 +298,7 @@ GEM
|
|
|
298
298
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
299
299
|
rspec-support (~> 3.13.0)
|
|
300
300
|
rspec-support (3.13.8)
|
|
301
|
-
rubocop (1.92.
|
|
301
|
+
rubocop (1.92.3)
|
|
302
302
|
json (>= 2.3)
|
|
303
303
|
language_server-protocol (~> 3.17.0.2)
|
|
304
304
|
lint_roller (~> 1.1.0)
|
|
@@ -309,9 +309,11 @@ GEM
|
|
|
309
309
|
rubocop-ast (>= 1.49.0, < 2.0)
|
|
310
310
|
ruby-progressbar (~> 1.7)
|
|
311
311
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
312
|
-
rubocop-ast (1.
|
|
312
|
+
rubocop-ast (1.53.0)
|
|
313
|
+
ast (~> 2.4)
|
|
313
314
|
parser (>= 3.3.7.2)
|
|
314
315
|
prism (>= 1.7)
|
|
316
|
+
racc
|
|
315
317
|
rubocop-rails (2.38.0)
|
|
316
318
|
activesupport (>= 4.2.0)
|
|
317
319
|
lint_roller (~> 1.1)
|
|
@@ -355,8 +357,8 @@ PLATFORMS
|
|
|
355
357
|
x86_64-linux-gnu
|
|
356
358
|
|
|
357
359
|
DEPENDENCIES
|
|
358
|
-
avm-
|
|
359
|
-
eac_ruby_gem_support (~> 0.
|
|
360
|
+
avm-git!
|
|
361
|
+
eac_ruby_gem_support (~> 0.16)
|
|
360
362
|
eac_tools!
|
|
361
363
|
|
|
362
364
|
BUNDLED WITH
|
data/eac_tools.gemspec
CHANGED
|
@@ -35,9 +35,9 @@ Gem::Specification.new do |s|
|
|
|
35
35
|
s.add_dependency 'avm-eac_ruby_base1', '~> 0.45', '>= 0.45.2'
|
|
36
36
|
s.add_dependency 'avm-eac_webapp_base0', '~> 0.23'
|
|
37
37
|
s.add_dependency 'avm-eac_wordpress_base0', '~> 0.3', '>= 0.3.2'
|
|
38
|
-
s.add_dependency 'avm-git', '~> 0.
|
|
38
|
+
s.add_dependency 'avm-git', '~> 0.24'
|
|
39
39
|
s.add_dependency 'avm-tools', '~> 0.164', '>= 0.164.1'
|
|
40
40
|
s.add_dependency 'eac_ruby_base1', '~> 0.1', '>= 0.1.2'
|
|
41
41
|
|
|
42
|
-
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.
|
|
42
|
+
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.16'
|
|
43
43
|
end
|
data/lib/eac_tools/version.rb
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
; DO NOT EDIT (unless you know what you are doing)
|
|
2
|
+
;
|
|
3
|
+
; This subdirectory is a git "subrepo", and this file is maintained by the
|
|
4
|
+
; git-subrepo command. See https://github.com/ingydotnet/git-subrepo#readme
|
|
5
|
+
;
|
|
6
|
+
[subrepo]
|
|
7
|
+
remote = https://github.com/esquilo-azul/avm-git.git
|
|
8
|
+
branch = master
|
|
9
|
+
commit = 30359dcb869b9c2220fc3949d2ff6a8dbcde4fe8
|
|
10
|
+
parent = 25d928d0c198ebd5e42441950cecebec3a4fbaf0
|
|
11
|
+
method = merge
|
|
12
|
+
cmdver = 0.4.9
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
$LOAD_PATH.push File.expand_path('lib', __dir__)
|
|
4
|
+
|
|
5
|
+
require 'avm/git/version'
|
|
6
|
+
|
|
7
|
+
Gem::Specification.new do |s|
|
|
8
|
+
s.name = 'avm-git'
|
|
9
|
+
s.version = Avm::Git::VERSION
|
|
10
|
+
s.authors = ['Put here the authors']
|
|
11
|
+
s.summary = 'Put here de description.'
|
|
12
|
+
|
|
13
|
+
s.files = Dir['{lib,locale}/**/*']
|
|
14
|
+
s.required_ruby_version = '>= 2.7' # rubocop:disable Gemspec/RequiredRubyVersion
|
|
15
|
+
|
|
16
|
+
s.add_dependency 'avm', '~> 0.103'
|
|
17
|
+
s.add_dependency 'eac_git', '~> 0.22', '>= 0.22.1'
|
|
18
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.136'
|
|
19
|
+
s.add_dependency 'filesize', '~> 0.2'
|
|
20
|
+
s.add_dependency 'git', '~> 1.19', '>= 1.19.1'
|
|
21
|
+
|
|
22
|
+
s.add_development_dependency 'avm-eac_ubuntu_base0', '~> 0.7', '>= 0.7.2'
|
|
23
|
+
s.add_development_dependency 'avm-tools', '~> 0.164', '>= 0.164.1'
|
|
24
|
+
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.16'
|
|
25
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Avm
|
|
4
|
+
module Git
|
|
5
|
+
module ApplicationScms
|
|
6
|
+
class Base < ::Avm::ApplicationScms::Base
|
|
7
|
+
class AssertMainAt
|
|
8
|
+
MAIN_REFERENCE = 'HEAD'
|
|
9
|
+
|
|
10
|
+
acts_as_instance_method
|
|
11
|
+
enable_simple_cache
|
|
12
|
+
common_constructor :base, :path
|
|
13
|
+
|
|
14
|
+
# @return [Pathname]
|
|
15
|
+
def result
|
|
16
|
+
local_repos.remote(base.git_https_url).fetch
|
|
17
|
+
local_repos.command('checkout', remote_head_commit_id).execute!
|
|
18
|
+
path
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
private
|
|
22
|
+
|
|
23
|
+
# @return [String]
|
|
24
|
+
def remote_head_commit_id
|
|
25
|
+
remote_repos.ls.fetch(MAIN_REFERENCE)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# @return [EacGit::Local]
|
|
29
|
+
def local_repos_uncached
|
|
30
|
+
path.mkpath
|
|
31
|
+
r = ::EacGit::Local.new(path)
|
|
32
|
+
r.command('init').execute! unless r.root_path.join('.git').exist?
|
|
33
|
+
r
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# @return [EacGit::Remote]
|
|
37
|
+
def remote_repos_uncached
|
|
38
|
+
::EacGit::Remote.new(base.git_https_url)
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Avm
|
|
4
|
+
module Git
|
|
5
|
+
module ApplicationScms
|
|
6
|
+
class Base < ::Avm::ApplicationScms::Base
|
|
7
|
+
acts_as_abstract
|
|
8
|
+
|
|
9
|
+
# @return [Addressable::URI]
|
|
10
|
+
def git_https_url
|
|
11
|
+
raise_abstract_method __method__
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
require_sub __FILE__, require_mode: :kernel
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Avm
|
|
4
|
+
module Git
|
|
5
|
+
class Commit
|
|
6
|
+
module ClassMethods
|
|
7
|
+
common_concern
|
|
8
|
+
|
|
9
|
+
module ClassMethods
|
|
10
|
+
def target_url_to_env_path(target_url)
|
|
11
|
+
uri = ::Addressable::URI.parse(target_url)
|
|
12
|
+
uri.scheme = 'file' if uri.scheme.blank?
|
|
13
|
+
[uri_to_env(uri), uri.path]
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
private
|
|
17
|
+
|
|
18
|
+
def uri_to_env(uri)
|
|
19
|
+
case uri.scheme
|
|
20
|
+
when 'file' then ::EacRubyUtils::Envs.local
|
|
21
|
+
when 'ssh' then ::EacRubyUtils::Envs.ssh(uri)
|
|
22
|
+
else "Invalid schema \"#{uri.schema}\" (URI: #{uri})"
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Avm
|
|
4
|
+
module Git
|
|
5
|
+
class Commit
|
|
6
|
+
class DiffTreeLine
|
|
7
|
+
DIFF_TREE_PATTERN = /\A:(\d{6}) (\d{6}) (\S+) (\S+) (\S+)\t(\S.*)\z/
|
|
8
|
+
FIELDS = %w[src_mode dst_mode src_sha1 dst_sha1 status path].freeze
|
|
9
|
+
GIT_COMMAND_ARGS = %w[-c core.quotepath=off diff-tree --no-commit-id -r --full-index].freeze
|
|
10
|
+
|
|
11
|
+
attr_reader(*FIELDS)
|
|
12
|
+
|
|
13
|
+
# line: a line of command "git [GIT_COMMAND_ARGS]"'s output.
|
|
14
|
+
# Reference: https://git-scm.com/docs/git-diff-tree
|
|
15
|
+
def initialize(line)
|
|
16
|
+
m = DIFF_TREE_PATTERN.match(line.strip)
|
|
17
|
+
raise "\"#{line}\" did not match pattern" unless m
|
|
18
|
+
|
|
19
|
+
FIELDS.count.times { |i| send("#{FIELDS[i]}=", m[i + 1]) }
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def fields
|
|
23
|
+
FIELDS.index_with { |field| send(field) }
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
private
|
|
27
|
+
|
|
28
|
+
attr_writer(*FIELDS)
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Avm
|
|
4
|
+
module Git
|
|
5
|
+
class Commit
|
|
6
|
+
class File
|
|
7
|
+
include ::EacRubyUtils::SimpleCache
|
|
8
|
+
|
|
9
|
+
attr_reader :git, :diff_tree
|
|
10
|
+
|
|
11
|
+
# git: [EacGit::Local]
|
|
12
|
+
# diff_tree_tree: a line of command "git diff-tree --no-commit-id -r --full-index"'s output
|
|
13
|
+
def initialize(git, diff_tree_line)
|
|
14
|
+
@git = git
|
|
15
|
+
@diff_tree = ::Avm::Git::Commit::DiffTreeLine.new(diff_tree_line)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
delegate(*::Avm::Git::Commit::DiffTreeLine::FIELDS, to: :diff_tree)
|
|
19
|
+
|
|
20
|
+
def to_s
|
|
21
|
+
"#{path}|#{status}"
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def src_size_uncached
|
|
25
|
+
size(src_sha1)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def dst_size_uncached
|
|
29
|
+
size(dst_sha1)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
private
|
|
33
|
+
|
|
34
|
+
def size(sha1)
|
|
35
|
+
return 0 if /\A0+\z/.match(sha1)
|
|
36
|
+
|
|
37
|
+
git.command('cat-file', '-s', sha1).execute!.strip.to_i
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Avm
|
|
4
|
+
module Git
|
|
5
|
+
class Commit
|
|
6
|
+
require_sub __FILE__, include_modules: true
|
|
7
|
+
enable_simple_cache
|
|
8
|
+
|
|
9
|
+
FIELDS = {
|
|
10
|
+
author_name: '%an', author_email: '%ae', author_date: '%ai',
|
|
11
|
+
subject: '%s',
|
|
12
|
+
author_all: '%an <%ae>, %ai',
|
|
13
|
+
commiter_name: '%cn', commiter_email: '%ce', commiter_date: '%ci',
|
|
14
|
+
commiter_all: '%cn <%ce>, %ci'
|
|
15
|
+
}.freeze
|
|
16
|
+
|
|
17
|
+
attr_reader :git, :sha1
|
|
18
|
+
|
|
19
|
+
# @param git [EacGit::Local]
|
|
20
|
+
def initialize(git, sha1)
|
|
21
|
+
@git = git
|
|
22
|
+
@sha1 = sha1
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def format(format)
|
|
26
|
+
git.command('--no-pager', 'log', '-1', "--pretty=format:#{format}", sha1).execute!.strip
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
FIELDS.each do |field, format|
|
|
30
|
+
define_method field do
|
|
31
|
+
format(format)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def files_uncached
|
|
36
|
+
diff_tree_execute.each_line.map { |line| ::Avm::Git::Commit::File.new(git, line) }
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def files_size_uncached
|
|
40
|
+
files.inject(0) { |a, e| a + e.dst_size }
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def root_child?
|
|
44
|
+
format('%P').blank? # rubocop:disable Style/RedundantFormat
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
private
|
|
48
|
+
|
|
49
|
+
def diff_tree_execute
|
|
50
|
+
args = []
|
|
51
|
+
args << '--root' if root_child?
|
|
52
|
+
args << sha1
|
|
53
|
+
git.command(*::Avm::Git::Commit::DiffTreeLine::GIT_COMMAND_ARGS, *args).execute!
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Avm
|
|
4
|
+
module Git
|
|
5
|
+
module Issue
|
|
6
|
+
class Complete
|
|
7
|
+
module Commits
|
|
8
|
+
def commits_result
|
|
9
|
+
::Avm::Result.success_or_error(commits.any?, 'yes', 'none')
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def commits_uncached
|
|
13
|
+
return [] unless branch_hash && follow_master?
|
|
14
|
+
|
|
15
|
+
interval = remote_master_hash ? "#{remote_master_hash}..#{branch_hash}" : branch_hash
|
|
16
|
+
launcher_git.execute!('rev-list', interval).each_line.map(&:strip)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def bifurcations_result
|
|
20
|
+
commits.each do |commit|
|
|
21
|
+
if multiple_parents?(commit)
|
|
22
|
+
return ::Avm::Result.error("#{commit} has multiple parents")
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
::Avm::Result.success('no')
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def multiple_parents?(commit)
|
|
29
|
+
commit_parents(commit).many?
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def commit_parents(commit)
|
|
33
|
+
launcher_git.execute!('log', '--pretty=%P', '-n', '1', commit).split.map(&:strip)
|
|
34
|
+
.select(&:present?) # rubocop:disable Rails/CompactBlank
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Avm
|
|
4
|
+
module Git
|
|
5
|
+
module Issue
|
|
6
|
+
class Complete
|
|
7
|
+
module GitSubrepos
|
|
8
|
+
def git_subrepos_result
|
|
9
|
+
return ::Avm::Result.error('Unclean workspace') unless clean_workspace?
|
|
10
|
+
|
|
11
|
+
infom 'Checking Git subrepos...'
|
|
12
|
+
r = ::Avm::Git::Subrepo::Checks.new(::EacGit::Local.new(launcher_git)).add_all_subrepos
|
|
13
|
+
r.check_remote = true
|
|
14
|
+
r.result
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Avm
|
|
4
|
+
module Git
|
|
5
|
+
module Issue
|
|
6
|
+
class Complete
|
|
7
|
+
module LocalBranch
|
|
8
|
+
NO_CURRENT_BRANCH_NAME = 'none'
|
|
9
|
+
|
|
10
|
+
# Retrieves the current local branch.
|
|
11
|
+
#
|
|
12
|
+
# @return [EacGit::Local::Branch, nil]
|
|
13
|
+
def branch_uncached
|
|
14
|
+
eac_git.current_branch
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def branch_hash_uncached
|
|
18
|
+
branch.if_present(&:current_commit_id)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def branch_name
|
|
22
|
+
branch.if_present(NO_CURRENT_BRANCH_NAME, &:name)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def branch_name_result
|
|
26
|
+
::Avm::Result.success_or_error(issue_id.present?, branch_name)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def branch_hash_result
|
|
30
|
+
::Avm::Result.success_or_error(
|
|
31
|
+
branch_hash.present?,
|
|
32
|
+
branch_hash
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def follow_master_result
|
|
37
|
+
return ::Avm::Result.neutral('No branch hash') unless branch_hash
|
|
38
|
+
|
|
39
|
+
r = follow_master?
|
|
40
|
+
::Avm::Result.success_or_error(r, 'yes', 'no')
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def follow_master?
|
|
44
|
+
remote_master_hash ? launcher_git.descendant?(branch_hash, remote_master_hash) : true
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def remove_local_branch
|
|
48
|
+
return unless branch
|
|
49
|
+
|
|
50
|
+
info 'Removendo branch local...'
|
|
51
|
+
bn = branch_name
|
|
52
|
+
git_execute(['checkout', branch_hash])
|
|
53
|
+
git_execute(['branch', '-D', bn])
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Avm
|
|
4
|
+
module Git
|
|
5
|
+
module Issue
|
|
6
|
+
class Complete
|
|
7
|
+
module LocalTag
|
|
8
|
+
def assert_tag
|
|
9
|
+
if tag_hash
|
|
10
|
+
return if tag_hash == branch_hash
|
|
11
|
+
|
|
12
|
+
delete_tag
|
|
13
|
+
end
|
|
14
|
+
create_tag
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def delete_tag
|
|
18
|
+
info 'Removendo tag...'
|
|
19
|
+
git_execute(['tag', '-d', branch_name])
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def tag
|
|
23
|
+
"refs/tags/#{branch_name}"
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def tag_hash
|
|
27
|
+
launcher_git.rev_parse(tag)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def create_tag
|
|
31
|
+
git_execute(['tag', branch_name, branch_hash])
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|