eac_tools 0.34.0 → 0.36.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +32 -18
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm/avm.gemspec +1 -1
- data/sub/{avm-tools → avm}/lib/avm/launcher/context/instance_collector.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/context/instance_discovery.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/context/instance_manager/cached_instance.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/context/instance_manager/cached_instances.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/context/instance_manager.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/context/settings.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/context.rb +0 -0
- data/sub/avm/lib/avm/launcher/errors.rb +11 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/instances/base/cache.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/instances/base.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/instances/error.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/instances/runner_helper.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/instances/settings.rb +0 -0
- data/sub/avm/lib/avm/launcher/instances.rb +11 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/paths/logical.rb +0 -0
- data/sub/avm/lib/avm/launcher/paths.rb +11 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/project.rb +4 -5
- data/sub/{avm-tools → avm}/lib/avm/launcher/publish/base.rb +2 -5
- data/sub/avm/lib/avm/launcher/publish.rb +11 -0
- data/sub/avm/lib/avm/launcher.rb +9 -0
- data/sub/avm/lib/avm/registry.rb +0 -2
- data/sub/avm/lib/avm/version.rb +1 -1
- data/sub/avm-eac_php_base0/Gemfile +8 -0
- data/sub/avm-eac_php_base0/avm-eac_php_base0.gemspec +18 -0
- data/sub/avm-eac_php_base0/lib/avm/eac_php_base0/version.rb +7 -0
- data/sub/avm-eac_php_base0/lib/avm/eac_php_base0.rb +9 -0
- data/sub/avm-eac_php_base0/spec/rubocop_spec.rb +3 -0
- data/sub/avm-eac_php_base0/spec/spec_helper.rb +4 -0
- data/sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec +1 -1
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/apache_host.rb +2 -1
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy/git_info.rb +2 -1
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy.rb +0 -1
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
- data/sub/avm-git/Gemfile +8 -0
- data/sub/avm-git/avm-git.gemspec +22 -0
- data/sub/avm-git/lib/avm/git/auto_commit/commit_info.rb +23 -0
- data/sub/avm-git/lib/avm/git/auto_commit/rules/base.rb +39 -0
- data/sub/avm-git/lib/avm/git/auto_commit/rules/last.rb +19 -0
- data/sub/avm-git/lib/avm/git/auto_commit/rules/manual.rb +45 -0
- data/sub/avm-git/lib/avm/git/auto_commit/rules/new.rb +24 -0
- data/sub/avm-git/lib/avm/git/auto_commit/rules/nth.rb +31 -0
- data/sub/avm-git/lib/avm/git/auto_commit/rules/unique.rb +21 -0
- data/sub/avm-git/lib/avm/git/auto_commit/rules.rb +31 -0
- data/sub/avm-git/lib/avm/git/auto_commit_path/ruby.rb +20 -0
- data/sub/avm-git/lib/avm/git/auto_commit_path.rb +28 -0
- data/sub/avm-git/lib/avm/git/commit/class_methods.rb +31 -0
- data/sub/avm-git/lib/avm/git/commit/deploy.rb +38 -0
- data/sub/avm-git/lib/avm/git/commit/deploy_methods.rb +19 -0
- data/sub/avm-git/lib/avm/git/commit/diff_tree_line.rb +32 -0
- data/sub/avm-git/lib/avm/git/commit/file.rb +46 -0
- data/sub/avm-git/lib/avm/git/commit.rb +59 -0
- data/sub/avm-git/lib/avm/git/file_auto_fixup.rb +83 -0
- data/sub/avm-git/lib/avm/git/issue/complete/commits.rb +42 -0
- data/sub/avm-git/lib/avm/git/issue/complete/git_subrepos.rb +23 -0
- data/sub/avm-git/lib/avm/git/issue/complete/local_branch.rb +61 -0
- data/sub/avm-git/lib/avm/git/issue/complete/local_tag.rb +39 -0
- data/sub/avm-git/lib/avm/git/issue/complete/push.rb +60 -0
- data/sub/avm-git/lib/avm/git/issue/complete/remote.rb +33 -0
- data/sub/avm-git/lib/avm/git/issue/complete/test.rb +40 -0
- data/sub/avm-git/lib/avm/git/issue/complete/tracker.rb +28 -0
- data/sub/avm-git/lib/avm/git/issue/complete/validation.rb +39 -0
- data/sub/avm-git/lib/avm/git/issue/complete/validations.rb +53 -0
- data/sub/avm-git/lib/avm/git/issue/complete/working_tree.rb +19 -0
- data/sub/avm-git/lib/avm/git/issue/complete.rb +66 -0
- data/sub/avm-git/lib/avm/git/issue/deliver.rb +56 -0
- data/sub/{avm-tools/lib/avm/patches.rb → avm-git/lib/avm/git/issue.rb} +3 -1
- data/sub/avm-git/lib/avm/git/organize/reference_update.rb +34 -0
- data/sub/avm-git/lib/avm/git/organize/repository.rb +76 -0
- data/sub/avm-git/lib/avm/git/organize.rb +11 -0
- data/sub/avm-git/lib/avm/git/revision_test.rb +105 -0
- data/sub/avm-git/lib/avm/git/scms/git/change_tracker.rb +35 -0
- data/sub/avm-git/lib/avm/git/scms/git/commit.rb +55 -0
- data/sub/avm-git/lib/avm/git/scms/git.rb +73 -0
- data/sub/avm-git/lib/avm/git/scms/git_subrepo.rb +39 -0
- data/sub/avm-git/lib/avm/git/scms/provider.rb +19 -0
- data/sub/avm-git/lib/avm/git/scms.rb +11 -0
- data/sub/avm-git/lib/avm/git/subrepo_check/parent.rb +51 -0
- data/sub/avm-git/lib/avm/git/subrepo_check/remote.rb +89 -0
- data/sub/avm-git/lib/avm/git/subrepo_check/show_result.rb +32 -0
- data/sub/avm-git/lib/avm/git/subrepo_check.rb +38 -0
- data/sub/avm-git/lib/avm/git/subrepo_checks.rb +59 -0
- data/sub/{avm-tools/lib/avm/launcher → avm-git/lib/avm/git}/vendor/github.rb +1 -1
- data/sub/avm-git/lib/avm/git/vendor.rb +11 -0
- data/sub/avm-git/lib/avm/git/version.rb +7 -0
- data/sub/avm-git/lib/avm/git.rb +11 -0
- data/sub/avm-git/spec/lib/avm/git/auto_commit_path_spec.rb +21 -0
- data/sub/avm-git/spec/lib/avm/git/commit/deploy_spec.rb +93 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec.rb +13 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.source.out +1 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.target.yaml +7 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.source.out +1 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.target.yaml +7 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.source.out +1 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.target.yaml +7 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.source.out +2 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.target.yaml +13 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.source.out +2 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.target.yaml +13 -0
- data/sub/avm-git/spec/lib/avm/git/commit_spec.rb +56 -0
- data/sub/avm-git/spec/lib/avm/git/scms/git_spec.rb +8 -0
- data/sub/avm-git/spec/lib/avm/git/scms/git_subrepo_spec.rb +8 -0
- data/sub/{avm-tools/spec/lib/avm/launcher → avm-git/spec/lib/avm/git}/vendor/github_spec.rb +4 -4
- data/sub/avm-git/spec/rubocop_spec.rb +3 -0
- data/sub/avm-git/spec/spec_helper.rb +4 -0
- data/sub/avm-tools/avm-tools.gemspec +3 -3
- data/sub/avm-tools/lib/avm/launcher/git/warp_base.rb +2 -2
- data/sub/avm-tools/lib/avm/projects/stereotypes/git_subrepo/warp.rb +2 -2
- data/sub/avm-tools/lib/avm/projects/stereotypes.rb +0 -9
- data/sub/avm-tools/lib/avm/tools/core_ext.rb +0 -1
- data/sub/avm-tools/lib/avm/tools/runner/launcher.rb +1 -0
- data/sub/avm-tools/lib/avm/tools/runner/source/info.rb +0 -4
- data/sub/avm-tools/lib/avm/tools/runner/source/test.rb +1 -1
- data/sub/avm-tools/lib/avm/tools/runner/source.rb +0 -12
- data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
- data/sub/avm-tools/spec/lib/avm/launcher/context_spec.rb +3 -3
- data/sub/eac_docker/eac_docker.gemspec +2 -2
- data/sub/eac_docker/lib/eac_docker/images/templatized.rb +7 -1
- data/sub/eac_docker/lib/eac_docker/version.rb +1 -1
- metadata +123 -37
- data/sub/avm-tools/lib/avm/launcher/instances.rb +0 -6
- data/sub/avm-tools/lib/avm/launcher/paths.rb +0 -4
- data/sub/avm-tools/lib/avm/launcher/publish.rb +0 -4
- data/sub/avm-tools/lib/avm/launcher/vendor.rb +0 -3
- data/sub/avm-tools/lib/avm/patches/i18n.rb +0 -22
- data/sub/avm-tools/lib/avm/projects/stereotype/job_comparator.rb +0 -32
- data/sub/avm-tools/lib/avm/projects/stereotypes/rails_application/local_project_mixin.rb +0 -18
- data/sub/avm-tools/lib/avm/projects/stereotypes/rails_application.rb +0 -25
- data/sub/avm-tools/lib/avm/projects/stereotypes/redmine_plugin.rb +0 -23
- data/sub/avm-tools/lib/avm/stereotypes.rb +0 -9
- data/sub/avm-tools/lib/avm/tools/source.rb +0 -64
- data/sub/avm-tools/locale/en.yml +0 -7
- data/sub/avm-tools/locale/pt-BR.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae4239b30a17da4a1f143e5aeddcf1b845a6234b2b95049d44a18c7fe7d8c041
|
4
|
+
data.tar.gz: 394046628010ad6317a184017d7749895373a58ffdf03413bd8f899c77c9b70f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a950c92642fa1ed6ef188d2d4383356b5857d917a4be35ef504cab08a1f10d9dff64dcfc0d65b29c0665b52ca0be36d5d773796045209445c896c5a8c521cc6a
|
7
|
+
data.tar.gz: 74983a5dab48ace1f6c06638e421aed086c32b9c9579e1585289c6a97aad8db4ab76423881a7700a319ea1c877671c5749f232962dc1f8791739dd014fcb5db0
|
data/Gemfile.lock
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eac_tools (0.
|
5
|
-
avm (~> 0.
|
4
|
+
eac_tools (0.36.0)
|
5
|
+
avm (~> 0.47)
|
6
6
|
avm-eac_asciidoctor_base0 (~> 0.7, >= 0.7.1)
|
7
7
|
avm-eac_generic_base0 (~> 0.5)
|
8
8
|
avm-eac_latex_base0 (~> 0.2, >= 0.2.1)
|
9
|
+
avm-eac_php_base0 (~> 0.1)
|
9
10
|
avm-eac_rails_base0 (~> 0.8, >= 0.8.1)
|
10
11
|
avm-eac_rails_base1 (~> 0.7)
|
11
12
|
avm-eac_redmine_base0 (~> 0.16)
|
12
13
|
avm-eac_redmine_plugin_base0 (~> 0.3)
|
13
14
|
avm-eac_ruby_base1 (~> 0.22)
|
14
|
-
avm-eac_webapp_base0 (~> 0.9)
|
15
|
+
avm-eac_webapp_base0 (~> 0.9, >= 0.9.2)
|
15
16
|
avm-eac_wordpress_base0 (~> 0.2, >= 0.2.1)
|
16
|
-
avm-tools (~> 0.
|
17
|
+
avm-tools (~> 0.140)
|
17
18
|
eac_ruby_utils (~> 0.104)
|
18
19
|
|
19
20
|
PATH
|
@@ -41,6 +42,12 @@ PATH
|
|
41
42
|
avm-eac_webapp_base0 (~> 0.9)
|
42
43
|
eac_ruby_utils (~> 0.104)
|
43
44
|
|
45
|
+
PATH
|
46
|
+
remote: sub/avm-eac_php_base0
|
47
|
+
specs:
|
48
|
+
avm-eac_php_base0 (0.1.0)
|
49
|
+
eac_ruby_utils (~> 0.104)
|
50
|
+
|
44
51
|
PATH
|
45
52
|
remote: sub/avm-eac_rails_base0
|
46
53
|
specs:
|
@@ -88,8 +95,8 @@ PATH
|
|
88
95
|
PATH
|
89
96
|
remote: sub/avm-eac_webapp_base0
|
90
97
|
specs:
|
91
|
-
avm-eac_webapp_base0 (0.9.
|
92
|
-
avm (~> 0.
|
98
|
+
avm-eac_webapp_base0 (0.9.2)
|
99
|
+
avm (~> 0.46)
|
93
100
|
avm-eac_generic_base0 (~> 0.5)
|
94
101
|
avm-eac_postgresql_base0 (~> 0.2)
|
95
102
|
avm-eac_ubuntu_base0 (~> 0.3)
|
@@ -113,16 +120,25 @@ PATH
|
|
113
120
|
eac_ruby_utils (~> 0.103)
|
114
121
|
eac_templates (~> 0.3, >= 0.3.2)
|
115
122
|
|
123
|
+
PATH
|
124
|
+
remote: sub/avm-git
|
125
|
+
specs:
|
126
|
+
avm-git (0.5.0)
|
127
|
+
avm (~> 0.46)
|
128
|
+
avm-files (~> 0.4, >= 0.4.1)
|
129
|
+
eac_git (~> 0.12, >= 0.12.3)
|
130
|
+
eac_ruby_utils (~> 0.104)
|
131
|
+
|
116
132
|
PATH
|
117
133
|
remote: sub/avm-tools
|
118
134
|
specs:
|
119
|
-
avm-tools (0.
|
135
|
+
avm-tools (0.140.0)
|
120
136
|
aranha-parsers (~> 0.14, >= 0.14.3)
|
121
|
-
avm (~> 0.
|
137
|
+
avm (~> 0.46)
|
122
138
|
avm-eac_ruby_base1 (~> 0.22)
|
123
139
|
avm-eac_ubuntu_base0 (~> 0.3)
|
124
140
|
avm-files (~> 0.4, >= 0.4.1)
|
125
|
-
avm-git (~> 0.
|
141
|
+
avm-git (~> 0.5)
|
126
142
|
clipboard (~> 1.3, >= 1.3.6)
|
127
143
|
curb (~> 0.9, >= 0.9.11)
|
128
144
|
eac_git (~> 0.12, >= 0.12.3)
|
@@ -134,10 +150,10 @@ PATH
|
|
134
150
|
PATH
|
135
151
|
remote: sub/avm
|
136
152
|
specs:
|
137
|
-
avm (0.
|
153
|
+
avm (0.47.0)
|
138
154
|
eac_cli (~> 0.28)
|
139
155
|
eac_config (~> 0.11, >= 0.11.1)
|
140
|
-
eac_docker (~> 0.
|
156
|
+
eac_docker (~> 0.5)
|
141
157
|
eac_git (~> 0.12, >= 0.12.3)
|
142
158
|
eac_ruby_utils (~> 0.104)
|
143
159
|
eac_templates (~> 0.3, >= 0.3.2)
|
@@ -163,9 +179,9 @@ PATH
|
|
163
179
|
PATH
|
164
180
|
remote: sub/eac_docker
|
165
181
|
specs:
|
166
|
-
eac_docker (0.
|
167
|
-
eac_ruby_utils (~> 0.
|
168
|
-
eac_templates (~> 0.3, >= 0.3.
|
182
|
+
eac_docker (0.5.0)
|
183
|
+
eac_ruby_utils (~> 0.104)
|
184
|
+
eac_templates (~> 0.3, >= 0.3.2)
|
169
185
|
|
170
186
|
PATH
|
171
187
|
remote: sub/eac_fs
|
@@ -230,10 +246,6 @@ GEM
|
|
230
246
|
avm (~> 0.7)
|
231
247
|
eac_ruby_utils (~> 0.77, >= 0.77.1)
|
232
248
|
eac_templates (~> 0.3)
|
233
|
-
avm-git (0.4.0)
|
234
|
-
avm-files (~> 0.1)
|
235
|
-
eac_git (~> 0.11)
|
236
|
-
eac_ruby_utils (~> 0.76)
|
237
249
|
clipboard (1.3.6)
|
238
250
|
colorize (0.8.1)
|
239
251
|
concurrent-ruby (1.1.10)
|
@@ -353,6 +365,7 @@ DEPENDENCIES
|
|
353
365
|
avm-eac_asciidoctor_base0!
|
354
366
|
avm-eac_generic_base0!
|
355
367
|
avm-eac_latex_base0!
|
368
|
+
avm-eac_php_base0!
|
356
369
|
avm-eac_rails_base0!
|
357
370
|
avm-eac_rails_base1!
|
358
371
|
avm-eac_redmine_base0!
|
@@ -361,6 +374,7 @@ DEPENDENCIES
|
|
361
374
|
avm-eac_webapp_base0!
|
362
375
|
avm-eac_wordpress_base0!
|
363
376
|
avm-files!
|
377
|
+
avm-git!
|
364
378
|
avm-tools!
|
365
379
|
eac_cli!
|
366
380
|
eac_config!
|
data/lib/eac_tools/version.rb
CHANGED
data/sub/avm/avm.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
|
15
15
|
s.add_dependency 'eac_cli', '~> 0.28'
|
16
16
|
s.add_dependency 'eac_config', '~> 0.11', '>= 0.11.1'
|
17
|
-
s.add_dependency 'eac_docker', '~> 0.
|
17
|
+
s.add_dependency 'eac_docker', '~> 0.5'
|
18
18
|
s.add_dependency 'eac_git', '~> 0.12', '>= 0.12.3'
|
19
19
|
s.add_dependency 'eac_ruby_utils', '~> 0.104'
|
20
20
|
s.add_dependency 'eac_templates', '~> 0.3', '>= 0.3.2'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,13 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
|
3
5
|
module Avm
|
4
6
|
module Launcher
|
5
7
|
class Project
|
6
|
-
|
7
|
-
|
8
|
-
def initialize(name, instances)
|
9
|
-
@name = name
|
10
|
-
@instances = instances.to_a
|
8
|
+
common_constructor :name, :instances do
|
9
|
+
self.instances = instances.to_a
|
11
10
|
end
|
12
11
|
|
13
12
|
def to_s
|
@@ -1,16 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'avm/launcher/errors/base'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
4
5
|
|
5
6
|
module Avm
|
6
7
|
module Launcher
|
7
8
|
module Publish
|
8
9
|
class Base
|
9
|
-
|
10
|
-
|
11
|
-
def initialize(instance)
|
12
|
-
@instance = instance
|
13
|
-
end
|
10
|
+
common_constructor :instance
|
14
11
|
|
15
12
|
def run
|
16
13
|
s = check
|
data/sub/avm/lib/avm/registry.rb
CHANGED
data/sub/avm/lib/avm/version.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path('lib', __dir__)
|
4
|
+
|
5
|
+
require 'avm/eac_php_base0/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = 'avm-eac_php_base0'
|
9
|
+
s.version = Avm::EacPhpBase0::VERSION
|
10
|
+
s.authors = ['Eduardo H. Bogoni']
|
11
|
+
s.summary = 'AVM stereotype for PHP applications.'
|
12
|
+
|
13
|
+
s.files = Dir['{lib,locale,template}/**/*']
|
14
|
+
|
15
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.104'
|
16
|
+
|
17
|
+
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5', '>= 0.5.1'
|
18
|
+
end
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
|
13
13
|
s.files = Dir['{lib,template}/**/*']
|
14
14
|
|
15
|
-
s.add_dependency 'avm', '~> 0.
|
15
|
+
s.add_dependency 'avm', '~> 0.46'
|
16
16
|
s.add_dependency 'avm-eac_generic_base0', '~> 0.5'
|
17
17
|
s.add_dependency 'avm-eac_postgresql_base0', '~> 0.2'
|
18
18
|
s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.3'
|
@@ -15,7 +15,8 @@ module Avm
|
|
15
15
|
include ::Avm::Entries::Jobs::Base
|
16
16
|
|
17
17
|
def directory_extra_config
|
18
|
-
instance.entry(APACHE_DIRECTORY_EXTRA_CONFIG_KEY).
|
18
|
+
instance.entry(APACHE_DIRECTORY_EXTRA_CONFIG_KEY).optional_value
|
19
|
+
.if_present { |v| " #{v}\n" }
|
19
20
|
end
|
20
21
|
|
21
22
|
def no_ssl_site_content
|
@@ -42,8 +42,9 @@ module Avm
|
|
42
42
|
instance.source_instance.read_entry(::Avm::Instances::EntryKeys::INSTALL_PATH)
|
43
43
|
end
|
44
44
|
|
45
|
+
# @return [EacGit::Local]
|
45
46
|
def git_uncached
|
46
|
-
|
47
|
+
instance.application.local_source.scm.git_repo
|
47
48
|
end
|
48
49
|
|
49
50
|
def instance_branch
|
data/sub/avm-git/Gemfile
ADDED
@@ -0,0 +1,22 @@
|
|
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}/**/*']
|
14
|
+
|
15
|
+
s.add_dependency 'avm', '~> 0.46'
|
16
|
+
s.add_dependency 'avm-files', '~> 0.4', '>= 0.4.1'
|
17
|
+
s.add_dependency 'eac_git', '~> 0.12', '>= 0.12.3'
|
18
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.104'
|
19
|
+
|
20
|
+
s.add_development_dependency 'aranha-parsers', '~> 0.8', '>= 0.8.5'
|
21
|
+
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.4'
|
22
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module Git
|
7
|
+
module AutoCommit
|
8
|
+
class CommitInfo
|
9
|
+
enable_immutable
|
10
|
+
|
11
|
+
immutable_accessor :fixup, :message
|
12
|
+
|
13
|
+
def git_commit_args
|
14
|
+
r = fixup.if_present([]) { |v| ['--fixup', v.sha1] }
|
15
|
+
r += message.if_present([]) { |v| ['--message', v] }
|
16
|
+
return r if r.any?
|
17
|
+
|
18
|
+
raise 'Argument list is empty'
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module Git
|
7
|
+
module AutoCommit
|
8
|
+
module Rules
|
9
|
+
class Base
|
10
|
+
class << self
|
11
|
+
def keys
|
12
|
+
[long_key, short_key]
|
13
|
+
end
|
14
|
+
|
15
|
+
def long_key
|
16
|
+
name.demodulize.variableize
|
17
|
+
end
|
18
|
+
|
19
|
+
def short_key
|
20
|
+
long_key[0, 1]
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def with_file(file)
|
25
|
+
self.class.const_get('WithFile').new(self, file)
|
26
|
+
end
|
27
|
+
|
28
|
+
class WithFile
|
29
|
+
common_constructor :rule, :file
|
30
|
+
|
31
|
+
def new_commit_info
|
32
|
+
::Avm::Git::AutoCommit::CommitInfo.new
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/git/auto_commit/rules/base'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module Git
|
7
|
+
module AutoCommit
|
8
|
+
module Rules
|
9
|
+
class Last < ::Avm::Git::AutoCommit::Rules::Base
|
10
|
+
class WithFile < ::Avm::Git::AutoCommit::Rules::Base::WithFile
|
11
|
+
def commit_info
|
12
|
+
file.commits.last.if_present { |v| new_commit_info.fixup(v) }
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/git/auto_commit/rules/base'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module Git
|
7
|
+
module AutoCommit
|
8
|
+
module Rules
|
9
|
+
class Manual < ::Avm::Git::AutoCommit::Rules::Base
|
10
|
+
class WithFile < ::Avm::Git::AutoCommit::Rules::Base::WithFile
|
11
|
+
enable_speaker
|
12
|
+
|
13
|
+
COMMIT_FORMAT = '%h - %s (%cr)'
|
14
|
+
SKIP_OPTION = 's'
|
15
|
+
|
16
|
+
def commit_info
|
17
|
+
return nil unless file.commits.any?
|
18
|
+
|
19
|
+
commits_banner
|
20
|
+
input('Which commit?', list: commits_by_position).if_present do |v|
|
21
|
+
new_commit_info.fixup(v)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def commits_banner
|
26
|
+
file.commits.each_with_index do |commit, _index|
|
27
|
+
infov " #{commit.position}", format_commit(commit)
|
28
|
+
end
|
29
|
+
infov " #{SKIP_OPTION}", 'skip'
|
30
|
+
end
|
31
|
+
|
32
|
+
def commits_by_position
|
33
|
+
(file.commits.map { |commit| [commit.position.to_s, commit] } + [[SKIP_OPTION, nil]])
|
34
|
+
.to_h
|
35
|
+
end
|
36
|
+
|
37
|
+
def format_commit(commit)
|
38
|
+
commit.format(COMMIT_FORMAT)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/git/auto_commit/rules/base'
|
4
|
+
require 'avm/git/auto_commit_path'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module Git
|
8
|
+
module AutoCommit
|
9
|
+
module Rules
|
10
|
+
class New < ::Avm::Git::AutoCommit::Rules::Base
|
11
|
+
class WithFile < ::Avm::Git::AutoCommit::Rules::Base::WithFile
|
12
|
+
def auto_commit_path
|
13
|
+
::Avm::Git::AutoCommitPath.new(file.git, file.path)
|
14
|
+
end
|
15
|
+
|
16
|
+
def commit_info
|
17
|
+
new_commit_info.message(auto_commit_path.commit_message)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/git/auto_commit/rules/base'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module Git
|
7
|
+
module AutoCommit
|
8
|
+
module Rules
|
9
|
+
class Nth < ::Avm::Git::AutoCommit::Rules::Base
|
10
|
+
SHORT_KEY = 't'
|
11
|
+
|
12
|
+
class << self
|
13
|
+
def short_key
|
14
|
+
SHORT_KEY
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
common_constructor :number do
|
19
|
+
self.number = number.to_i
|
20
|
+
end
|
21
|
+
|
22
|
+
class WithFile < ::Avm::Git::AutoCommit::Rules::Base::WithFile
|
23
|
+
def commit_info
|
24
|
+
file.commits(number - 1).if_present { |v| new_commit_info.fixup(v) }
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/git/auto_commit/rules/base'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module Git
|
7
|
+
module AutoCommit
|
8
|
+
module Rules
|
9
|
+
class Unique < ::Avm::Git::AutoCommit::Rules::Base
|
10
|
+
class WithFile < ::Avm::Git::AutoCommit::Rules::Base::WithFile
|
11
|
+
def commit_info
|
12
|
+
return nil unless file.commits.count == 1
|
13
|
+
|
14
|
+
new_commit_info.fixup(file.commits.first)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|