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.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +13 -27
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm/avm.gemspec +2 -1
  5. data/sub/avm/lib/avm/scms/base.rb +5 -0
  6. data/sub/avm/lib/avm/sources/base.rb +5 -0
  7. data/sub/avm/lib/avm/version.rb +1 -1
  8. data/sub/{avm-tools → avm}/spec/lib/avm/launcher/context_spec.rb +7 -7
  9. data/sub/avm/spec/spec_helper/eac_launcher/settings.yml +6 -0
  10. data/sub/avm/spec/spec_helper.rb +1 -0
  11. data/sub/avm-git/avm-git.gemspec +3 -1
  12. data/sub/avm-git/lib/avm/git/issue/complete/tracker.rb +0 -7
  13. data/sub/avm-git/lib/avm/git/issue/complete.rb +9 -6
  14. data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/commit.rb +3 -3
  15. data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/deploy.rb +3 -3
  16. data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/dirty_files.rb +4 -4
  17. data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/organize.rb +3 -3
  18. data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/revisions_test.rb +4 -4
  19. data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/subrepo/check.rb +4 -4
  20. data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/subrepo/clone.rb +4 -4
  21. data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/subrepo/fix.rb +4 -4
  22. data/sub/{avm-tools/lib/avm/tools/runner/git → avm-git/lib/avm/git/runners/base}/subrepo.rb +4 -4
  23. data/sub/{avm-tools/lib/avm/tools/runner/git.rb → avm-git/lib/avm/git/runners/base.rb} +11 -4
  24. data/sub/{avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0.rb → avm-git/lib/avm/git/runners.rb} +4 -2
  25. data/sub/avm-git/lib/avm/git/scms/git.rb +7 -0
  26. data/sub/avm-git/lib/avm/git/version.rb +1 -1
  27. data/sub/{avm-tools → avm-git}/spec/lib/avm/git/launcher_stereotypes/git_subrepo/publish_spec.rb +4 -4
  28. data/sub/{avm-tools/spec/lib/avm/tools/runner/git → avm-git/spec/lib/avm/git/runners/base}/deploy_spec.rb +20 -20
  29. data/sub/avm-git/spec/spec_helper/eac_launcher.rb +50 -0
  30. data/sub/avm-git/spec/spec_helper.rb +2 -1
  31. data/sub/avm-tools/avm-tools.gemspec +3 -12
  32. data/sub/avm-tools/lib/avm/tools/runner/files/format.rb +8 -8
  33. data/sub/avm-tools/lib/avm/tools/runner/source/issue/complete.rb +13 -7
  34. data/sub/avm-tools/lib/avm/tools/runner/source/issue.rb +1 -1
  35. data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
  36. data/sub/avm-tools/lib/avm/tools.rb +3 -2
  37. data/sub/avm-tools/spec/spec_helper.rb +0 -3
  38. metadata +46 -54
  39. data/sub/avm-eac_postgresql_base0/Gemfile +0 -8
  40. data/sub/avm-eac_postgresql_base0/avm-eac_postgresql_base0.gemspec +0 -20
  41. data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance/assert.rb +0 -77
  42. data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance/commands.rb +0 -79
  43. data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance/data_unit.rb +0 -65
  44. data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance.rb +0 -49
  45. data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance_with.rb +0 -25
  46. data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/version.rb +0 -7
  47. data/sub/avm-eac_postgresql_base0/spec/rubocop_spec.rb +0 -3
  48. data/sub/avm-eac_postgresql_base0/spec/spec_helper.rb +0 -4
  49. /data/sub/{avm-tools → avm}/spec/dummy/avm-tools_stub/avm-tools.gemspec +0 -0
  50. /data/sub/{avm-tools → avm}/spec/dummy/avm-tools_stub/lib/avm/tools/version.rb +0 -0
  51. /data/sub/{avm-tools → avm}/spec/dummy/avm-tools_stub/lib/avm/tools.rb +0 -0
  52. /data/sub/{avm-tools → avm}/spec/dummy/ruby_gem_stub/lib/ruby_gem_stub/version.rb +0 -0
  53. /data/sub/{avm-tools → avm}/spec/dummy/ruby_gem_stub/lib/ruby_gem_stub.rb +0 -0
  54. /data/sub/{avm-tools → avm}/spec/dummy/ruby_gem_stub/ruby_gem_stub.gemspec +0 -0
  55. /data/sub/{avm-tools → avm}/spec/lib/avm/launcher/context_spec.yml +0 -0
  56. /data/sub/{avm-tools → avm}/spec/spec_helper/eac_launcher.rb +0 -0
  57. /data/sub/{avm-tools → avm}/template/avm/self/docker_image/Dockerfile +0 -0
  58. /data/sub/{avm-tools → avm}/template/avm/self/docker_image/entrypoint.sh +0 -0
  59. /data/sub/{avm-tools → avm-git}/spec/lib/avm/git/launcher_stereotypes/git_subrepo/publish_spec_settings.yml +0 -0
  60. /data/sub/{avm-tools → avm-git}/spec/lib/avm/git/launcher_stereotypes/git_subrepo/warp_spec.rb +0 -0
  61. /data/sub/{avm-tools → avm-git}/spec/lib/avm/git/launcher_stereotypes/git_subrepo/warp_spec_settings.yml +0 -0
  62. /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
  63. /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
  64. /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: 2e0a08240490efcb95d3a2cfe887090c9cc3c2eec48f9a4429f4e920523adfed
