eac_tools 0.38.0 → 0.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 177dcaeff3e81307599207d1fdd3a52e8e88c3461e08a5e4c8319b1a354bd3d5
4
- data.tar.gz: 6c3fad0d63f50e97c7cc0fffcc7384c66e6066743874916acd5997237c8b6142
3
+ metadata.gz: d1d34a9bc1557787991919d4ec774433919c492c615358bbe55bbe39068f3cef
4
+ data.tar.gz: c8cf8dbc1417d808ca55a0651b160d2c013292fa073aab923a4f1b184b236a9e
5
5
  SHA512:
6
- metadata.gz: e5628867398318c613bd94c4da4dff8e069553ec4bab91b8dfefacd137bf74ed4294047b31455247f4187b39b45b23d898cb318cfca269f03a3c6dcd6458194c
7
- data.tar.gz: 4f97c29c0ff189dd0ddc6dbc29d20c4b665d57a6bdc677a98a651427d1ee758fa275c8f29d931f466d6ff981f36ee5f075cf300a45d9486dda125c70f8c5b5f1
6
+ metadata.gz: 0d0fa178c202a85807f5d92d62931b2983e485e25b275ace4215220f864c4870f5503eea2c0ca11bbf3ca4f682c4a44c7e736d8aa2a969fc213742d4388f62bc
7
+ data.tar.gz: d8f84b5fd9025491c75d98c9e93d993dfe956facf8b8a868888fb81c8bf57fa63636f812b99f3a95ff2882b532ba5103ec56bd882740e6bcced10aea12f75388
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eac_tools (0.38.0)
5
- avm (~> 0.52)
4
+ eac_tools (0.39.0)
5
+ avm (~> 0.53)
6
6
  avm-eac_asciidoctor_base0 (~> 0.7, >= 0.7.1)
7
- avm-eac_generic_base0 (~> 0.7)
7
+ avm-eac_generic_base0 (~> 0.8)
8
8
  avm-eac_latex_base0 (~> 0.3)
9
9
  avm-eac_php_base0 (~> 0.3)
10
10
  avm-eac_rails_base0 (~> 0.8, >= 0.8.1)
@@ -14,8 +14,8 @@ PATH
14
14
  avm-eac_ruby_base1 (~> 0.26, >= 0.26.1)
15
15
  avm-eac_webapp_base0 (~> 0.12)
16
16
  avm-eac_wordpress_base0 (~> 0.2, >= 0.2.1)
17
- avm-tools (~> 0.142, >= 0.142.3)
18
- eac_ruby_utils (~> 0.106)
17
+ avm-tools (~> 0.142, >= 0.142.4)
18
+ eac_ruby_utils (~> 0.106, >= 0.106.1)
19
19
 
20
20
  PATH
21
21
  remote: sub/aranha-parsers
@@ -43,9 +43,9 @@ PATH
43
43
  PATH
44
44
  remote: sub/avm-eac_generic_base0
45
45
  specs:
46
- avm-eac_generic_base0 (0.7.0)
47
- avm (~> 0.52)
48
- eac_ruby_utils (~> 0.105)
46
+ avm-eac_generic_base0 (0.8.0)
47
+ avm (~> 0.53)
48
+ eac_ruby_utils (~> 0.106, >= 0.106.1)
49
49
 
50
50
  PATH
51
51
  remote: sub/avm-eac_latex_base0
@@ -144,23 +144,23 @@ PATH
144
144
  PATH
145
145
  remote: sub/avm-git
146
146
  specs:
147
- avm-git (0.8.0)
148
- avm (~> 0.50)
149
- avm-files (~> 0.4, >= 0.4.1)
147
+ avm-git (0.9.0)
148
+ avm (~> 0.53)
149
+ avm-files (~> 0.6)
150
150
  eac_git (~> 0.13)
151
- eac_ruby_utils (~> 0.105)
151
+ eac_ruby_utils (~> 0.106, >= 0.106.1)
152
152
  git (~> 1.12)
153
153
 
154
154
  PATH
155
155
  remote: sub/avm-tools
