eac_tools 0.35.0 → 0.36.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +5 -0
  3. data/Gemfile.lock +23 -15
  4. data/lib/eac_tools/version.rb +1 -1
  5. data/sub/avm/lib/avm/launcher/errors.rb +11 -0
  6. data/sub/avm/lib/avm/launcher/instances.rb +11 -0
  7. data/sub/avm/lib/avm/launcher/paths/logical.rb +2 -1
  8. data/sub/avm/lib/avm/launcher/paths.rb +11 -0
  9. data/sub/{avm-tools → avm}/lib/avm/launcher/project.rb +4 -5
  10. data/sub/avm/lib/avm/launcher/publish.rb +11 -0
  11. data/sub/{avm-tools/lib/avm/projects → avm/lib/avm/launcher}/stereotype.rb +1 -1
  12. data/sub/avm/lib/avm/launcher.rb +9 -0
  13. data/sub/avm/lib/avm/version.rb +1 -1
  14. data/sub/avm-eac_php_base0/Gemfile +8 -0
  15. data/sub/avm-eac_php_base0/avm-eac_php_base0.gemspec +18 -0
  16. data/sub/avm-eac_php_base0/lib/avm/eac_php_base0/version.rb +7 -0
  17. data/sub/avm-eac_php_base0/lib/avm/eac_php_base0.rb +9 -0
  18. data/sub/avm-eac_php_base0/spec/rubocop_spec.rb +3 -0
  19. data/sub/avm-eac_php_base0/spec/spec_helper.rb +4 -0
  20. data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +1 -1
  21. data/sub/{avm-tools/lib/avm/launcher/ruby → avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher}/gem/build.rb +4 -4
  22. data/sub/{avm-tools/lib/avm/launcher/ruby → avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher}/gem/specification.rb +2 -2
  23. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem.rb +13 -0
  24. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher.rb +11 -0
  25. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
  26. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy/git_info.rb +2 -1
  27. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy.rb +0 -1
  28. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
  29. data/sub/avm-git/avm-git.gemspec +1 -1
  30. data/sub/avm-git/lib/avm/git/issue/complete.rb +1 -1
  31. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base/class_methods.rb +3 -3
  32. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base/dirty_files.rb +2 -2
  33. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base/remotes.rb +5 -5
  34. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base/subrepo.rb +2 -2
  35. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base/underlying.rb +2 -2
  36. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base.rb +9 -9
  37. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/error.rb +2 -2
  38. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/mirror_update.rb +5 -5
  39. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/publish_base.rb +4 -4
  40. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/remote.rb +2 -2
  41. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/sub_warp_base.rb +4 -4
  42. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/warp_base.rb +6 -6
  43. data/sub/avm-git/lib/avm/git/launcher.rb +7 -0
  44. data/sub/avm-git/lib/avm/git/organize/repository.rb +1 -0
  45. data/sub/avm-git/lib/avm/git/version.rb +1 -1
  46. data/sub/avm-tools/avm-tools.gemspec +4 -4
  47. data/sub/avm-tools/lib/avm/projects/stereotypes/git/publish.rb +2 -2
  48. data/sub/avm-tools/lib/avm/projects/stereotypes/git/warp.rb +2 -2
  49. data/sub/avm-tools/lib/avm/projects/stereotypes/git.rb +2 -2
  50. data/sub/avm-tools/lib/avm/projects/stereotypes/git_subrepo/publish.rb +2 -2
  51. data/sub/avm-tools/lib/avm/projects/stereotypes/git_subrepo/warp.rb +7 -7
  52. data/sub/avm-tools/lib/avm/projects/stereotypes/git_subrepo.rb +4 -4
  53. data/sub/avm-tools/lib/avm/projects/stereotypes/git_subtree/publish.rb +2 -2
  54. data/sub/avm-tools/lib/avm/projects/stereotypes/git_subtree/warp.rb +4 -4
  55. data/sub/avm-tools/lib/avm/projects/stereotypes/git_subtree.rb +3 -3
  56. data/sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem/publish.rb +2 -2
  57. data/sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb +4 -4
  58. data/sub/avm-tools/lib/avm/projects/stereotypes.rb +0 -9
  59. data/sub/avm-tools/lib/avm/tools/core_ext.rb +0 -1
  60. data/sub/avm-tools/lib/avm/tools/runner/files/format.rb +2 -2
  61. data/sub/avm-tools/lib/avm/tools/runner/git/commit.rb +2 -2
  62. data/sub/avm-tools/lib/avm/tools/runner/git/deploy.rb +2 -2
  63. data/sub/avm-tools/lib/avm/tools/runner/git.rb +2 -2
  64. data/sub/avm-tools/lib/avm/tools/runner/launcher.rb +1 -0
  65. data/sub/avm-tools/lib/avm/tools/runner/source/info.rb +0 -4
  66. data/sub/avm-tools/lib/avm/tools/runner/source/test.rb +1 -1
  67. data/sub/avm-tools/lib/avm/tools/runner/source.rb +0 -12
  68. data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
  69. data/sub/avm-tools/spec/lib/avm/launcher/context_spec.rb +50 -36
  70. data/sub/avm-tools/spec/lib/avm/launcher/git/base_spec.rb +2 -2
  71. data/sub/avm-tools/spec/lib/avm/launcher/ruby/gem/build_spec.rb +2 -2
  72. data/sub/avm-tools/spec/lib/avm/launcher/ruby/gem/specification_spec.rb +1 -1
  73. data/sub/avm-tools/spec/lib/avm/projects/stereotypes/git_subrepo/warp_spec.rb +1 -1
  74. data/sub/avm-tools/spec/lib/avm/tools/runner/source/issue/complete_spec.rb +2 -2
  75. data/sub/avm-tools/spec/spec_helper/eac_launcher.rb +4 -4
  76. metadata +54 -42
  77. data/sub/avm-tools/lib/avm/launcher/git.rb +0 -7
  78. data/sub/avm-tools/lib/avm/launcher/instances.rb +0 -6
  79. data/sub/avm-tools/lib/avm/launcher/paths.rb +0 -4
  80. data/sub/avm-tools/lib/avm/launcher/publish.rb +0 -4
  81. data/sub/avm-tools/lib/avm/launcher/ruby/gem.rb +0 -4
  82. data/sub/avm-tools/lib/avm/launcher/ruby.rb +0 -3
  83. data/sub/avm-tools/lib/avm/patches/i18n.rb +0 -22
  84. data/sub/avm-tools/lib/avm/patches.rb +0 -9
  85. data/sub/avm-tools/lib/avm/projects/stereotype/job_comparator.rb +0 -32
  86. data/sub/avm-tools/lib/avm/projects/stereotypes/rails_application/local_project_mixin.rb +0 -18
  87. data/sub/avm-tools/lib/avm/projects/stereotypes/rails_application.rb +0 -25
  88. data/sub/avm-tools/lib/avm/projects/stereotypes/redmine_plugin.rb +0 -23
  89. data/sub/avm-tools/lib/avm/stereotypes.rb +0 -9
  90. data/sub/avm-tools/lib/avm/tools/source.rb +0 -64
  91. data/sub/avm-tools/locale/en.yml +0 -7
  92. 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: 4e7be8c10a31eca92c292ca5a2aff340237809512a2477c04b9212b9a246264d