4
- data.tar.gz: 14aa56767dab9d77feaed53aef6ee7b08eb3acdfc5b90322b7e6c54dffa1a717
3
+ metadata.gz: 4a3acc6bda5ae96d94b303fcf69e2e9f2e4b860bd19cb9d228919171d1bd172d
4
+ data.tar.gz: 20787d56237058d215e77bd713b304b877413e8b6d65682eac8b3fe236da1288
5
5
  SHA512:
6
- metadata.gz: cff01158afb0ea1cb1d42cb0cd35694a17cb9b5469786c6a2b6e5fccbb22865a5712bbee5b9b331c2f82247865151f2977533beb9255463c1f617485b600a934
7
- data.tar.gz: bbc04fce854f2c56e0b19b567dc5b3916799173e9e7d56e4933e3eec0787346d29c02060a070d916c5fd6f5964483ab71833c0eec5312356ec063bbd8a9fc3ad
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.3)
5
- avm (~> 0.85)
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.15)
22
- avm-tools (~> 0.160, >= 0.160.1)
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.15.0)
59
- avm (~> 0.85)
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.160.1)
69
- aranha-parsers (~> 0.22)
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.85.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!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.86.3'
4
+ VERSION = '0.86.5'
5
5
  end
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__
@@ -24,6 +24,11 @@ module Avm
24
24
 
25
25
  abstract_methods :valid?
26
26
 
27
+ # @param options [Hash<Symbol, Object>]
28
+ def completer(options = {})
29
+ scm.completer(options)
30
+ end
31
+
27
32
  # @return [EacRubyUtils::Envs::LocalEnv]
28
33
  def env
29
34
  ::EacRubyUtils::Envs::LocalEnv.new
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.85.0'
4
+ VERSION = '0.86.1'
5
5
  end
@@ -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 # rubocop:disable RSpec/NestedGroups
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 # rubocop:disable RSpec/NestedGroups
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 # rubocop:disable RSpec/NestedGroups
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 # rubocop:disable RSpec/NestedGroups
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 # rubocop:disable RSpec/NestedGroups
104
- context 'when subinstance in HEAD and not in git_current_revision' do # rubocop:disable RSpec/NestedGroups
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 # rubocop:disable RSpec/NestedGroups
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')
@@ -0,0 +1,6 @@
1
+ ---
2
+ Instances:
3
+ /ruby_gem_stub:
4
+ git_current_revision: git_current_revision_setted
5
+ git_publish_remote: git_publish_remote_setted
6
+ publishable: false
@@ -2,3 +2,4 @@
2
2
 
3
3
  require 'eac_ruby_utils/rspec/default_setup'
4
4
  EacRubyUtils::Rspec.default_setup_create(File.expand_path('..', __dir__)).stub_avm_contexts
