eac_tools 0.86.3 → 0.86.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +13 -27
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm/avm.gemspec +2 -1
- data/sub/avm/lib/avm/scms/base.rb +5 -0
- data/sub/avm/lib/avm/sources/base.rb +5 -0
- data/sub/avm/lib/avm/version.rb +1 -1
- data/sub/{avm-tools → avm}/spec/lib/avm/launcher/context_spec.rb +7 -7
- data/sub/avm/spec/spec_helper/eac_launcher/settings.yml +6 -0
- data/sub/avm/spec/spec_helper.rb +1 -0
- data/sub/avm-git/avm-git.gemspec +3 -1
- data/sub/avm-git/lib/avm/git/issue/complete/tracker.rb +0 -7
- data/sub/avm-git/lib/avm/git/issue/complete.rb +9 -6
- data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/commit.rb +3 -3
- data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/deploy.rb +3 -3
- data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/dirty_files.rb +4 -4
- data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/organize.rb +3 -3
- data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/revisions_test.rb +4 -4
- data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/subrepo/check.rb +4 -4
- data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/subrepo/clone.rb +4 -4
- data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/subrepo/fix.rb +4 -4
- data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/subrepo.rb +4 -4
- data/sub/{avm-tools/lib/avm/tools/runner/git.rb → avm-git/lib/avm/git/runners/base.rb} +11 -4
- data/sub/{avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0.rb → avm-git/lib/avm/git/runners.rb} +4 -2
- data/sub/avm-git/lib/avm/git/scms/git.rb +7 -0
- data/sub/avm-git/lib/avm/git/version.rb +1 -1
- data/sub/{avm-tools → avm-git}/spec/lib/avm/git/launcher_stereotypes/git_subrepo/publish_spec.rb +4 -4
- data/sub/{avm-tools/spec/lib/avm/tools/runner/git → avm-git/spec/lib/avm/git/runners/base}/deploy_spec.rb +20 -20
- data/sub/avm-git/spec/spec_helper/eac_launcher.rb +50 -0
- data/sub/avm-git/spec/spec_helper.rb +2 -1
- data/sub/avm-tools/avm-tools.gemspec +3 -12
- data/sub/avm-tools/lib/avm/tools/runner/files/format.rb +8 -8
- data/sub/avm-tools/lib/avm/tools/runner/source/issue/complete.rb +13 -7
- data/sub/avm-tools/lib/avm/tools/runner/source/issue.rb +1 -1
- data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
- data/sub/avm-tools/lib/avm/tools.rb +3 -2
- data/sub/avm-tools/spec/spec_helper.rb +0 -3
- metadata +46 -54
- data/sub/avm-eac_postgresql_base0/Gemfile +0 -8
- data/sub/avm-eac_postgresql_base0/avm-eac_postgresql_base0.gemspec +0 -20
- data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance/assert.rb +0 -77
- data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance/commands.rb +0 -79
- data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance/data_unit.rb +0 -65
- data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance.rb +0 -49
- data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance_with.rb +0 -25
- data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/version.rb +0 -7
- data/sub/avm-eac_postgresql_base0/spec/rubocop_spec.rb +0 -3
- data/sub/avm-eac_postgresql_base0/spec/spec_helper.rb +0 -4
- /data/sub/{avm-tools → avm}/spec/dummy/avm-tools_stub/avm-tools.gemspec +0 -0
- /data/sub/{avm-tools → avm}/spec/dummy/avm-tools_stub/lib/avm/tools/version.rb +0 -0
- /data/sub/{avm-tools → avm}/spec/dummy/avm-tools_stub/lib/avm/tools.rb +0 -0
- /data/sub/{avm-tools → avm}/spec/dummy/ruby_gem_stub/lib/ruby_gem_stub/version.rb +0 -0
- /data/sub/{avm-tools → avm}/spec/dummy/ruby_gem_stub/lib/ruby_gem_stub.rb +0 -0
- /data/sub/{avm-tools → avm}/spec/dummy/ruby_gem_stub/ruby_gem_stub.gemspec +0 -0
- /data/sub/{avm-tools → avm}/spec/lib/avm/launcher/context_spec.yml +0 -0
- /data/sub/{avm-tools → avm}/spec/spec_helper/eac_launcher.rb +0 -0
- /data/sub/{avm-tools → avm}/template/avm/self/docker_image/Dockerfile +0 -0
- /data/sub/{avm-tools → avm}/template/avm/self/docker_image/entrypoint.sh +0 -0
- /data/sub/{avm-tools → avm-git}/spec/lib/avm/git/launcher_stereotypes/git_subrepo/publish_spec_settings.yml +0 -0
- /data/sub/{avm-tools → avm-git}/spec/lib/avm/git/launcher_stereotypes/git_subrepo/warp_spec.rb +0 -0
- /data/sub/{avm-tools → avm-git}/spec/lib/avm/git/launcher_stereotypes/git_subrepo/warp_spec_settings.yml +0 -0
- /data/sub/{avm-tools/spec/lib/avm/tools/runner/git → avm-git/spec/lib/avm/git/runners/base}/deploy_spec_files/append1/stub3.txt.template +0 -0
- /data/sub/{avm-tools/spec/lib/avm/tools/runner/git → avm-git/spec/lib/avm/git/runners/base}/deploy_spec_files/append2/stub4.txt +0 -0
- /data/sub/{avm-tools → avm-git}/spec/spec_helper/eac_launcher/settings.yml +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a3acc6bda5ae96d94b303fcf69e2e9f2e4b860bd19cb9d228919171d1bd172d
|
4
|
+
data.tar.gz: 20787d56237058d215e77bd713b304b877413e8b6d65682eac8b3fe236da1288
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a607f5f6aebeebafb2fdfc943a8c76ab32358c5055d4e99c15e7ddd35b62d0d19686c37dd0016eb9590832f06bfeafeef735b488df543af85f4974a5b423102
|
7
|
+
data.tar.gz: caeea6fd5aef5b034e494b7ca9ee3db07da9199bce519632202559f5aa201928cce14863f2244daafefbf86a35bf4fa65f62d1102e93f67e290a9090f0cbe1fb
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eac_tools (0.86.
|
5
|
-
avm (~> 0.
|
4
|
+
eac_tools (0.86.5)
|
5
|
+
avm (~> 0.86, >= 0.86.1)
|
6
6
|
avm-eac_asciidoctor_base0 (~> 0.22)
|
7
7
|
avm-eac_generic_base0 (~> 0.12, >= 0.12.2)
|
8
8
|
avm-eac_github_base0 (~> 0.3)
|
@@ -18,15 +18,8 @@ PATH
|
|
18
18
|
avm-eac_ruby_base1 (~> 0.33, >= 0.33.1)
|
19
19
|
avm-eac_webapp_base0 (~> 0.18, >= 0.18.3)
|
20
20
|
avm-eac_wordpress_base0 (~> 0.3, >= 0.3.1)
|
21
|
-
avm-git (~> 0.
|
22
|
-
avm-tools (~> 0.
|
23
|
-
eac_ruby_utils (~> 0.121)
|
24
|
-
|
25
|
-
PATH
|
26
|
-
remote: sub/avm-eac_postgresql_base0
|
27
|
-
specs:
|
28
|
-
avm-eac_postgresql_base0 (0.5.3)
|
29
|
-
avm (~> 0.85)
|
21
|
+
avm-git (~> 0.17)
|
22
|
+
avm-tools (~> 0.161)
|
30
23
|
eac_ruby_utils (~> 0.121)
|
31
24
|
|
32
25
|
PATH
|
@@ -55,8 +48,8 @@ PATH
|
|
55
48
|
PATH
|
56
49
|
remote: sub/avm-git
|
57
50
|
specs:
|
58
|
-
avm-git (0.
|
59
|
-
avm (~> 0.
|
51
|
+
avm-git (0.17.0)
|
52
|
+
avm (~> 0.86, >= 0.86.1)
|
60
53
|
avm-files (~> 0.7)
|
61
54
|
eac_git (~> 0.16)
|
62
55
|
eac_ruby_utils (~> 0.121)
|
@@ -65,25 +58,15 @@ PATH
|
|
65
58
|
PATH
|
66
59
|
remote: sub/avm-tools
|
67
60
|
specs:
|
68
|
-
avm-tools (0.
|
69
|
-
|
70
|
-
avm (~> 0.85)
|
71
|
-
avm-eac_ruby_base1 (~> 0.33, >= 0.33.1)
|
72
|
-
avm-eac_ubuntu_base0 (~> 0.5)
|
73
|
-
avm-files (~> 0.7)
|
74
|
-
avm-git (~> 0.15)
|
61
|
+
avm-tools (0.161.0)
|
62
|
+
avm (~> 0.86, >= 0.86.1)
|
75
63
|
clipboard (~> 1.3, >= 1.3.6)
|
76
|
-
curb (~> 0.9, >= 0.9.11)
|
77
|
-
eac_git (~> 0.16)
|
78
64
|
eac_ruby_base0 (~> 0.19)
|
79
|
-
eac_templates (~> 0.5, >= 0.5.1)
|
80
|
-
git (~> 1.19, >= 1.19.1)
|
81
|
-
ruby-progressbar (~> 1.13)
|
82
65
|
|
83
66
|
PATH
|
84
67
|
remote: sub/avm
|
85
68
|
specs:
|
86
|
-
avm (0.
|
69
|
+
avm (0.86.1)
|
87
70
|
aranha-parsers (~> 0.22)
|
88
71
|
eac_cli (~> 0.40, >= 0.40.1)
|
89
72
|
eac_config (~> 0.14, >= 0.14.2)
|
@@ -94,6 +77,7 @@ PATH
|
|
94
77
|
filesize (~> 0.2)
|
95
78
|
htmlbeautifier (~> 1.4, >= 1.4.3)
|
96
79
|
minitar (~> 0.9)
|
80
|
+
ruby-progressbar (~> 1.13)
|
97
81
|
|
98
82
|
PATH
|
99
83
|
remote: sub/eac_git
|
@@ -147,6 +131,9 @@ GEM
|
|
147
131
|
avm-eac_generic_base0 (~> 0.12, >= 0.12.2)
|
148
132
|
avm-eac_webapp_base0 (~> 0.18, >= 0.18.3)
|
149
133
|
eac_ruby_utils (~> 0.121)
|
134
|
+
avm-eac_postgresql_base0 (0.5.3)
|
135
|
+
avm (~> 0.85)
|
136
|
+
eac_ruby_utils (~> 0.121)
|
150
137
|
avm-eac_python_base0 (0.2.2)
|
151
138
|
avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
|
152
139
|
eac_ruby_utils (~> 0.119, >= 0.119.2)
|
@@ -355,7 +342,6 @@ PLATFORMS
|
|
355
342
|
|
356
343
|
DEPENDENCIES
|
357
344
|
avm!
|
358
|
-
avm-eac_postgresql_base0!
|
359
345
|
avm-eac_redmine_plugin_base0!
|
360
346
|
avm-eac_ubuntu_base0!
|
361
347
|
avm-eac_wordpress_base0!
|
data/lib/eac_tools/version.rb
CHANGED
data/sub/avm/avm.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.authors = ['Eduardo H. Bogoni']
|
11
11
|
s.summary = 'Ruby base library for Agora Vai! Methodology (https://avm.esquiloazul.tech).'
|
12
12
|
|
13
|
-
s.files = Dir['{lib,locale}/**/*']
|
13
|
+
s.files = Dir['{lib,locale,template}/**/*']
|
14
14
|
s.required_ruby_version = '>= 2.7'
|
15
15
|
|
16
16
|
s.add_dependency 'aranha-parsers', '~> 0.22'
|
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.add_dependency 'filesize', '~> 0.2'
|
24
24
|
s.add_dependency 'htmlbeautifier', '~> 1.4', '>= 1.4.3'
|
25
25
|
s.add_dependency 'minitar', '~> 0.9'
|
26
|
+
s.add_dependency 'ruby-progressbar', '~> 1.13'
|
26
27
|
|
27
28
|
s.add_development_dependency 'avm-eac_ruby_base1', '~> 0.33'
|
28
29
|
s.add_development_dependency 'avm-git', '~> 0.14'
|
@@ -20,6 +20,11 @@ module Avm
|
|
20
20
|
raise_abstract_method __method__
|
21
21
|
end
|
22
22
|
|
23
|
+
# @param options [Hash<Symbol, Object>]
|
24
|
+
def completer(options = {}) # rubocop:disable Lint/UnusedMethodArgument
|
25
|
+
raise_abstract_method __method__
|
26
|
+
end
|
27
|
+
|
23
28
|
# @return [Avm::Scms::Interval]
|
24
29
|
def interval(_from, _to)
|
25
30
|
raise_abstract_method __method__
|
data/sub/avm/lib/avm/version.rb
CHANGED
@@ -32,7 +32,7 @@ RSpec.describe Avm::Launcher::Context do
|
|
32
32
|
mylib_repos
|
33
33
|
end
|
34
34
|
|
35
|
-
context 'when sub is a GitSubrepo' do
|
35
|
+
context 'when sub is a GitSubrepo' do
|
36
36
|
let(:sub) { described_class.current.instance('/app/sub1') }
|
37
37
|
let(:instance) { described_class.current.instance('/app/sub1/mylib') }
|
38
38
|
|
@@ -53,7 +53,7 @@ RSpec.describe Avm::Launcher::Context do
|
|
53
53
|
it { expect(instance.stereotypes).to include(Avm::Git::LauncherStereotypes::GitSubrepo) }
|
54
54
|
end
|
55
55
|
|
56
|
-
context 'when sub is a GitSubtree' do
|
56
|
+
context 'when sub is a GitSubtree' do
|
57
57
|
let(:sub) { described_class.current.instance('/app/sub1') }
|
58
58
|
let(:instance) { described_class.current.instance('/app/sub1/mylib') }
|
59
59
|
|
@@ -75,7 +75,7 @@ RSpec.describe Avm::Launcher::Context do
|
|
75
75
|
it { expect(instance.stereotypes).to include(Avm::Git::LauncherStereotypes::GitSubtree) }
|
76
76
|
end
|
77
77
|
|
78
|
-
context 'when subtree is present' do
|
78
|
+
context 'when subtree is present' do
|
79
79
|
before do
|
80
80
|
app = init_git('subtree_main_app')
|
81
81
|
touch_commit(app, 'file1')
|
@@ -90,7 +90,7 @@ RSpec.describe Avm::Launcher::Context do
|
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
93
|
-
context 'when subinstance in HEAD and not in git_current_revision' do
|
93
|
+
context 'when subinstance in HEAD and not in git_current_revision' do
|
94
94
|
it 'does not return subinstance' do
|
95
95
|
app = init_git('app') # HEAD: master
|
96
96
|
touch_commit(app, 'file2')
|
@@ -100,8 +100,8 @@ RSpec.describe Avm::Launcher::Context do
|
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
103
|
-
context 'when subinstances in/not in HEAD and not in/in git_current_revision' do
|
104
|
-
context 'when subinstance in HEAD and not in git_current_revision' do
|
103
|
+
context 'when subinstances in/not in HEAD and not in/in git_current_revision' do
|
104
|
+
context 'when subinstance in HEAD and not in git_current_revision' do
|
105
105
|
it 'does not return subinstance' do
|
106
106
|
app = init_git('app') # HEAD: master
|
107
107
|
touch_commit(app, 'file2')
|
@@ -111,7 +111,7 @@ RSpec.describe Avm::Launcher::Context do
|
|
111
111
|
end
|
112
112
|
end
|
113
113
|
|
114
|
-
context 'when subinstance not in HEAD and in git_current_revision' do
|
114
|
+
context 'when subinstance not in HEAD and in git_current_revision' do
|
115
115
|
it 'returns subinstance' do # rubocop:disable RSpec/ExampleLength
|
116
116
|
app = init_git('app') # HEAD: master
|
117
117
|
touch_commit(app, 'file3')
|
data/sub/avm/spec/spec_helper.rb
CHANGED
data/sub/avm-git/avm-git.gemspec
CHANGED
@@ -13,11 +13,13 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.files = Dir['{lib,locale}/**/*']
|
14
14
|
s.required_ruby_version = '>= 2.7'
|
15
15
|
|
16
|
-
s.add_dependency 'avm', '~> 0.
|
16
|
+
s.add_dependency 'avm', '~> 0.86', '>= 0.86.1'
|
17
17
|
s.add_dependency 'avm-files', '~> 0.7'
|
18
18
|
s.add_dependency 'eac_git', '~> 0.16'
|
19
19
|
s.add_dependency 'eac_ruby_utils', '~> 0.121'
|
20
20
|
s.add_dependency 'git', '~> 1.19', '>= 1.19.1'
|
21
21
|
|
22
|
+
s.add_development_dependency 'avm-eac_ubuntu_base0', '~> 0.5'
|
23
|
+
s.add_development_dependency 'avm-tools', '~> 0.160', '>= 0.160.2'
|
22
24
|
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.9'
|
23
25
|
end
|
@@ -1,17 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'clipboard'
|
4
|
-
|
5
3
|
module Avm
|
6
4
|
module Git
|
7
5
|
module Issue
|
8
6
|
class Complete
|
9
7
|
module Tracker
|
10
|
-
def clipboard_copy_tracker_message
|
11
|
-
::Clipboard.copy(textile_tracker_message)
|
12
|
-
infov 'Copied to clipboard', textile_tracker_message
|
13
|
-
end
|
14
|
-
|
15
8
|
private
|
16
9
|
|
17
10
|
def textile_tracker_message_uncached
|
@@ -11,17 +11,21 @@ module Avm
|
|
11
11
|
enable_simple_cache
|
12
12
|
enable_speaker
|
13
13
|
|
14
|
-
|
14
|
+
attr_reader :scm, :skip_validations
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
def initialize(options)
|
16
|
+
def initialize(scm, options)
|
17
|
+
@scm = scm
|
19
18
|
consumer = ::EacRubyUtils::OptionsConsumer.new(options)
|
20
|
-
@
|
19
|
+
@skip_validations = consumer.consume(:skip_validations)
|
21
20
|
validate_skip_validations
|
22
21
|
consumer.validate
|
23
22
|
end
|
24
23
|
|
24
|
+
# @return [String]
|
25
|
+
def dir
|
26
|
+
scm.path.to_path
|
27
|
+
end
|
28
|
+
|
25
29
|
def start_banner
|
26
30
|
validations_banner
|
27
31
|
end
|
@@ -32,7 +36,6 @@ module Avm
|
|
32
36
|
assert_tag
|
33
37
|
push
|
34
38
|
remove_local_branch
|
35
|
-
clipboard_copy_tracker_message
|
36
39
|
true
|
37
40
|
end
|
38
41
|
|
data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/dirty_files.rb
RENAMED
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'eac_cli/core_ext'
|
4
4
|
|
5
5
|
module Avm
|
6
|
-
module
|
7
|
-
|
8
|
-
class
|
6
|
+
module Git
|
7
|
+
module Runners
|
8
|
+
class Base
|
9
9
|
class DirtyFiles
|
10
10
|
DEFAULT_FORMAT = '%p'
|
11
11
|
FIELDS = {
|
data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/revisions_test.rb
RENAMED
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'eac_cli/core_ext'
|
4
4
|
require 'avm/git/revision_test'
|
5
5
|
|
6
6
|
module Avm
|
7
|
-
module
|
8
|
-
|
9
|
-
class
|
7
|
+
module Git
|
8
|
+
module Runners
|
9
|
+
class Base
|
10
10
|
class RevisionsTest
|
11
11
|
runner_with :help do
|
12
12
|
desc 'Test multiple revisions until a error is found.'
|
data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/subrepo/check.rb
RENAMED
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'eac_cli/core_ext'
|
4
4
|
require 'eac_git/local'
|
5
5
|
|
6
6
|
module Avm
|
7
|
-
module
|
8
|
-
|
9
|
-
class
|
7
|
+
module Git
|
8
|
+
module Runners
|
9
|
+
class Base
|
10
10
|
class Subrepo
|
11
11
|
class Check
|
12
12
|
runner_with :help do
|
data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/subrepo/clone.rb
RENAMED
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'eac_cli/core_ext'
|
4
4
|
require 'eac_git/local'
|
5
5
|
|
6
6
|
module Avm
|
7
|
-
module
|
8
|
-
|
9
|
-
class
|
7
|
+
module Git
|
8
|
+
module Runners
|
9
|
+
class Base
|
10
10
|
class Subrepo
|
11
11
|
class Clone
|
12
12
|
runner_with :help do
|
data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/subrepo/fix.rb
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'eac_cli/core_ext'
|
4
4
|
require 'avm/git/scms/git'
|
5
5
|
require 'avm/git/subrepo_checks'
|
6
6
|
require 'avm/scms/auto_commit/rules/unique'
|
@@ -8,9 +8,9 @@ require 'avm/scms/auto_commit/for_file'
|
|
8
8
|
require 'eac_git/local'
|
9
9
|
|
10
10
|
module Avm
|
11
|
-
module
|
12
|
-
|
13
|
-
class
|
11
|
+
module Git
|
12
|
+
module Runners
|
13
|
+
class Base
|
14
14
|
class Subrepo
|
15
15
|
class Fix
|
16
16
|
runner_with :help do
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'eac_cli/core_ext'
|
4
4
|
|
5
5
|
module Avm
|
6
|
-
module
|
7
|
-
|
8
|
-
class
|
6
|
+
module Git
|
7
|
+
module Runners
|
8
|
+
class Base
|
9
9
|
class Subrepo
|
10
10
|
require_sub __FILE__
|
11
11
|
runner_with :help, :subcommands do
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'eac_cli/core_ext'
|
4
4
|
require 'avm/git/launcher/base'
|
5
5
|
|
6
6
|
module Avm
|
7
|
-
module
|
8
|
-
|
9
|
-
class
|
7
|
+
module Git
|
8
|
+
module Runners
|
9
|
+
class Base
|
10
10
|
require_sub __FILE__
|
11
11
|
runner_with :help, :subcommands do
|
12
12
|
desc 'Git utilities for AVM.'
|
@@ -14,6 +14,13 @@ module Avm
|
|
14
14
|
subcommands
|
15
15
|
end
|
16
16
|
|
17
|
+
COMMAND_ARGUMENT = 'git'
|
18
|
+
|
19
|
+
# @return [String]
|
20
|
+
def self.command_argument
|
21
|
+
COMMAND_ARGUMENT
|
22
|
+
end
|
23
|
+
|
17
24
|
def repository_path
|
18
25
|
repository_path? ? parsed.path : '.'
|
19
26
|
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'avm/git/issue/complete'
|
3
4
|
require 'avm/git/scms/git_subrepo'
|
4
5
|
require 'avm/scms/base'
|
5
6
|
require 'eac_ruby_utils/core_ext'
|
@@ -17,6 +18,12 @@ module Avm
|
|
17
18
|
git_repo <=> other.git_repo
|
18
19
|
end
|
19
20
|
|
21
|
+
# @param options [Hash<Symbol, Object>]
|
22
|
+
# @return [Avm::Git::Issues::Complete]
|
23
|
+
def completer(options = {})
|
24
|
+
::Avm::Git::Issue::Complete.new(self, options)
|
25
|
+
end
|
26
|
+
|
20
27
|
def git_repo
|
21
28
|
@git_repo ||= ::EacGit::Local.new(path)
|
22
29
|
end
|
data/sub/{avm-tools → avm-git}/spec/lib/avm/git/launcher_stereotypes/git_subrepo/publish_spec.rb
RENAMED
@@ -12,7 +12,7 @@ RSpec.describe Avm::Git::LauncherStereotypes::GitSubrepo::Publish do
|
|
12
12
|
temp_context(settings_path)
|
13
13
|
end
|
14
14
|
|
15
|
-
context 'with app with subrepo' do
|
15
|
+
context 'with app with subrepo' do
|
16
16
|
let(:remote_repos) { init_remote('mylib') }
|
17
17
|
|
18
18
|
before do
|
@@ -31,7 +31,7 @@ RSpec.describe Avm::Git::LauncherStereotypes::GitSubrepo::Publish do
|
|
31
31
|
|
32
32
|
it { check_publish_status(:updated) } # rubocop:disable RSpec/NoExpectationExample
|
33
33
|
|
34
|
-
context 'after subrepo updated and before publishing' do # rubocop:disable RSpec/ContextWording
|
34
|
+
context 'after subrepo updated and before publishing' do # rubocop:disable RSpec/ContextWording
|
35
35
|
before do
|
36
36
|
Avm::Launcher::Context.current.publish_options[:confirm] = true
|
37
37
|
touch_commit(app, 'mylib/file3')
|
@@ -40,12 +40,12 @@ RSpec.describe Avm::Git::LauncherStereotypes::GitSubrepo::Publish do
|
|
40
40
|
it { expect(Avm::Launcher::Context.current.publish_options[:confirm]).to be(true) }
|
41
41
|
it { check_publish_status(:pending) } # rubocop:disable RSpec/NoExpectationExample
|
42
42
|
|
43
|
-
context 'after publishing' do # rubocop:disable RSpec/ContextWording
|
43
|
+
context 'after publishing' do # rubocop:disable RSpec/ContextWording
|
44
44
|
before { described_class.new(app_mylib_instance).run }
|
45
45
|
|
46
46
|
it { check_publish_status(:updated) } # rubocop:disable RSpec/NoExpectationExample
|
47
47
|
|
48
|
-
context 'after reset context' do # rubocop:disable RSpec/ContextWording
|
48
|
+
context 'after reset context' do # rubocop:disable RSpec/ContextWording
|
49
49
|
before do
|
50
50
|
sleep 2
|
51
51
|
Avm::Launcher::Context.current = Avm::Launcher::Context.new(
|