4
- data.tar.gz: 7de8fb83e7fbc7583c0577e5de1a561952b17d1b2768951e6706f645933966bb
3
+ metadata.gz: cbfe0ab59e6f9c5c8c7bbfa72dac3511b3c666ec50a219da0cb72b68bd6fd57e
4
+ data.tar.gz: 44c539a327ce1f33448e91091198bc4e932571e7fffc8780110f9fa21b2d6a2a
5
5
  SHA512:
6
- metadata.gz: 71a2a76a1b55a74f18f7aa18db4b25c269c8ffff5e397669ff0d8782fe21db1269e2b571dbf1d7b2b0fa70a696e2cccbdf0921d57a329ff62a15de115d8d1bd4
7
- data.tar.gz: f5a62fb8592908556546226ff6232eef6b8be3a7d72f87080dd2b31a38cfdb60c724069439037942549b72b319672ebd1af1e06bfb378d526f0a2014c1499318
6
+ metadata.gz: cdd20d0375d461660c5c92b11ac386b6c920fabec8abadeae17e08cc18f441a300c7f2d5cc1852f9c16fd9495b62ac25b83d34f789676a4fd89dc5f835a26e80
7
+ data.tar.gz: b07bd715ddbc48a80c8d1529d5972690f726d35a31ddfa2a42f50385fab31c294f814fe49dbf6dc5199ea51a88152f7dd8de09ad0b113ce908fffb268c8b1d73
data/Gemfile CHANGED
@@ -5,5 +5,10 @@ source 'https://rubygems.org'
5
5
  gemspec