5
+ EacRubyUtils.require_sub(__FILE__)
@@ -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.85'
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
- BRANCH_NAME_ISSUE_ID_PATTERN =
14
+ attr_reader :scm, :skip_validations
15
15
 
16
- attr_reader :dir, :skip_validations
17
-
18
- def initialize(options)
16
+ def initialize(scm, options)
17
+ @scm = scm
19
18
  consumer = ::EacRubyUtils::OptionsConsumer.new(options)
20
- @dir, @skip_validations = consumer.consume_all(:dir, :skip_validations)
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
 
@@ -7,9 +7,9 @@ require 'filesize'
7
7
  require 'avm/git/commit'
8
8
 
9
9
  module Avm
10
- module Tools
11
- class Runner
12
- class Git
10
+ module Git
11
+ module Runners
12
+ class Base
13
13
  class Commit
14
14
  runner_with :help do
15
15
  desc 'Mostra informações de um commit.'
@@ -4,9 +4,9 @@ require 'avm/git/scms/git'
4
4
  require 'eac_config/node'
5
5
 
6
6
  module Avm
7
- module Tools
8
- class Runner
9
- class Git
7
+ module Git
8
+ module Runners
9
+ class Base
10
10
  class Deploy
11
11
  DEFAULT_REFERENCE = 'HEAD'
12
12
 
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/tools/core_ext'
3
+ require 'eac_cli/core_ext'
4
4
 
5
5
  module Avm
6
- module Tools
7
- class Runner
8
- class Git
6
+ module Git
7
+ module Runners
8
+ class Base
9
9
  class DirtyFiles
10
10
  DEFAULT_FORMAT = '%p'
11
11
  FIELDS = {
@@ -4,9 +4,9 @@ require 'avm/git/organize/repository'
4
4
  require 'eac_cli/default_runner'
5
5
 
6
6
  module Avm
7
- module Tools
8
- class Runner
9
- class Git
7
+ module Git
8
+ module Runners
9
+ class Base
10
10
  class Organize
11
11
  runner_with :help do
12
12
  desc 'Organize branches.'
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/tools/core_ext'
3
+ require 'eac_cli/core_ext'
4
4
  require 'avm/git/revision_test'
5
5
 
6
6
  module Avm
7
- module Tools
8
- class Runner
9
- class Git
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.'
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/tools/core_ext'
3
+ require 'eac_cli/core_ext'
4
4
  require 'eac_git/local'
5
5
 
6
6
  module Avm
7
- module Tools
8
- class Runner
9
- class Git
7
+ module Git
8
+ module Runners
9
+ class Base
10
10
  class Subrepo
11
11
  class Check
12
12
  runner_with :help do
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/tools/core_ext'
3
+ require 'eac_cli/core_ext'
4
4
  require 'eac_git/local'
5
5
 
6
6
  module Avm
7
- module Tools
8
- class Runner
9
- class Git
7
+ module Git
8
+ module Runners
9
+ class Base
10
10
  class Subrepo
11
11
  class Clone
12
12
  runner_with :help do
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/tools/core_ext'
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 Tools
12
- class Runner
13
- class Git
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 'avm/tools/core_ext'
3
+ require 'eac_cli/core_ext'
4
4
 
5
5
  module Avm
6
- module Tools
7
- class Runner
8
- class Git
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 'avm/tools/core_ext'
3
+ require 'eac_cli/core_ext'
4
4
  require 'avm/git/launcher/base'
5
5
 
6
6
  module Avm
7
- module Tools
8
- class Runner
9
- class Git
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
@@ -3,7 +3,9 @@
3
3
  require 'eac_ruby_utils/core_ext'
4
4
 
5
5
  module Avm
6
- module EacPostgresqlBase0
7
- require_sub __FILE__
6
+ module Git
7
+ module Runners
8
+ require_sub __FILE__
9
+ end
8
10
  end
9
11
  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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Git
5
- VERSION = '0.15.0'
5
+ VERSION = '0.17.0'
6
6
  end
7
7
  end
@@ -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 # rubocop:disable RSpec/NestedGroups
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, RSpec/NestedGroups
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, RSpec/NestedGroups
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, RSpec/NestedGroups
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(