156
156
  specs:
157
- avm-tools (0.142.3)
157
+ avm-tools (0.142.4)
158
158
  aranha-parsers (~> 0.14, >= 0.14.4)
159
- avm (~> 0.52)
159
+ avm (~> 0.53)
160
160
  avm-eac_ruby_base1 (~> 0.26, >= 0.26.1)
161
161
  avm-eac_ubuntu_base0 (~> 0.3)
162
162
  avm-files (~> 0.6)
163
- avm-git (~> 0.8)
163
+ avm-git (~> 0.9)
164
164
  clipboard (~> 1.3, >= 1.3.6)
165
165
  curb (~> 0.9, >= 0.9.11)
166
166
  eac_git (~> 0.13)
@@ -172,14 +172,14 @@ PATH
172
172
  PATH
173
173
  remote: sub/avm
174
174
  specs:
175
- avm (0.52.0)
175
+ avm (0.53.0)
176
176
  aranha-parsers (~> 0.14, >= 0.14.4)
177
177
  eac_cli (~> 0.28)
178
178
  eac_config (~> 0.11, >= 0.11.1)
179
179
  eac_docker (~> 0.5)
180
180
  eac_fs (~> 0.12, >= 0.12.3)
181
181
  eac_git (~> 0.13)
182
- eac_ruby_utils (~> 0.105)
182
+ eac_ruby_utils (~> 0.106, >= 0.106.1)
183
183
  eac_templates (~> 0.3, >= 0.3.2)
184
184
  filesize (~> 0.2)
185
185
  htmlbeautifier (~> 1.4, >= 1.4.2)
@@ -234,7 +234,7 @@ PATH
234
234
  PATH
235
235
  remote: sub/eac_ruby_utils
236
236
  specs:
237
- eac_ruby_utils (0.106.0)
237
+ eac_ruby_utils (0.106.1)
238
238
  activesupport (>= 4, < 7)
239
239
  addressable (~> 2.8, >= 2.8.1)
240
240
  bundler
@@ -337,19 +337,19 @@ GEM
337
337
  rchardet (1.8.0)
338
338
  rexml (3.2.5)
339
339
  rouge (3.30.0)
340
- rspec (3.11.0)
341
- rspec-core (~> 3.11.0)
342
- rspec-expectations (~> 3.11.0)
343
- rspec-mocks (~> 3.11.0)
344
- rspec-core (3.11.0)
345
- rspec-support (~> 3.11.0)
346
- rspec-expectations (3.11.1)
340
+ rspec (3.12.0)
341
+ rspec-core (~> 3.12.0)
342
+ rspec-expectations (~> 3.12.0)
343
+ rspec-mocks (~> 3.12.0)
344
+ rspec-core (3.12.0)
345
+ rspec-support (~> 3.12.0)
346
+ rspec-expectations (3.12.0)
347
347
  diff-lcs (>= 1.2.0, < 2.0)
348
- rspec-support (~> 3.11.0)
349
- rspec-mocks (3.11.1)
348
+ rspec-support (~> 3.12.0)
349
+ rspec-mocks (3.12.0)
350
350
  diff-lcs (>= 1.2.0, < 2.0)
351
- rspec-support (~> 3.11.0)
352
- rspec-support (3.11.1)
351
+ rspec-support (~> 3.12.0)
352
+ rspec-support (3.12.0)
353
353
  rubocop (0.80.1)
354
354
  jaro_winkler (~> 1.5.1)
355
355
  parallel (~> 1.10)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.38.0'
4
+ VERSION = '0.39.0'
5
5
  end
data/sub/avm/avm.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.add_dependency 'eac_docker', '~> 0.5'
19
19
  s.add_dependency 'eac_fs', '~> 0.12', '>= 0.12.3'
20
20
  s.add_dependency 'eac_git', '~> 0.13'
21
- s.add_dependency 'eac_ruby_utils', '~> 0.105'
21
+ s.add_dependency 'eac_ruby_utils', '~> 0.106', '>= 0.106.1'
22
22
  s.add_dependency 'eac_templates', '~> 0.3', '>= 0.3.2'