6
6
 
7
7
  ::Dir["#{::File.join(__dir__, 'sub')}/*"].each do |dir|
8
+ next unless ::File.exist?(::File.join(dir, "#{::File.basename(dir)}.gemspec"))
9
+
8
10
  gem ::File.basename(dir), path: dir, require: false
9
11
  end
12
+
13
+ local_gemfile = ::File.join(::File.dirname(__FILE__), 'Gemfile.local')
14
+ eval_gemfile local_gemfile if ::File.exist?(local_gemfile)
data/Gemfile.lock CHANGED
@@ -1,19 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eac_tools (0.35.0)
5
- avm (~> 0.46)
4
+ eac_tools (0.36.1)
5
+ avm (~> 0.48)
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
- avm-eac_ruby_base1 (~> 0.22)
14
- avm-eac_webapp_base0 (~> 0.9, >= 0.9.1)
14
+ avm-eac_ruby_base1 (~> 0.23)
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.139)
17
+ avm-tools (~> 0.141)
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:
@@ -80,15 +87,15 @@ PATH
80
87
  PATH
81
88
  remote: sub/avm-eac_ruby_base1
82
89
  specs:
83
- avm-eac_ruby_base1 (0.22.0)
84
- avm (~> 0.45)
90
+ avm-eac_ruby_base1 (0.23.0)
91
+ avm (~> 0.48)
85
92
  avm-eac_generic_base0 (~> 0.5)
86
93
  eac_ruby_utils (~> 0.104)
87
94
 
88
95
  PATH
89
96
  remote: sub/avm-eac_webapp_base0
90
97
  specs:
91
- avm-eac_webapp_base0 (0.9.1)
98
+ avm-eac_webapp_base0 (0.9.2)
92
99
  avm (~> 0.46)
93
100
  avm-eac_generic_base0 (~> 0.5)
94
101
  avm-eac_postgresql_base0 (~> 0.2)
@@ -116,8 +123,8 @@ PATH
116
123
  PATH
117
124
  remote: sub/avm-git
118
125
  specs:
119
- avm-git (0.5.0)
120
- avm (~> 0.46)
126
+ avm-git (0.6.0)
127
+ avm (~> 0.48)
121
128
  avm-files (~> 0.4, >= 0.4.1)
122
129
  eac_git (~> 0.12, >= 0.12.3)
123
130
  eac_ruby_utils (~> 0.104)
@@ -125,13 +132,13 @@ PATH
125
132
  PATH
126
133
  remote: sub/avm-tools
127
134
  specs:
128
- avm-tools (0.139.0)
135
+ avm-tools (0.141.0)
129
136
  aranha-parsers (~> 0.14, >= 0.14.3)
130
- avm (~> 0.46)
131
- avm-eac_ruby_base1 (~> 0.22)
137
+ avm (~> 0.48)
138
+ avm-eac_ruby_base1 (~> 0.23)
132
139
  avm-eac_ubuntu_base0 (~> 0.3)
133
140
  avm-files (~> 0.4, >= 0.4.1)
134
- avm-git (~> 0.5)
141
+ avm-git (~> 0.6)
135
142
  clipboard (~> 1.3, >= 1.3.6)
136
143
  curb (~> 0.9, >= 0.9.11)
137
144
  eac_git (~> 0.12, >= 0.12.3)
@@ -143,7 +150,7 @@ PATH
143
150
  PATH
144
151
  remote: sub/avm
145
152
  specs:
146
- avm (0.46.0)
153
+ avm (0.48.0)
147
154
  eac_cli (~> 0.28)
148
155
  eac_config (~> 0.11, >= 0.11.1)
149
156
  eac_docker (~> 0.5)
@@ -358,6 +365,7 @@ DEPENDENCIES
358
365
  avm-eac_asciidoctor_base0!
359
366
  avm-eac_generic_base0!
360
367
  avm-eac_latex_base0!
368
+ avm-eac_php_base0!
361
369
  avm-eac_rails_base0!
362
370
  avm-eac_rails_base1!
