avm-tools 0.139.0 → 0.141.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avm/projects/stereotypes/git/publish.rb +2 -2
  3. data/lib/avm/projects/stereotypes/git/warp.rb +2 -2
  4. data/lib/avm/projects/stereotypes/git.rb +2 -2
  5. data/lib/avm/projects/stereotypes/git_subrepo/publish.rb +2 -2
  6. data/lib/avm/projects/stereotypes/git_subrepo/warp.rb +7 -7
  7. data/lib/avm/projects/stereotypes/git_subrepo.rb +4 -4
  8. data/lib/avm/projects/stereotypes/git_subtree/publish.rb +2 -2
  9. data/lib/avm/projects/stereotypes/git_subtree/warp.rb +4 -4
  10. data/lib/avm/projects/stereotypes/git_subtree.rb +3 -3
  11. data/lib/avm/projects/stereotypes/ruby_gem/publish.rb +2 -2
  12. data/lib/avm/projects/stereotypes/ruby_gem.rb +4 -4
  13. data/lib/avm/projects/stereotypes.rb +0 -9
  14. data/lib/avm/tools/core_ext.rb +0 -1
  15. data/lib/avm/tools/runner/files/format.rb +2 -2
  16. data/lib/avm/tools/runner/git/commit.rb +2 -2
  17. data/lib/avm/tools/runner/git/deploy.rb +2 -2
  18. data/lib/avm/tools/runner/git.rb +2 -2
  19. data/lib/avm/tools/runner/launcher.rb +1 -0
  20. data/lib/avm/tools/runner/source/info.rb +0 -4
  21. data/lib/avm/tools/runner/source/test.rb +1 -1
  22. data/lib/avm/tools/runner/source.rb +0 -12
  23. data/lib/avm/tools/version.rb +1 -1
  24. metadata +8 -40
  25. data/lib/avm/launcher/git/base/class_methods.rb +0 -28
  26. data/lib/avm/launcher/git/base/dirty_files.rb +0 -23
  27. data/lib/avm/launcher/git/base/remotes.rb +0 -40
  28. data/lib/avm/launcher/git/base/subrepo.rb +0 -44
  29. data/lib/avm/launcher/git/base/underlying.rb +0 -63
  30. data/lib/avm/launcher/git/base.rb +0 -86
  31. data/lib/avm/launcher/git/error.rb +0 -13
  32. data/lib/avm/launcher/git/mirror_update.rb +0 -38
  33. data/lib/avm/launcher/git/publish_base.rb +0 -125
  34. data/lib/avm/launcher/git/remote.rb +0 -55
  35. data/lib/avm/launcher/git/sub_warp_base.rb +0 -33
  36. data/lib/avm/launcher/git/warp_base.rb +0 -67
  37. data/lib/avm/launcher/git.rb +0 -7
  38. data/lib/avm/launcher/instances.rb +0 -6
  39. data/lib/avm/launcher/paths.rb +0 -4
  40. data/lib/avm/launcher/project.rb +0 -18
  41. data/lib/avm/launcher/publish.rb +0 -4
  42. data/lib/avm/launcher/ruby/gem/build.rb +0 -125
  43. data/lib/avm/launcher/ruby/gem/specification.rb +0 -63
  44. data/lib/avm/launcher/ruby/gem.rb +0 -4
  45. data/lib/avm/launcher/ruby.rb +0 -3
  46. data/lib/avm/patches/i18n.rb +0 -22
  47. data/lib/avm/patches.rb +0 -9
  48. data/lib/avm/projects/stereotype/job_comparator.rb +0 -32
  49. data/lib/avm/projects/stereotype.rb +0 -63
  50. data/lib/avm/projects/stereotypes/rails_application/local_project_mixin.rb +0 -18
  51. data/lib/avm/projects/stereotypes/rails_application.rb +0 -25
  52. data/lib/avm/projects/stereotypes/redmine_plugin.rb +0 -23
  53. data/lib/avm/stereotypes.rb +0 -9
  54. data/lib/avm/tools/source.rb +0 -64
  55. data/locale/en.yml +0 -7
  56. data/locale/pt-BR.yml +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e13784fd3035a1563c1eab7234d82b6b8d097ed58aae86ee922b1cbbb0fa208