23
23
  s.add_dependency 'filesize', '~> 0.2'
24
24
  s.add_dependency 'htmlbeautifier', '~> 1.4', '>= 1.4.2'
@@ -12,6 +12,14 @@ module Avm
12
12
  raise_abstract_method __method__
13
13
  end
14
14
 
15
+ def deploy_to_env_path(_target_env, _target_path)
16
+ raise_abstract_method __method__
17
+ end
18
+
19
+ def id
20
+ raise_abstract_method __method__
21
+ end
22
+
15
23
  # @param other [Avm::Scms::Commit]
16
24
  # @return [Avm::Scms::Commit]
17
25
  def merge_with(_other)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.52.0'
4
+ VERSION = '0.53.0'
5
5
  end
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib,locale}/**/*']
14
14
 
15
- s.add_dependency 'avm', '~> 0.52'
16
- s.add_dependency 'eac_ruby_utils', '~> 0.105'
15
+ s.add_dependency 'avm', '~> 0.53'
16
+ s.add_dependency 'eac_ruby_utils', '~> 0.106', '>= 0.106.1'
17
17
 
18
18
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
19
19
  end
@@ -10,6 +10,10 @@ module Avm
10
10
  require_sub __FILE__, include_modules: true
11
11
  enable_abstract_methods
12
12
 
13
+ def update
14
+ # Do nothing
15
+ end
16
+
13
17
  def valid?
14
18
  ::Avm::Registry.scms.detect_optional(path).present?
15
19
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacGenericBase0
5
- VERSION = '0.7.0'
5
+ VERSION = '0.8.0'
6
6
  end
7
7
  end
@@ -12,10 +12,10 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib}/**/*']
14
14
 
15
- s.add_dependency 'avm', '~> 0.50'
16
- s.add_dependency 'avm-files', '~> 0.4', '>= 0.4.1'
15
+ s.add_dependency 'avm', '~> 0.53'
16
+ s.add_dependency 'avm-files', '~> 0.6'
17
17
  s.add_dependency 'eac_git', '~> 0.13'
18
- s.add_dependency 'eac_ruby_utils', '~> 0.105'
18
+ s.add_dependency 'eac_ruby_utils', '~> 0.106', '>= 0.106.1'
19
19
  s.add_dependency 'git', '~> 1.12'
20
20
 
21
21
  s.add_development_dependency 'aranha-parsers', '~> 0.8', '>= 0.8.5'
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/files/appendable'
4
+ require 'avm/files/deploy'
5
+ require 'avm/scms/base'
6
+ require 'avm/scms/commit'
7
+ require 'eac_ruby_utils/core_ext'
8
+
9
+ module Avm
10
+ module Git
11
+ module Scms
12
+ class Git < ::Avm::Scms::Base
13
+ class Commit < ::Avm::Scms::Commit
14
+ class Deploy
15
+ include ::Avm::Files::Appendable
16
+ enable_simple_cache
17
+
18
+ attr_reader :build_dir, :commit, :target_env, :target_path
19
+
20
+ def initialize(commit, target_env, target_path)
21
+ @commit = commit
22
+ @target_env = target_env
23
+ @target_path = target_path
24
+ end
25
+
26
+ def run
27
+ fd = ::Avm::Files::Deploy.new(target_env, target_path)
28
+ fd.append_tar_output_command(git_archive_command)
29
+ fd.appended.push(*appended)
30
+ fd.run
31
+ end
32
+
33
+ private
34
+
35
+ def git_archive_command
36
+ commit.git_repo.command('archive', '--format=tar', commit.id)
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/git/commit'
4
+ require 'avm/git/scms/git/commit/deploy'
5
+ require 'avm/scms/base'
6
+ require 'avm/scms/commit'
7
+ require 'eac_ruby_utils/core_ext'
8
+
9
+ module Avm
10
+ module Git
11
+ module Scms
12
+ class Git < ::Avm::Scms::Base
13
+ class Commit < ::Avm::Scms::Commit
14
+ module DeployMethods
15
+ def deploy_to_env_path(target_env, target_path)
16
+ ::Avm::Git::Scms::Git::Commit::Deploy.new(self, target_env, target_path)
17
+ end
18
+
19
+ def deploy_to_url(target_url)
20
+ ::Avm::Git::Scms::Git::Commit::Deploy.new(
21
+ self,
22
+ *::Avm::Git::Commit.target_url_to_env_path(target_url)
23
+ )
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -8,10 +8,12 @@ module Avm
8
8
  module Scms