363
371
  avm-eac_redmine_base0!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.35.0'
4
+ VERSION = '0.36.1'
5
5
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module Launcher
7
+ module Errors
8
+ require_sub __FILE__
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module Launcher
7
+ module Instances
8
+ require_sub __FILE__
9
+ end
10
+ end
11
+ end
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'avm/projects/stereotypes'
4
4
  require 'avm/launcher/paths/real'
5
+ require 'avm/launcher/stereotype'
5
6
 
6
7
  module Avm
7
8
  module Launcher
@@ -61,7 +62,7 @@ module Avm
61
62
  private
62
63
 
63
64
  def stereotypes_uncached
64
- ::Avm::Projects::Stereotype.stereotypes.select { |s| s.match?(self) }
65
+ ::Avm::Launcher::Stereotype.stereotypes.select { |s| s.match?(self) }
65
66
  end
66
67
 
67
68
  def build_child(name)
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module Launcher
7
+ module Paths
8
+ require_sub __FILE__
9
+ end
10
+ end
11
+ end
@@ -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
- attr_reader :name, :instances
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
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module Launcher
7
+ module Paths
8
+ require_sub __FILE__
9
+ end
10
+ end
11
+ end
@@ -4,7 +4,7 @@ require 'active_support/core_ext/string/inflections'
4
4
  require 'colorized_string'
5
5
 
6
6
  module Avm
7
- module Projects
7
+ module Launcher
8
8
  module Stereotype
9
9
  class << self
10
10
  attr_reader :stereotypes
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module Launcher
7
+ require_sub __FILE__
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.46.0'
4
+ VERSION = '0.48.0'
5
5
  end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
6
+
7
+ local_gemfile = ::File.join(::File.dirname(__FILE__), 'Gemfile.local')
8
+ eval_gemfile local_gemfile if ::File.exist?(local_gemfile)
@@ -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
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Avm
4
+ module EacPhpBase0
5
+ VERSION = '0.1.0'
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module EacPhpBase0
7
+ require_sub __FILE__
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ ::EacRubyUtils::Rspec.default_setup.describe_rubocop
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/rspec/default_setup'
4
+ ::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib,locale,template}/**/*']
14
14
 
15
- s.add_dependency 'avm', '~> 0.45'
15
+ s.add_dependency 'avm', '~> 0.48'
16
16
  s.add_dependency 'avm-eac_generic_base0', '~> 0.5'
17
17
  s.add_dependency 'eac_ruby_utils', '~> 0.104'
18
18
 
@@ -3,11 +3,11 @@
3
3
  require 'tmpdir'
4
4
  require 'eac_cli/speaker'
5
5
  require 'eac_ruby_utils/envs'
6
- require 'avm/launcher/ruby/gem/specification'
6
+ require 'avm/eac_ruby_base1/launcher/gem/specification'
7
7
 
8
8
  module Avm
9
- module Launcher
10
- module Ruby
9
+ module EacRubyBase1
10
+ module Launcher
11
11
  module Gem
12
12
  class Build
13
13
  enable_speaker
@@ -88,7 +88,7 @@ module Avm
88
88
  end
89
89
 
90
90
  def check_gem_version
91
- spec = ::Avm::Launcher::Ruby::Gem::Specification.new(gemspec_file)
91
+ spec = ::Avm::EacRubyBase1::Launcher::Gem::Specification.new(gemspec_file)
92
92
  return if ::File.basename(output_file, '.gem') == spec.full_name
93
93
 
94
94
  raise("Builded gem is not the same version of gemspec (#{spec}, #{output_file})")
@@ -3,8 +3,8 @@
3
3
  require 'active_support/core_ext/object'
4
4
 
5
5
  module Avm
6
- module Launcher
7
- module Ruby
6
+ module EacRubyBase1
7
+ module Launcher
8
8
  module Gem
9
9
  class Specification
10
10
  class << self
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module EacRubyBase1
7
+ module Launcher
8
+ module Gem
9
+ require_sub __FILE__
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module EacRubyBase1
7
+ module Launcher
8
+ require_sub __FILE__
9
+ end
10
+ end
11
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRubyBase1
5
- VERSION = '0.22.0'
5
+ VERSION = '0.23.0'
6
6
  end
7
7
  end