4
- data.tar.gz: 29fa552a0905ccad677c5b2557d7216b3ec7b388d59ea928375bc8603c2a4588
3
+ metadata.gz: 60fac08c348fc622fef6058a07454042e877f79bb1905c53af18821cd0bc3b06
4
+ data.tar.gz: 81072003eb8144896fe1cc263a4fd090c6ee0532c8fb15066dcbdfdb5137ef05
5
5
  SHA512:
6
- metadata.gz: 8e7802bda4db106026decfb5b7e403f292b3c3fb0b998ab362b2feea704d8bee9c833f9fb0c9cfabb962e7fbf2b09a7c9630147332c6736d5511cc9ee7f385ec
7
- data.tar.gz: a9c310b9a2c40c54a34b4768780e0d8ed7133b2f8cd1bad2d02e96c3890454e9b65a1e9395a94036543e5fa62620ba1d28f61b823de9d1a3a17e6effad34fce4
6
+ metadata.gz: d5bac08c0ad7cba5a5dcbde799f8d520a991edb1e5111771627556a5b5745a22d68f62698b8dd9fb4cf30487d0032da377e232c5ce9c0737af4d8a92ec47b1c7
7
+ data.tar.gz: 8401554316ce6e960953bc677ac69a82b145439c306726a036c16cd9ff6f6273d8448b5867d7c303b9552ff3e4cf3a57f291f6ca0eb4a9dadbd4e4bcc27968ed
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/launcher/git/publish_base'
3
+ require 'avm/git/launcher/publish_base'
4
4
 
5
5
  module Avm
6
6
  module Projects
7
7
  module Stereotypes
8
8
  class Git
9
- class Publish < ::Avm::Launcher::Git::PublishBase
9
+ class Publish < ::Avm::Git::Launcher::PublishBase
10
10
  PUBLISH_GIT_REMOTE_NAME = 'publish'
11
11
  end
12
12
  end
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/launcher/git/warp_base'
3
+ require 'avm/git/launcher/warp_base'
4
4
 
5
5
  module Avm
6
6
  module Projects
7
7
  module Stereotypes
8
8
  class Git
9
- class Warp < ::Avm::Launcher::Git::WarpBase
9
+ class Warp < ::Avm::Git::Launcher::WarpBase
10
10
  private
11
11
 
12
12
  def current_ref
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/projects/stereotype'
3
+ require 'avm/launcher/stereotype'
4
4
  require 'eac_ruby_utils/core_ext'
5
5
 
6
6
  module Avm
@@ -8,7 +8,7 @@ module Avm
8
8
  module Stereotypes
9
9
  class Git
10
10
  require_sub __FILE__
11
- include Avm::Projects::Stereotype
11
+ include Avm::Launcher::Stereotype
12
12
 
13
13
  class << self
14
14
  def match?(path)
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/launcher/git/publish_base'
3
+ require 'avm/git/launcher/publish_base'
4
4
 
5
5
  module Avm
6
6
  module Projects
7
7
  module Stereotypes
8
8
  class GitSubrepo
9
- class Publish < ::Avm::Launcher::Git::PublishBase
9
+ class Publish < ::Avm::Git::Launcher::PublishBase
10
10
  end
11
11
  end
12
12
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/simple_cache'
4
- require 'avm/launcher/git/sub_warp_base'
4
+ require 'avm/git/launcher/sub_warp_base'
5
5
  require 'avm/launcher/errors/base'
6
6
  require 'avm/launcher/paths/real'
7
7
  require 'avm/git/vendor/github'
@@ -11,7 +11,7 @@ module Avm
11
11
  module Stereotypes
12
12
  class GitSubrepo
13
13
  class Warp < ::Avm::Launcher::Paths::Real
14
- include ::Avm::Launcher::Git::SubWarpBase
14
+ include ::Avm::Git::Launcher::SubWarpBase
15
15
  include ::EacRubyUtils::SimpleCache
16
16
 
17
17
  attr_reader :instance
@@ -46,11 +46,11 @@ module Avm
46
46
  end
47
47
 
48
48
  def init_aux
49
- ::Avm::Launcher::Git::Base.new(aux_path).init_bare
49
+ ::Avm::Git::Launcher::Base.new(aux_path).init_bare
50
50
  end