9
9
  class Git < ::Avm::Scms::Base
10
10
  class Commit < ::Avm::Scms::Commit
11
+ require_sub __FILE__, include_modules: true
11
12
  common_constructor :git_scm, :git_commit do
12
13
  git_commit.assert_argument(::EacGit::Local::Commit, 'git_commit')
13
14
  end
14
15
  delegate :git_repo, to: :git_scm
16
+ delegate :id, to: :git_commit
15
17
 
16
18
  # @return [Array<Pathname>]
17
19
  def changed_files
@@ -18,7 +18,7 @@ module Avm
18
18
  end
19
19
 
20
20
  # @return [Avm::Git::Scms::Git::Commit,nil]
21
- def commitize(source)
21
+ def commit(source)
22
22
  if source.is_a?(::Avm::Git::Scms::Git::Commit)
23
23
  return source if source.git_repo == self
24
24
 
@@ -36,7 +36,7 @@ module Avm
36
36
  git_repo.command('add', '.').execute!
37
37
  git_repo.command('commit', '-m',
38
38
  message.call_if_proc.if_present(COMMIT_DIRTY_DEFAULT_MESSAGE)).execute!
39
- commitize(git_repo.head)
39
+ commit(git_repo.head)
40
40
  end
41
41
 
42
42
  # @return [Avm::Git::Scms::Git::Commit,nil]
@@ -53,7 +53,7 @@ module Avm
53
53
 
54
54
  # @return [Avm::Git::Scms::Git::Commit]
55
55
  def reset_and_commit(commit_to_reset, message)
56
- git_repo.command('reset', '--soft', commitize(commit_to_reset).git_commit.id).execute!
56
+ git_repo.command('reset', '--soft', commit(commit_to_reset).git_commit.id).execute!
57
57
  commit_dirty(message)
58
58
  end
59
59
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Git
5
- VERSION = '0.8.0'
5
+ VERSION = '0.9.0'
6
6
  end
7
7
  end
@@ -1,10 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/git/commit'
4
- require 'avm/git/commit/deploy'
3
+ require 'avm/git/scms/git'
5
4
  require 'eac_ruby_utils/fs/temp'
6
5
 
7
- RSpec.describe ::Avm::Git::Commit::Deploy, git: true do
6
+ RSpec.describe ::Avm::Git::Scms::Git::Commit::Deploy, git: true do
8
7
  class << self
9
8
  FROM_DEPLOY = %w[a.txt b.txt c.txt appended].freeze # rubocop:disable RSpec/LeakyConstantDeclaration
10
9
  NOT_FROM_DEPLOY = %w[to_be_removed].freeze # rubocop:disable RSpec/LeakyConstantDeclaration
@@ -58,7 +57,7 @@ RSpec.describe ::Avm::Git::Commit::Deploy, git: true do
58
57
  r
59
58
  end
60
59
 
61
- let(:commit) { ::Avm::Git::Commit.new(git, commit_sha1) }
60
+ let(:commit) { ::Avm::Git::Scms::Git.new(git.root_path).commit(commit_sha1) }
62
61
  let(:variables_source_class) do
63
62
  ::Class.new do
64
63
  attr_reader :abc
@@ -15,11 +15,11 @@ Gem::Specification.new do |s|
15
15
  s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
16
16
 
17
17
  s.add_dependency 'aranha-parsers', '~> 0.14', '>= 0.14.4'