@@ -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
- ::Avm::Launcher::Git::Base.new(git_repository_path)
47
+ instance.application.local_source.scm.git_repo
47
48
  end
48
49
 
49
50
  def instance_branch
@@ -5,7 +5,6 @@ require 'avm/entries/jobs/base'
5
5
  require 'avm/git'
6
6
  require 'eac_ruby_utils/core_ext'
7
7
  require 'eac_templates/core_ext'
8
- require 'avm/launcher/git/base'
9
8
  require 'net/http'
10
9
 
11
10
  module Avm
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacWebappBase0
5
- VERSION = '0.9.1'
5
+ VERSION = '0.9.2'
6
6
  end
7
7
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib}/**/*']
14
14
 
15
- s.add_dependency 'avm', '~> 0.46'
15
+ s.add_dependency 'avm', '~> 0.48'
16
16
  s.add_dependency 'avm-files', '~> 0.4', '>= 0.4.1'
17
17
  s.add_dependency 'eac_git', '~> 0.12', '>= 0.12.3'
18
18
  s.add_dependency 'eac_ruby_utils', '~> 0.104'
@@ -58,7 +58,7 @@ module Avm
58
58
  end
59
59
 
60
60
  def launcher_git_uncached
61
- ::Avm::Launcher::Git::Base.new(dir)
61
+ ::Avm::Git::Launcher::Base.new(dir)
62
62
  end
63
63
  end
64
64
  end
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- module Launcher
5
- module Git
4
+ module Git
5
+ module Launcher
6
6
  class Base < ::Avm::Launcher::Paths::Real
7
7
  module ClassMethods
8
- # @return [Avm::Launcher::Git::Base]
8
+ # @return [Avm::Git::Launcher::Base]
9
9
  def by_root(search_base_path)
10
10
  new(find_root(search_base_path).to_path)
11
11
  end
@@ -3,8 +3,8 @@
3
3
  require 'active_support/core_ext/object'
4
4
 
5
5
  module Avm
6
- module Launcher
7
- module Git
6
+ module Git
7
+ module Launcher
8
8
  class Base < ::Avm::Launcher::Paths::Real
9
9
  module DirtyFiles
10
10
  delegate :dirty?, to: :eac_git
@@ -1,16 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
- require 'avm/launcher/git/remote'
4
+ require 'avm/git/launcher/remote'
5
5
 
6
6
  module Avm
7
- module Launcher
8
- module Git
7
+ module Git
8
+ module Launcher
9
9
  class Base < ::Avm::Launcher::Paths::Real
10
10
  module Remotes
11
- # @return [Avm::Launcher::Git::Remote]
11
+ # @return [Avm::Git::Launcher::Remote]
12
12
  def remote(name)
13
- ::Avm::Launcher::Git::Remote.new(self, name)
13
+ ::Avm::Git::Launcher::Remote.new(self, name)
14
14
  end
15
15
 
16
16
  def remote_hashs(remote_name)
@@ -3,8 +3,8 @@
3
3
  require 'active_support/core_ext/object'
4
4
 
5
5
  module Avm
6
- module Launcher
7
- module Git
6
+ module Git
7
+ module Launcher
8
8
  class Base < ::Avm::Launcher::Paths::Real
9
9
  module Subrepo
10
10
  def subrepo_status(subrepo_path)
@@ -6,8 +6,8 @@ require 'git'
6
6
  require 'avm/launcher/paths/real'
7
7
 
8
8
  module Avm
9
- module Launcher
10
- module Git
9
+ module Git
10
+ module Launcher
11
11
  class Base < ::Avm::Launcher::Paths::Real
12
12
  module Underlying
13
13
  def command(*args)
@@ -4,19 +4,19 @@ require 'eac_git/local'
4
4
  require 'eac_ruby_utils/core_ext'
5
5
  require 'eac_ruby_utils/envs'
6
6
  require 'avm/launcher/paths/real'
7
- require 'avm/launcher/git/error'
7
+ require 'avm/git/launcher/error'
8
8
 
9
9
  module Avm
10
- module Launcher
11
- module Git
10
+ module Git
11
+ module Launcher
12
12
  class Base < ::Avm::Launcher::Paths::Real
13
13
  require_sub __FILE__
14
14
  enable_simple_cache