51
51
 
52
52
  def parent_git_warped_uncached
53
- ::Avm::Launcher::Git::Base.new(parent_instance.warped)
53
+ ::Avm::Git::Launcher::Base.new(parent_instance.warped)
54
54
  end
55
55
 
56
56
  def aux_path
@@ -58,7 +58,7 @@ module Avm
58
58
  end
59
59
 
60
60
  def warped_git_uncached
61
- ::Avm::Launcher::Git::Base.new(instance.cache_path('git_repository'))
61
+ ::Avm::Git::Launcher::Base.new(instance.cache_path('git_repository'))
62
62
  end
63
63
 
64
64
  def push_to_aux
@@ -68,11 +68,11 @@ module Avm
68
68
  end
69
69
 
70
70
  def reset
71
- ::Avm::Launcher::Git::MirrorUpdate.new(warped_git, aux_path, 'master')
71
+ ::Avm::Git::Launcher::MirrorUpdate.new(warped_git, aux_path, 'master')
72
72
  end
73
73
 
74
74
  def assert_target_remote
75
- warped_git.assert_remote_url(::Avm::Launcher::Git::WarpBase::TARGET_REMOTE,
75
+ warped_git.assert_remote_url(::Avm::Git::Launcher::WarpBase::TARGET_REMOTE,
76
76
  target_remote_url)
77
77
  end
78
78
 
@@ -1,15 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/launcher/git/error'
3
+ require 'avm/git/launcher/error'
4
4
  require 'eac_ruby_utils/core_ext'
5
- require 'avm/projects/stereotype'
5
+ require 'avm/launcher/stereotype'
6
6
 
7
7
  module Avm
8
8
  module Projects
9
9
  module Stereotypes
10
10
  class GitSubrepo
11
11
  require_sub __FILE__
12
- include Avm::Projects::Stereotype
12
+ include Avm::Launcher::Stereotype
13
13
 
14
14
  class << self
15
15
  def match?(path)
@@ -25,7 +25,7 @@ module Avm
25
25
  m = /remote\s*=\s(.+)/.match(l)
26
26
  return m[1] if m
27
27
  end
28
- raise ::Avm::Launcher::Git::Error.new(path, '"remote = ... " not found')
28
+ raise ::Avm::Git::Launcher::Error.new(path, '"remote = ... " not found')
29
29
  end
30
30
  end
31
31
  end
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/launcher/git/publish_base'
3
+ require 'avm/git/launcher/publish_base'
4
4
 
5
5
  module Avm
6
6
  module Projects
7
7
  module Stereotypes
8
8
  class GitSubtree
9
- class Publish < ::Avm::Launcher::Git::PublishBase
9
+ class Publish < ::Avm::Git::Launcher::PublishBase
10
10
  end
11
11
  end
12
12
  end
@@ -1,14 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/launcher/git/warp_base'
4
- require 'avm/launcher/git/sub_warp_base'
3
+ require 'avm/git/launcher/warp_base'
4
+ require 'avm/git/launcher/sub_warp_base'
5
5
 
6
6
  module Avm
7
7
  module Projects
8
8
  module Stereotypes
9
9
  class GitSubtree
10
- class Warp < ::Avm::Launcher::Git::WarpBase
11
- include ::Avm::Launcher::Git::SubWarpBase
10
+ class Warp < ::Avm::Git::Launcher::WarpBase
11
+ include ::Avm::Git::Launcher::SubWarpBase
12
12
 
13
13
  private
14
14
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/projects/stereotype'
3
+ require 'avm/launcher/stereotype'
4
4
  require 'avm/projects/stereotypes/git'
5
5
  require 'eac_ruby_utils/core_ext'
6
6
 
@@ -9,7 +9,7 @@ module Avm
9
9
  module Stereotypes
10
10
  class GitSubtree
11
11
  require_sub __FILE__
12
- include Avm::Projects::Stereotype
12
+ include Avm::Launcher::Stereotype
13
13
 
14
14
  class << self
15
15
  def match?(path)
@@ -42,7 +42,7 @@ module Avm
42
42
  end
43
43
 
44
44
  def other_nogit_stereotype?(path)
45
- Avm::Projects::Stereotype.nogit_stereotypes.any? { |s| s.match?(path) }
45
+ Avm::Launcher::Stereotype.nogit_stereotypes.any? { |s| s.match?(path) }
46
46
  end
47
47
  end
48
48
  end
@@ -7,7 +7,7 @@ require 'rubygems'
7
7
  require 'eac_cli/speaker'
8
8
  require 'avm/launcher/publish/base'
9
9
  require 'avm/launcher/publish/check_result'
10
- require 'avm/launcher/ruby/gem'
10
+ require 'avm/eac_ruby_base1/launcher/gem'
11
11
 
12
12
  module Avm
13
13
  module Projects
@@ -71,7 +71,7 @@ module Avm
71
71
  end
72
72
 
73
73
  def gem_build_uncached
74
- ::Avm::Launcher::Ruby::Gem::Build.new(source)
74
+ ::Avm::EacRubyBase1::Launcher::Gem::Build.new(source)
75
75
  end
76
76
 
77
77
  def publish
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/projects/stereotype'
4
- require 'avm/launcher/ruby/gem/specification'
3
+ require 'avm/eac_ruby_base1/launcher/gem/specification'
4
+ require 'avm/launcher/stereotype'
5
5
  require 'eac_ruby_utils/core_ext'
6
6
 
7
7
  module Avm
@@ -9,7 +9,7 @@ module Avm
9
9
  module Stereotypes
10
10
  class RubyGem
11
11
  require_sub __FILE__
12
- include Avm::Projects::Stereotype
12
+ include Avm::Launcher::Stereotype
13
13
 
14
14
  class << self
15
15
  def match?(path)
@@ -21,7 +21,7 @@ module Avm
21
21
  end
22
22
 
23
23
  def load_gemspec(gemspec_file)
24
- ::Avm::Launcher::Ruby::Gem::Specification.new(gemspec_file)
24
+ ::Avm::EacRubyBase1::Launcher::Gem::Specification.new(gemspec_file)
25
25
  end
26
26
  end
27
27
  end
@@ -1,20 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/projects/stereotype'
4
3
  require 'eac_ruby_utils/core_ext'
5
4
 
6
5
  module Avm
7
6
  module Projects
8
7
  module Stereotypes
9
8
  require_sub __FILE__, base: nil
10
-
11
- class << self
12
- def list
13
- @list ||= constants.map { |c| const_get(c) }
14
- .select { |c| c.included_modules.include?(Avm::Projects::Stereotype) }
15
- .freeze
16
- end
17
- end
18
9
  end
19
10
  end
20
11
  end
@@ -1,4 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/patches'
4
3
  require 'eac_ruby_base0/core_ext'
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'avm/files/formatter'
4
4
  require 'eac_cli/core_ext'
5
- require 'avm/launcher/git/base'
5
+ require 'avm/git/launcher/base'
6
6
 
7
7
  module Avm
8
8
  module Tools
@@ -29,7 +29,7 @@ module Avm
29
29
  end
30
30
 
31
31
  def git
32
- @git ||= ::Avm::Launcher::Git::Base.new('.')
32
+ @git ||= ::Avm::Git::Launcher::Base.new('.')
33
33
  end
34
34
 
35
35
  def git_dirty_files
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'eac_cli/speaker'
4
4
  require 'eac_ruby_utils/simple_cache'
5
- require 'avm/launcher/git/base'
5
+ require 'avm/git/launcher/base'
6
6
  require 'filesize'
7
7
  require 'avm/git/commit'
8
8
 
@@ -76,7 +76,7 @@ module Avm
76
76
  end
77
77
 
78
78
  def git_uncached
79
- ::Avm::Launcher::Git::Base.new(runner_context.call(:repository_path))
79
+ ::Avm::Git::Launcher::Base.new(runner_context.call(:repository_path))
80
80
  end
81
81
 
82
82
  def commit_uncached
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/launcher/git/base'
3
+ require 'avm/git/launcher/base'
4
4
  require 'avm/git/commit'
5
5
  require 'eac_config/node'
6
6
 
@@ -57,7 +57,7 @@ module Avm
57
57
  end
58
58
 
59
59
  def git_uncached
60
- ::Avm::Launcher::Git::Base.new(git_repository_path)
60
+ ::Avm::Git::Launcher::Base.new(git_repository_path)
61
61
  end
62
62
 
63
63
  def git_repository_path
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/tools/core_ext'
4
- require 'avm/launcher/git/base'
4
+ require 'avm/git/launcher/base'
5
5
 
6
6
  module Avm
7
7
  module Tools
@@ -23,7 +23,7 @@ module Avm
23
23
  end
24
24
 
25
25
  def git
26
- @git ||= ::Avm::Launcher::Git::Base.by_root(repository_path)
26
+ @git ||= ::Avm::Git::Launcher::Base.by_root(repository_path)
27
27
  end
28
28
 
29
29
  # @return [[EacGit::Local]]
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/tools/core_ext'
4
+ require 'avm/projects/stereotypes'
4
5
 
5
6
  module Avm
6
7
  module Tools
@@ -48,10 +48,6 @@ module Avm
48
48
  infov " * #{name}", command
49
49
  end
50
50
  end
51
-
52
- def instance
53
- runner_context.call(:instance)
54
- end
55
51
  end
56
52
  end
57
53
  end
@@ -65,7 +65,7 @@ module Avm
65
65
  end
66
66
 
67
67
  def start_banner
68
- runner_context.call(:instance_banner)
68
+ runner_context.call(:source_banner)
69
69
  infov 'Selected units', test_performer.units.count
70
70
  end
71
71
 
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/sources/runner'
4
- require 'avm/tools/source'
5
4
  require 'eac_cli/core_ext'
6
5
 
7
6
  module Avm
@@ -10,20 +9,9 @@ module Avm
10
9
  class Source < ::Avm::Sources::Runner
11
10
  require_sub __FILE__
12
11
 
13
- def instance_banner
14
- infov 'Instance', instance
15
- infov 'Stereotypes', instance.stereotypes.map(&:label).join(', ')
16
- end
17
-
18
12
  def subject
19
13
  source
20
14
  end
21
-
22
- private
23
-
24
- def instance_uncached
25
- ::Avm::Tools::Source.new(source_path)
26
- end
27
15
  end
28
16
  end
29
17
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.139.0'
5
+ VERSION = '0.141.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.139.0
4
+ version: 0.141.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-09 00:00:00.000000000 Z
11
+ date: 2022-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -36,28 +36,28 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '0.46'
39
+ version: '0.48'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '0.46'
46
+ version: '0.48'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: avm-eac_ruby_base1
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.22'
53
+ version: '0.23'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '0.22'
60
+ version: '0.23'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: avm-eac_ubuntu_base0
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -98,14 +98,14 @@ dependencies:
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: '0.5'
101
+ version: '0.6'
102
102
  type: :runtime
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
- version: '0.5'
108
+ version: '0.6'
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: clipboard
111
111
  requirement: !ruby/object:Gem::Requirement
@@ -252,32 +252,7 @@ files:
252
252
  - Gemfile
253
253
  - exe/avm
254
254
  - lib/avm.rb
255
- - lib/avm/launcher/git.rb
256
- - lib/avm/launcher/git/base.rb
257
- - lib/avm/launcher/git/base/class_methods.rb
258
- - lib/avm/launcher/git/base/dirty_files.rb
259
- - lib/avm/launcher/git/base/remotes.rb
260
- - lib/avm/launcher/git/base/subrepo.rb
261
- - lib/avm/launcher/git/base/underlying.rb
262
- - lib/avm/launcher/git/error.rb
263
- - lib/avm/launcher/git/mirror_update.rb
264
- - lib/avm/launcher/git/publish_base.rb
265
- - lib/avm/launcher/git/remote.rb
266
- - lib/avm/launcher/git/sub_warp_base.rb
267
- - lib/avm/launcher/git/warp_base.rb
268
- - lib/avm/launcher/instances.rb
269
- - lib/avm/launcher/paths.rb
270
- - lib/avm/launcher/project.rb
271
- - lib/avm/launcher/publish.rb
272
- - lib/avm/launcher/ruby.rb
273
- - lib/avm/launcher/ruby/gem.rb
274
- - lib/avm/launcher/ruby/gem/build.rb
275
- - lib/avm/launcher/ruby/gem/specification.rb
276
- - lib/avm/patches.rb
277
- - lib/avm/patches/i18n.rb
278
255
  - lib/avm/projects.rb
279
- - lib/avm/projects/stereotype.rb
280
- - lib/avm/projects/stereotype/job_comparator.rb
281
256
  - lib/avm/projects/stereotypes.rb
282
257
  - lib/avm/projects/stereotypes/git.rb
283
258
  - lib/avm/projects/stereotypes/git/local_project_mixin.rb
@@ -289,13 +264,9 @@ files:
289
264
  - lib/avm/projects/stereotypes/git_subtree.rb
290
265
  - lib/avm/projects/stereotypes/git_subtree/publish.rb
291
266
  - lib/avm/projects/stereotypes/git_subtree/warp.rb
292
- - lib/avm/projects/stereotypes/rails_application.rb
293
- - lib/avm/projects/stereotypes/rails_application/local_project_mixin.rb
294
- - lib/avm/projects/stereotypes/redmine_plugin.rb
295
267
  - lib/avm/projects/stereotypes/ruby_gem.rb
296
268
  - lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
297
269
  - lib/avm/projects/stereotypes/ruby_gem/publish.rb
298
- - lib/avm/stereotypes.rb
299
270
  - lib/avm/tools.rb
300
271
  - lib/avm/tools/core_ext.rb
301
272
  - lib/avm/tools/runner.rb
@@ -337,10 +308,7 @@ files:
337
308
  - lib/avm/tools/runner/source/version_bump.rb
338
309
  - lib/avm/tools/runner/source_generate.rb
339
310
  - lib/avm/tools/self.rb
340
- - lib/avm/tools/source.rb
341
311
  - lib/avm/tools/version.rb
342
- - locale/en.yml
343
- - locale/pt-BR.yml
344
312
  - template/avm/self/docker_image/Dockerfile
345
313
  - template/avm/self/docker_image/entrypoint.sh
346
314
  homepage:
@@ -1,28 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Avm
4
- module Launcher
5
- module Git
6
- class Base < ::Avm::Launcher::Paths::Real
7
- module ClassMethods
8
- # @return [Avm::Launcher::Git::Base]
9
- def by_root(search_base_path)
10
- new(find_root(search_base_path).to_path)
11
- end
12
-
13
- # Searches the root path for the Git repository which includes +search_base_path+.
14
- # @return [Pathname]
15
- def find_root(search_base_path)
16
- path = search_base_path.to_pathname.expand_path
17
- loop do
18
- return path if path.join('.git').exist?
19
- raise "\".git\" not found for \"#{search_base_path}\"" if path.parent.root?
20
-
21
- path = path.parent
22
- end
23
- end
24
- end
25
- end
26
- end
27
- end
28
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'active_support/core_ext/object'
4
-
5
- module Avm
6
- module Launcher
7
- module Git
8
- class Base < ::Avm::Launcher::Paths::Real
9
- module DirtyFiles
10
- delegate :dirty?, to: :eac_git
11
-
12
- def dirty_files
13
- eac_git.dirty_files.map do |df|
14
- ::OpenStruct.new(
15
- df.to_h.merge(path: df.path.to_path, absolute_path: df.absolute_path.to_path)
16
- )
17
- end
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,40 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
- require 'avm/launcher/git/remote'
5
-
6
- module Avm
7
- module Launcher
8
- module Git
9
- class Base < ::Avm::Launcher::Paths::Real
10
- module Remotes
11
- # @return [Avm::Launcher::Git::Remote]
12
- def remote(name)
13
- ::Avm::Launcher::Git::Remote.new(self, name)
14
- end
15
-
16
- def remote_hashs(remote_name)
17
- remote(remote_name).ls
18
- end
19
-
20
- def remote_exist?(remote_name)
21
- remote(remote_name).exist?
22
- end
23
-
24
- def assert_remote_url(remote_name, url)
25
- r = git.remote(remote_name)
26
- if !r.url || r.url != url
27
- r.remove if r.url
28
- git.add_remote(remote_name, url)
29
- end
30
- r
31
- end
32
-
33
- def remote_branch_sha(remote_name, branch_name)
34
- remote_hashs(remote_name)["refs/heads/#{branch_name}"]
35
- end
36
- end
37
- end
38
- end
39
- end
40
- end