18
- s.add_dependency 'avm', '~> 0.52'
18
+ s.add_dependency 'avm', '~> 0.53'
19
19
  s.add_dependency 'avm-eac_ruby_base1', '~> 0.26', '>= 0.26.1'
20
20
  s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.3'
21
21
  s.add_dependency 'avm-files', '~> 0.6'
22
- s.add_dependency 'avm-git', '~> 0.8'
22
+ s.add_dependency 'avm-git', '~> 0.9'
23
23
  s.add_dependency 'clipboard', '~> 1.3', '>= 1.3.6'
24
24
  s.add_dependency 'curb', '~> 0.9', '>= 0.9.11'
25
25
  s.add_dependency 'eac_git', '~> 0.13'
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/git/launcher/base'
4
- require 'avm/git/commit'
3
+ require 'avm/git/scms/git'
5
4
  require 'eac_config/node'
6
5
 
7
6
  module Avm
@@ -49,7 +48,7 @@ module Avm
49
48
  end
50
49
 
51
50
  def reference_sha1_uncached
52
- git.rev_parse(reference)
51
+ git.git_repo.rev_parse(reference)
53
52
  end
54
53
 
55
54
  def reference
@@ -57,7 +56,7 @@ module Avm
57
56
  end
58
57
 
59
58
  def git_uncached
60
- ::Avm::Git::Launcher::Base.new(git_repository_path)
59
+ ::Avm::Git::Scms::Git.new(git_repository_path)
61
60
  end
62
61
 
63
62
  def git_repository_path
@@ -77,7 +76,7 @@ module Avm
77
76
  end
78
77
 
79
78
  def deploy
80
- ::Avm::Git::Commit.new(git, reference_sha1)
79
+ git.commit(reference_sha1)
81
80
  .deploy_to_url(target_url)
82
81
  .append_templatized_directories(appended_directories)
83
82
  .variables_source_set(variables_source)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.142.3'
5
+ VERSION = '0.142.4'
6
6
  end
7
7
  end
@@ -49,7 +49,7 @@ module EacRubyUtils
49
49
  return nil unless lib_file_found?
50
50
 
51
51
  require path_to_require
52
- path_to_require.classify.constantize
52
+ path_to_require.camelize.constantize
53
53
  end
54
54
 
55
55
  # @return [String]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.106.0'
4
+ VERSION = '0.106.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-25 00:00:00.000000000 Z
11
+ date: 2022-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.52'
19
+ version: '0.53'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.52'
26
+ version: '0.53'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: avm-eac_asciidoctor_base0
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.7'
53
+ version: '0.8'
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.7'
60
+ version: '0.8'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: avm-eac_latex_base0
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -211,7 +211,7 @@ dependencies:
211
211
  version: '0.142'
212
212
  - - ">="
213
213
  - !ruby/object:Gem::Version
214
- version: 0.142.3
214
+ version: 0.142.4
215
215
  type: :runtime
216
216
  prerelease: false
217
217
  version_requirements: !ruby/object:Gem::Requirement
@@ -221,7 +221,7 @@ dependencies:
221
221
  version: '0.142'
222
222
  - - ">="
223
223
  - !ruby/object:Gem::Version
224
- version: 0.142.3
224
+ version: 0.142.4
225
225
  - !ruby/object:Gem::Dependency
226
226
  name: eac_ruby_utils
227
227
  requirement: !ruby/object:Gem::Requirement
@@ -229,6 +229,9 @@ dependencies:
229
229
  - - "~>"
230
230
  - !ruby/object:Gem::Version
231
231
  version: '0.106'
232
+ - - ">="
233
+ - !ruby/object:Gem::Version
234
+ version: 0.106.1
232
235
  type: :runtime
233
236
  prerelease: false
234
237
  version_requirements: !ruby/object:Gem::Requirement
@@ -236,6 +239,9 @@ dependencies:
236
239
  - - "~>"
237
240
  - !ruby/object:Gem::Version
238
241
  version: '0.106'
242
+ - - ">="
243
+ - !ruby/object:Gem::Version
244
+ version: 0.106.1
239
245
  - !ruby/object:Gem::Dependency