15
- extend ::Avm::Launcher::Git::Base::ClassMethods
16
- include ::Avm::Launcher::Git::Base::DirtyFiles
17
- include ::Avm::Launcher::Git::Base::Remotes
18
- include ::Avm::Launcher::Git::Base::Subrepo
19
- include ::Avm::Launcher::Git::Base::Underlying
15
+ extend ::Avm::Git::Launcher::Base::ClassMethods
16
+ include ::Avm::Git::Launcher::Base::DirtyFiles
17
+ include ::Avm::Git::Launcher::Base::Remotes
18
+ include ::Avm::Git::Launcher::Base::Subrepo
19
+ include ::Avm::Git::Launcher::Base::Underlying
20
20
 
21
21
  attr_reader :eac_git
22
22
  delegate :descendant?, :merge_base, :rev_parse, to: :eac_git
@@ -78,7 +78,7 @@ module Avm
78
78
  end
79
79
 
80
80
  def raise(message)
81
- ::Kernel.raise Avm::Launcher::Git::Error.new(self, message)
81
+ ::Kernel.raise Avm::Git::Launcher::Error.new(self, message)
82
82
  end
83
83
  end
84
84
  end
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- module Launcher
5
- module Git
4
+ module Git
5
+ module Launcher
6
6
  class Error < StandardError
7
7
  def initialize(git_instance, message)
8
8
  super("#{message} (Repository: #{git_instance})")
@@ -1,17 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/launcher/git/base'
3
+ require 'avm/git/launcher/base'
4
4
 
5
5
  module Avm
6
- module Launcher
7
- module Git
6
+ module Git
7
+ module Launcher
8
8
  class MirrorUpdate < ::Avm::Launcher::Paths::Real
9
9
  include ::EacRubyUtils::SimpleCache
10
10
 
11
11
  def initialize(target_path, source_path, source_rev)
12
12
  super(target_path)
13
- @target_git = ::Avm::Launcher::Git::Base.new(self)
14
- @source_git = ::Avm::Launcher::Git::Base.new(source_path)
13
+ @target_git = ::Avm::Git::Launcher::Base.new(self)
14
+ @source_git = ::Avm::Git::Launcher::Base.new(source_path)
15
15
  @source_rev = source_rev
16
16
  run
17
17
  end
@@ -6,8 +6,8 @@ require 'avm/launcher/publish/base'
6
6
  require 'avm/launcher/publish/check_result'
7
7
 
8
8
  module Avm
9
- module Launcher
10
- module Git
9
+ module Git
10
+ module Launcher
11
11
  class PublishBase < ::Avm::Launcher::Publish::Base
12
12
  include ::EacRubyUtils::SimpleCache
13
13
  enable_speaker
@@ -92,7 +92,7 @@ module Avm
92
92
  end
93
93
 
94
94
  def sgit_uncached
95
- ::Avm::Launcher::Git::Base.new(instance.warped)
95
+ ::Avm::Git::Launcher::Base.new(instance.warped)
96
96
  end
97
97
 
98
98
  def publish
@@ -117,7 +117,7 @@ module Avm
117
117
  end
118
118
 
119
119
  def remote_name
120
- ::Avm::Launcher::Git::WarpBase::TARGET_REMOTE
120
+ ::Avm::Git::Launcher::WarpBase::TARGET_REMOTE
121
121
  end
122
122
  end
123
123
  end
@@ -3,8 +3,8 @@
3
3
  require 'eac_ruby_utils/core_ext'
4
4
 
5
5
  module Avm
6
- module Launcher
7
- module Git
6
+ module Git
7
+ module Launcher
8
8
  class Remote
9
9
  common_constructor :git, :name
10
10
 
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/projects/stereotype'
4
3
  require 'avm/launcher/errors/base'
4
+ require 'avm/launcher/stereotype'
5
5
 
6
6
  module Avm
7
- module Launcher
8
- module Git
7
+ module Git
8
+ module Launcher
9
9
  module SubWarpBase
10
10
  private
11
11
 
@@ -17,7 +17,7 @@ module Avm
17
17
  end
18
18
 
19
19
  def find_parent_instance(current)
20
- if ::Avm::Projects::Stereotype.git_stereotypes.any? { |s| current.stereotype?(s) }
20
+ if ::Avm::Launcher::Stereotype.git_stereotypes.any? { |s| current.stereotype?(s) }
21
21
  return current
22
22
  end
23
23