240
246
  name: eac_ruby_gem_support
241
247
  requirement: !ruby/object:Gem::Requirement
@@ -764,8 +770,6 @@ files:
764
770
  - sub/avm-git/lib/avm/git/auto_commit_path/ruby.rb
765
771
  - sub/avm-git/lib/avm/git/commit.rb
766
772
  - sub/avm-git/lib/avm/git/commit/class_methods.rb
767
- - sub/avm-git/lib/avm/git/commit/deploy.rb
768
- - sub/avm-git/lib/avm/git/commit/deploy_methods.rb
769
773
  - sub/avm-git/lib/avm/git/commit/diff_tree_line.rb
770
774
  - sub/avm-git/lib/avm/git/commit/file.rb
771
775
  - sub/avm-git/lib/avm/git/file_auto_fixup.rb
@@ -816,6 +820,8 @@ files:
816
820
  - sub/avm-git/lib/avm/git/scms/git.rb
817
821
  - sub/avm-git/lib/avm/git/scms/git/change_tracker.rb
818
822
  - sub/avm-git/lib/avm/git/scms/git/commit.rb
823
+ - sub/avm-git/lib/avm/git/scms/git/commit/deploy.rb
824
+ - sub/avm-git/lib/avm/git/scms/git/commit/deploy_methods.rb
819
825
  - sub/avm-git/lib/avm/git/scms/git_subrepo.rb
820
826
  - sub/avm-git/lib/avm/git/scms/provider.rb
821
827
  - sub/avm-git/lib/avm/git/subrepo_check.rb
@@ -827,7 +833,6 @@ files:
827
833
  - sub/avm-git/lib/avm/git/vendor/github.rb
828
834
  - sub/avm-git/lib/avm/git/version.rb
829
835
  - sub/avm-git/spec/lib/avm/git/auto_commit_path_spec.rb
830
- - sub/avm-git/spec/lib/avm/git/commit/deploy_spec.rb
831
836
  - sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec.rb
832
837
  - sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.source.out
833
838
  - sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.target.yaml
@@ -841,6 +846,7 @@ files:
841
846
  - sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.target.yaml
842
847
  - sub/avm-git/spec/lib/avm/git/commit_spec.rb
843
848
  - sub/avm-git/spec/lib/avm/git/launcher/base_spec.rb
849
+ - sub/avm-git/spec/lib/avm/git/scms/git/commit/deploy_spec.rb
844
850
  - sub/avm-git/spec/lib/avm/git/scms/git_spec.rb
845
851
  - sub/avm-git/spec/lib/avm/git/scms/git_subrepo_spec.rb
846
852
  - sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
@@ -1,38 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'addressable'
4
- require 'eac_ruby_utils/core_ext'
5
- require 'avm/files/appendable'
6
- require 'avm/files/deploy'
7
-
8
- module Avm
9
- module Git
10
- class Commit
11
- class Deploy
12
- include ::Avm::Files::Appendable
13
- enable_simple_cache
14
-
15
- attr_reader :build_dir, :commit, :target_env, :target_path
16
-
17
- def initialize(commit, target_env, target_path)
18
- @commit = commit
19
- @target_env = target_env
20
- @target_path = target_path
21
- end
22
-
23
- def run
24
- fd = ::Avm::Files::Deploy.new(target_env, target_path)
25
- fd.append_tar_output_command(git_archive_command)
26
- fd.appended.push(*appended)
27
- fd.run
28
- end
29
-
30
- private
31
-
32
- def git_archive_command
33
- commit.git.command('archive', '--format=tar', commit.sha1)
34
- end
35
- end
36
- end
37
- end
38
- end
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Avm
6
- module Git
7
- class Commit
8
- module DeployMethods
9
- def deploy_to_env_path(target_env, target_path)
10
- Deploy.new(self, target_env, target_path)
11
- end
12
-
13
- def deploy_to_url(target_url)
14
- Deploy.new(self, *self.class.target_url_to_env_path(target_url))
15
- end
16
- end
17
- end
18
- end
19
- end