eac_tools 0.33.0 → 0.35.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +30 -24
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm/avm.gemspec +1 -1
- data/sub/{avm-tools → avm}/lib/avm/launcher/context/instance_collector.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/context/instance_discovery.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/context/instance_manager/cached_instance.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/context/instance_manager/cached_instances.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/context/instance_manager.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/context/settings.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/context.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/instances/base/cache.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/instances/base.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/instances/error.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/instances/runner_helper.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/instances/settings.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/paths/logical.rb +0 -0
- data/sub/{avm-tools → avm}/lib/avm/launcher/publish/base.rb +2 -5
- data/sub/avm/lib/avm/registry.rb +0 -2
- data/sub/avm/lib/avm/version.rb +1 -1
- data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +2 -2
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_local.rb +21 -4
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_lock/git.rb +60 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_lock.rb +89 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
- data/sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec +1 -1
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/apache_host.rb +2 -1
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
- data/sub/avm-git/Gemfile +8 -0
- data/sub/avm-git/avm-git.gemspec +22 -0
- data/sub/avm-git/lib/avm/git/auto_commit/commit_info.rb +23 -0
- data/sub/avm-git/lib/avm/git/auto_commit/rules/base.rb +39 -0
- data/sub/avm-git/lib/avm/git/auto_commit/rules/last.rb +19 -0
- data/sub/avm-git/lib/avm/git/auto_commit/rules/manual.rb +45 -0
- data/sub/avm-git/lib/avm/git/auto_commit/rules/new.rb +24 -0
- data/sub/avm-git/lib/avm/git/auto_commit/rules/nth.rb +31 -0
- data/sub/avm-git/lib/avm/git/auto_commit/rules/unique.rb +21 -0
- data/sub/avm-git/lib/avm/git/auto_commit/rules.rb +31 -0
- data/sub/avm-git/lib/avm/git/auto_commit_path/ruby.rb +20 -0
- data/sub/avm-git/lib/avm/git/auto_commit_path.rb +28 -0
- data/sub/avm-git/lib/avm/git/commit/class_methods.rb +31 -0
- data/sub/avm-git/lib/avm/git/commit/deploy.rb +38 -0
- data/sub/avm-git/lib/avm/git/commit/deploy_methods.rb +19 -0
- data/sub/avm-git/lib/avm/git/commit/diff_tree_line.rb +32 -0
- data/sub/avm-git/lib/avm/git/commit/file.rb +46 -0
- data/sub/avm-git/lib/avm/git/commit.rb +59 -0
- data/sub/avm-git/lib/avm/git/file_auto_fixup.rb +83 -0
- data/sub/avm-git/lib/avm/git/issue/complete/commits.rb +42 -0
- data/sub/avm-git/lib/avm/git/issue/complete/git_subrepos.rb +23 -0
- data/sub/avm-git/lib/avm/git/issue/complete/local_branch.rb +61 -0
- data/sub/avm-git/lib/avm/git/issue/complete/local_tag.rb +39 -0
- data/sub/avm-git/lib/avm/git/issue/complete/push.rb +60 -0
- data/sub/avm-git/lib/avm/git/issue/complete/remote.rb +33 -0
- data/sub/avm-git/lib/avm/git/issue/complete/test.rb +40 -0
- data/sub/avm-git/lib/avm/git/issue/complete/tracker.rb +28 -0
- data/sub/avm-git/lib/avm/git/issue/complete/validation.rb +39 -0
- data/sub/avm-git/lib/avm/git/issue/complete/validations.rb +53 -0
- data/sub/avm-git/lib/avm/git/issue/complete/working_tree.rb +19 -0
- data/sub/avm-git/lib/avm/git/issue/complete.rb +66 -0
- data/sub/avm-git/lib/avm/git/issue/deliver.rb +56 -0
- data/sub/avm-git/lib/avm/git/issue.rb +11 -0
- data/sub/avm-git/lib/avm/git/organize/reference_update.rb +34 -0
- data/sub/avm-git/lib/avm/git/organize/repository.rb +76 -0
- data/sub/avm-git/lib/avm/git/organize.rb +11 -0
- data/sub/avm-git/lib/avm/git/revision_test.rb +105 -0
- data/sub/avm-git/lib/avm/git/scms/git/change_tracker.rb +35 -0
- data/sub/avm-git/lib/avm/git/scms/git/commit.rb +55 -0
- data/sub/avm-git/lib/avm/git/scms/git.rb +73 -0
- data/sub/avm-git/lib/avm/git/scms/git_subrepo.rb +39 -0
- data/sub/avm-git/lib/avm/git/scms/provider.rb +19 -0
- data/sub/avm-git/lib/avm/git/scms.rb +11 -0
- data/sub/avm-git/lib/avm/git/subrepo_check/parent.rb +51 -0
- data/sub/avm-git/lib/avm/git/subrepo_check/remote.rb +89 -0
- data/sub/avm-git/lib/avm/git/subrepo_check/show_result.rb +32 -0
- data/sub/avm-git/lib/avm/git/subrepo_check.rb +38 -0
- data/sub/avm-git/lib/avm/git/subrepo_checks.rb +59 -0
- data/sub/{avm-tools/lib/avm/launcher → avm-git/lib/avm/git}/vendor/github.rb +1 -1
- data/sub/avm-git/lib/avm/git/vendor.rb +11 -0
- data/sub/avm-git/lib/avm/git/version.rb +7 -0
- data/sub/avm-git/lib/avm/git.rb +11 -0
- data/sub/avm-git/spec/lib/avm/git/auto_commit_path_spec.rb +21 -0
- data/sub/avm-git/spec/lib/avm/git/commit/deploy_spec.rb +93 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec.rb +13 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.source.out +1 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.target.yaml +7 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.source.out +1 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.target.yaml +7 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.source.out +1 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.target.yaml +7 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.source.out +2 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.target.yaml +13 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.source.out +2 -0
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.target.yaml +13 -0
- data/sub/avm-git/spec/lib/avm/git/commit_spec.rb +56 -0
- data/sub/avm-git/spec/lib/avm/git/scms/git_spec.rb +8 -0
- data/sub/avm-git/spec/lib/avm/git/scms/git_subrepo_spec.rb +8 -0
- data/sub/{avm-tools/spec/lib/avm/launcher → avm-git/spec/lib/avm/git}/vendor/github_spec.rb +4 -4
- data/sub/avm-git/spec/rubocop_spec.rb +3 -0
- data/sub/avm-git/spec/spec_helper.rb +4 -0
- data/sub/avm-tools/avm-tools.gemspec +3 -3
- data/sub/avm-tools/lib/avm/launcher/git/warp_base.rb +2 -2
- data/sub/avm-tools/lib/avm/projects/stereotypes/git_subrepo/warp.rb +2 -2
- data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
- data/sub/eac_docker/eac_docker.gemspec +2 -2
- data/sub/eac_docker/lib/eac_docker/images/templatized.rb +7 -1
- data/sub/eac_docker/lib/eac_docker/version.rb +1 -1
- metadata +101 -29
- data/sub/avm-tools/lib/avm/launcher/vendor.rb +0 -3
- data/sub/avm-tools/lib/avm/tools/runner/source/ruby/bundler/gemfile_lock/git.rb +0 -62
- data/sub/avm-tools/lib/avm/tools/runner/source/ruby/bundler/gemfile_lock.rb +0 -105
- data/sub/avm-tools/lib/avm/tools/runner/source/ruby/bundler.rb +0 -21
- data/sub/avm-tools/lib/avm/tools/runner/source/ruby.rb +0 -19
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/git/commit'
|
4
|
+
|
5
|
+
RSpec.describe ::Avm::Git::Commit, git: true do
|
6
|
+
let(:git) { stubbed_git_local_repo }
|
7
|
+
|
8
|
+
let(:first_commit_sha1) do
|
9
|
+
git.file('a.txt').write('AAA')
|
10
|
+
git.file('b.txt').write('BBB')
|
11
|
+
git.command('add', '.').execute!
|
12
|
+
git.command('commit', '-m', 'First commit.').execute!
|
13
|
+
git.rev_parse('HEAD')
|
14
|
+
end
|
15
|
+
|
16
|
+
let(:second_commit_sha1) do
|
17
|
+
first_commit_sha1
|
18
|
+
git.file('a.txt').write('AAAAA')
|
19
|
+
git.file('b.txt').delete
|
20
|
+
git.file('ç.txt').write('CCC')
|
21
|
+
git.command('add', '.').execute!
|
22
|
+
git.command('commit', '-m', 'Second commit.').execute!
|
23
|
+
git.rev_parse('HEAD')
|
24
|
+
end
|
25
|
+
|
26
|
+
let(:first_commit) { described_class.new(git, first_commit_sha1) }
|
27
|
+
let(:second_commit) { described_class.new(git, second_commit_sha1) }
|
28
|
+
|
29
|
+
describe '#files' do
|
30
|
+
it { expect(first_commit.files.count).to eq(2) }
|
31
|
+
it { expect(second_commit.files.count).to eq(3) }
|
32
|
+
|
33
|
+
{
|
34
|
+
'first_commit' => %w[a.txt b.txt],
|
35
|
+
'second_commit' => %w[a.txt b.txt ç.txt]
|
36
|
+
}.each do |commit_name, filenames|
|
37
|
+
filenames.each do |filename|
|
38
|
+
it "find file \"#{filename}\" in commit \"#{commit_name}\"" do
|
39
|
+
commit = send(commit_name)
|
40
|
+
file = commit.files.find { |f| f.path == filename }
|
41
|
+
expect(file).to be_a(::Avm::Git::Commit::File)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe '#files_size' do
|
48
|
+
it { expect(first_commit.files_size).to eq(6) }
|
49
|
+
it { expect(second_commit.files_size).to eq(8) }
|
50
|
+
end
|
51
|
+
|
52
|
+
describe '#root_child?' do
|
53
|
+
it { expect(first_commit.root_child?).to eq(true) }
|
54
|
+
it { expect(second_commit.root_child?).to eq(false) }
|
55
|
+
end
|
56
|
+
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'avm/
|
3
|
+
require 'avm/git/vendor/github'
|
4
4
|
|
5
|
-
RSpec.describe ::Avm::
|
5
|
+
RSpec.describe ::Avm::Git::Vendor::Github do
|
6
6
|
describe '#to_ssh_url' do
|
7
|
-
SSH_URL = 'git@github.com:esquilo-azul/eac_launcher.git'
|
8
|
-
NO_SSH_URL = 'https://otherhost.com/esquilo-azul/eac_launcher'
|
7
|
+
SSH_URL = 'git@github.com:esquilo-azul/eac_launcher.git' # rubocop:disable RSpec/LeakyConstantDeclaration
|
8
|
+
NO_SSH_URL = 'https://otherhost.com/esquilo-azul/eac_launcher' # rubocop:disable RSpec/LeakyConstantDeclaration
|
9
9
|
|
10
10
|
{
|
11
11
|
nil => nil,
|
@@ -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.3'
|
18
|
-
s.add_dependency 'avm', '~> 0.
|
19
|
-
s.add_dependency 'avm-eac_ruby_base1', '~> 0.
|
18
|
+
s.add_dependency 'avm', '~> 0.46'
|
19
|
+
s.add_dependency 'avm-eac_ruby_base1', '~> 0.22'
|
20
20
|
s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.3'
|
21
21
|
s.add_dependency 'avm-files', '~> 0.4', '>= 0.4.1'
|
22
|
-
s.add_dependency 'avm-git', '~> 0.
|
22
|
+
s.add_dependency 'avm-git', '~> 0.5'
|
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.12', '>= 0.12.3'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'avm/launcher/git/mirror_update'
|
4
4
|
require 'avm/launcher/instances/error'
|
5
|
-
require 'avm/
|
5
|
+
require 'avm/git/vendor/github'
|
6
6
|
require 'avm/projects/stereotypes/git/publish'
|
7
7
|
|
8
8
|
module Avm
|
@@ -59,7 +59,7 @@ module Avm
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def target_remote_url
|
62
|
-
::Avm::
|
62
|
+
::Avm::Git::Vendor::Github.to_ssh_url(source_git.git.remote(source_remote_name).url)
|
63
63
|
end
|
64
64
|
end
|
65
65
|
end
|
@@ -4,7 +4,7 @@ require 'eac_ruby_utils/simple_cache'
|
|
4
4
|
require 'avm/launcher/git/sub_warp_base'
|
5
5
|
require 'avm/launcher/errors/base'
|
6
6
|
require 'avm/launcher/paths/real'
|
7
|
-
require 'avm/
|
7
|
+
require 'avm/git/vendor/github'
|
8
8
|
|
9
9
|
module Avm
|
10
10
|
module Projects
|
@@ -77,7 +77,7 @@ module Avm
|
|
77
77
|
end
|
78
78
|
|
79
79
|
def target_remote_url
|
80
|
-
::Avm::
|
80
|
+
::Avm::Git::Vendor::Github.to_ssh_url(
|
81
81
|
parent_git_warped.subrepo_remote_url(to_parent_git_path)
|
82
82
|
)
|
83
83
|
end
|
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
|
|
12
12
|
|
13
13
|
s.files = Dir['{lib}/**/*']
|
14
14
|
|
15
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.
|
16
|
-
s.add_dependency 'eac_templates', '~> 0.3', '>= 0.3.
|
15
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.104'
|
16
|
+
s.add_dependency 'eac_templates', '~> 0.3', '>= 0.3.2'
|
17
17
|
|
18
18
|
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
|
19
19
|
end
|
@@ -21,7 +21,7 @@ module EacDocker
|
|
21
21
|
::EacRubyUtils::Fs::Temp.on_directory do |provide_dir|
|
22
22
|
begin
|
23
23
|
self.provide_dir = provide_dir
|
24
|
-
|
24
|
+
write_in_provide_dir
|
25
25
|
coded_image(provide_dir).tag(tag).provide
|
26
26
|
ensure
|
27
27
|
self.provide_dir = nil
|
@@ -33,6 +33,12 @@ module EacDocker
|
|
33
33
|
::EacDocker::Images::Coded.new(provide_dir)
|
34
34
|
end
|
35
35
|
|
36
|
+
protected
|
37
|
+
|
38
|
+
def write_in_provide_dir
|
39
|
+
template.apply(self, provide_dir)
|
40
|
+
end
|
41
|
+
|
36
42
|
private
|
37
43
|
|
38
44
|
attr_writer :provide_dir
|
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.
|
4
|
+
version: 0.35.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-09
|
11
|
+
date: 2022-10-09 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.
|
19
|
+
version: '0.46'
|
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.
|
26
|
+
version: '0.46'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: avm-eac_asciidoctor_base0
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,14 +146,14 @@ dependencies:
|
|
146
146
|
requirements:
|
147
147
|
- - "~>"
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version: '0.
|
149
|
+
version: '0.22'
|
150
150
|
type: :runtime
|
151
151
|
prerelease: false
|
152
152
|
version_requirements: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
154
|
- - "~>"
|
155
155
|
- !ruby/object:Gem::Version
|
156
|
-
version: '0.
|
156
|
+
version: '0.22'
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: avm-eac_webapp_base0
|
159
159
|
requirement: !ruby/object:Gem::Requirement
|
@@ -161,6 +161,9 @@ dependencies:
|
|
161
161
|
- - "~>"
|
162
162
|
- !ruby/object:Gem::Version
|
163
163
|
version: '0.9'
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 0.9.1
|
164
167
|
type: :runtime
|
165
168
|
prerelease: false
|
166
169
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -168,6 +171,9 @@ dependencies:
|
|
168
171
|
- - "~>"
|
169
172
|
- !ruby/object:Gem::Version
|
170
173
|
version: '0.9'
|
174
|
+
- - ">="
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: 0.9.1
|
171
177
|
- !ruby/object:Gem::Dependency
|
172
178
|
name: avm-eac_wordpress_base0
|
173
179
|
requirement: !ruby/object:Gem::Requirement
|
@@ -194,14 +200,14 @@ dependencies:
|
|
194
200
|
requirements:
|
195
201
|
- - "~>"
|
196
202
|
- !ruby/object:Gem::Version
|
197
|
-
version: '0.
|
203
|
+
version: '0.139'
|
198
204
|
type: :runtime
|
199
205
|
prerelease: false
|
200
206
|
version_requirements: !ruby/object:Gem::Requirement
|
201
207
|
requirements:
|
202
208
|
- - "~>"
|
203
209
|
- !ruby/object:Gem::Version
|
204
|
-
version: '0.
|
210
|
+
version: '0.139'
|
205
211
|
- !ruby/object:Gem::Dependency
|
206
212
|
name: eac_ruby_utils
|
207
213
|
requirement: !ruby/object:Gem::Requirement
|
@@ -475,6 +481,8 @@ files:
|
|
475
481
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners.rb
|
476
482
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler.rb
|
477
483
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_local.rb
|
484
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_lock.rb
|
485
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_lock/git.rb
|
478
486
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/incompatible.rb
|
479
487
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/update_dependencies_requirements.rb
|
480
488
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests.rb
|
@@ -611,18 +619,82 @@ files:
|
|
611
619
|
- sub/avm-files/lib/avm/files/version.rb
|
612
620
|
- sub/avm-files/spec/rubocop_spec.rb
|
613
621
|
- sub/avm-files/spec/spec_helper.rb
|
622
|
+
- sub/avm-git/Gemfile
|
623
|
+
- sub/avm-git/avm-git.gemspec
|
624
|
+
- sub/avm-git/lib/avm/git.rb
|
625
|
+
- sub/avm-git/lib/avm/git/auto_commit/commit_info.rb
|
626
|
+
- sub/avm-git/lib/avm/git/auto_commit/rules.rb
|
627
|
+
- sub/avm-git/lib/avm/git/auto_commit/rules/base.rb
|
628
|
+
- sub/avm-git/lib/avm/git/auto_commit/rules/last.rb
|
629
|
+
- sub/avm-git/lib/avm/git/auto_commit/rules/manual.rb
|
630
|
+
- sub/avm-git/lib/avm/git/auto_commit/rules/new.rb
|
631
|
+
- sub/avm-git/lib/avm/git/auto_commit/rules/nth.rb
|
632
|
+
- sub/avm-git/lib/avm/git/auto_commit/rules/unique.rb
|
633
|
+
- sub/avm-git/lib/avm/git/auto_commit_path.rb
|
634
|
+
- sub/avm-git/lib/avm/git/auto_commit_path/ruby.rb
|
635
|
+
- sub/avm-git/lib/avm/git/commit.rb
|
636
|
+
- sub/avm-git/lib/avm/git/commit/class_methods.rb
|
637
|
+
- sub/avm-git/lib/avm/git/commit/deploy.rb
|
638
|
+
- sub/avm-git/lib/avm/git/commit/deploy_methods.rb
|
639
|
+
- sub/avm-git/lib/avm/git/commit/diff_tree_line.rb
|
640
|
+
- sub/avm-git/lib/avm/git/commit/file.rb
|
641
|
+
- sub/avm-git/lib/avm/git/file_auto_fixup.rb
|
642
|
+
- sub/avm-git/lib/avm/git/issue.rb
|
643
|
+
- sub/avm-git/lib/avm/git/issue/complete.rb
|
644
|
+
- sub/avm-git/lib/avm/git/issue/complete/commits.rb
|
645
|
+
- sub/avm-git/lib/avm/git/issue/complete/git_subrepos.rb
|
646
|
+
- sub/avm-git/lib/avm/git/issue/complete/local_branch.rb
|
647
|
+
- sub/avm-git/lib/avm/git/issue/complete/local_tag.rb
|
648
|
+
- sub/avm-git/lib/avm/git/issue/complete/push.rb
|
649
|
+
- sub/avm-git/lib/avm/git/issue/complete/remote.rb
|
650
|
+
- sub/avm-git/lib/avm/git/issue/complete/test.rb
|
651
|
+
- sub/avm-git/lib/avm/git/issue/complete/tracker.rb
|
652
|
+
- sub/avm-git/lib/avm/git/issue/complete/validation.rb
|
653
|
+
- sub/avm-git/lib/avm/git/issue/complete/validations.rb
|
654
|
+
- sub/avm-git/lib/avm/git/issue/complete/working_tree.rb
|
655
|
+
- sub/avm-git/lib/avm/git/issue/deliver.rb
|
656
|
+
- sub/avm-git/lib/avm/git/organize.rb
|
657
|
+
- sub/avm-git/lib/avm/git/organize/reference_update.rb
|
658
|
+
- sub/avm-git/lib/avm/git/organize/repository.rb
|
659
|
+
- sub/avm-git/lib/avm/git/revision_test.rb
|
660
|
+
- sub/avm-git/lib/avm/git/scms.rb
|
661
|
+
- sub/avm-git/lib/avm/git/scms/git.rb
|
662
|
+
- sub/avm-git/lib/avm/git/scms/git/change_tracker.rb
|
663
|
+
- sub/avm-git/lib/avm/git/scms/git/commit.rb
|
664
|
+
- sub/avm-git/lib/avm/git/scms/git_subrepo.rb
|
665
|
+
- sub/avm-git/lib/avm/git/scms/provider.rb
|
666
|
+
- sub/avm-git/lib/avm/git/subrepo_check.rb
|
667
|
+
- sub/avm-git/lib/avm/git/subrepo_check/parent.rb
|
668
|
+
- sub/avm-git/lib/avm/git/subrepo_check/remote.rb
|
669
|
+
- sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
|
670
|
+
- sub/avm-git/lib/avm/git/subrepo_checks.rb
|
671
|
+
- sub/avm-git/lib/avm/git/vendor.rb
|
672
|
+
- sub/avm-git/lib/avm/git/vendor/github.rb
|
673
|
+
- sub/avm-git/lib/avm/git/version.rb
|
674
|
+
- sub/avm-git/spec/lib/avm/git/auto_commit_path_spec.rb
|
675
|
+
- sub/avm-git/spec/lib/avm/git/commit/deploy_spec.rb
|
676
|
+
- sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec.rb
|
677
|
+
- sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.source.out
|
678
|
+
- sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.target.yaml
|
679
|
+
- sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.source.out
|
680
|
+
- sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.target.yaml
|
681
|
+
- sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.source.out
|
682
|
+
- sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.target.yaml
|
683
|
+
- sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.source.out
|
684
|
+
- sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.target.yaml
|
685
|
+
- sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.source.out
|
686
|
+
- sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.target.yaml
|
687
|
+
- sub/avm-git/spec/lib/avm/git/commit_spec.rb
|
688
|
+
- sub/avm-git/spec/lib/avm/git/scms/git_spec.rb
|
689
|
+
- sub/avm-git/spec/lib/avm/git/scms/git_subrepo_spec.rb
|
690
|
+
- sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
|
691
|
+
- sub/avm-git/spec/rubocop_spec.rb
|
692
|
+
- sub/avm-git/spec/spec_helper.rb
|
614
693
|
- sub/avm-tools/Gemfile
|
615
694
|
- sub/avm-tools/README.textile
|
616
695
|
- sub/avm-tools/avm-tools.gemspec
|
617
696
|
- sub/avm-tools/exe/avm
|
618
697
|
- sub/avm-tools/lib/avm.rb
|
619
|
-
- sub/avm-tools/lib/avm/launcher/context.rb
|
620
|
-
- sub/avm-tools/lib/avm/launcher/context/instance_collector.rb
|
621
|
-
- sub/avm-tools/lib/avm/launcher/context/instance_discovery.rb
|
622
|
-
- sub/avm-tools/lib/avm/launcher/context/instance_manager.rb
|
623
|
-
- sub/avm-tools/lib/avm/launcher/context/instance_manager/cached_instance.rb
|
624
|
-
- sub/avm-tools/lib/avm/launcher/context/instance_manager/cached_instances.rb
|
625
|
-
- sub/avm-tools/lib/avm/launcher/context/settings.rb
|
626
698
|
- sub/avm-tools/lib/avm/launcher/git.rb
|
627
699
|
- sub/avm-tools/lib/avm/launcher/git/base.rb
|
628
700
|
- sub/avm-tools/lib/avm/launcher/git/base/class_methods.rb
|
@@ -637,22 +709,13 @@ files:
|
|
637
709
|
- sub/avm-tools/lib/avm/launcher/git/sub_warp_base.rb
|
638
710
|
- sub/avm-tools/lib/avm/launcher/git/warp_base.rb
|
639
711
|
- sub/avm-tools/lib/avm/launcher/instances.rb
|
640
|
-
- sub/avm-tools/lib/avm/launcher/instances/base.rb
|
641
|
-
- sub/avm-tools/lib/avm/launcher/instances/base/cache.rb
|
642
|
-
- sub/avm-tools/lib/avm/launcher/instances/error.rb
|
643
|
-
- sub/avm-tools/lib/avm/launcher/instances/runner_helper.rb
|
644
|
-
- sub/avm-tools/lib/avm/launcher/instances/settings.rb
|
645
712
|
- sub/avm-tools/lib/avm/launcher/paths.rb
|
646
|
-
- sub/avm-tools/lib/avm/launcher/paths/logical.rb
|
647
713
|
- sub/avm-tools/lib/avm/launcher/project.rb
|
648
714
|
- sub/avm-tools/lib/avm/launcher/publish.rb
|
649
|
-
- sub/avm-tools/lib/avm/launcher/publish/base.rb
|
650
715
|
- sub/avm-tools/lib/avm/launcher/ruby.rb
|
651
716
|
- sub/avm-tools/lib/avm/launcher/ruby/gem.rb
|
652
717
|
- sub/avm-tools/lib/avm/launcher/ruby/gem/build.rb
|
653
718
|
- sub/avm-tools/lib/avm/launcher/ruby/gem/specification.rb
|
654
|
-
- sub/avm-tools/lib/avm/launcher/vendor.rb
|
655
|
-
- sub/avm-tools/lib/avm/launcher/vendor/github.rb
|
656
719
|
- sub/avm-tools/lib/avm/patches.rb
|
657
720
|
- sub/avm-tools/lib/avm/patches/i18n.rb
|
658
721
|
- sub/avm-tools/lib/avm/projects.rb
|
@@ -711,10 +774,6 @@ files:
|
|
711
774
|
- sub/avm-tools/lib/avm/tools/runner/source/issue.rb
|
712
775
|
- sub/avm-tools/lib/avm/tools/runner/source/issue/complete.rb
|
713
776
|
- sub/avm-tools/lib/avm/tools/runner/source/issue/deliver.rb
|
714
|
-
- sub/avm-tools/lib/avm/tools/runner/source/ruby.rb
|
715
|
-
- sub/avm-tools/lib/avm/tools/runner/source/ruby/bundler.rb
|
716
|
-
- sub/avm-tools/lib/avm/tools/runner/source/ruby/bundler/gemfile_lock.rb
|
717
|
-
- sub/avm-tools/lib/avm/tools/runner/source/ruby/bundler/gemfile_lock/git.rb
|
718
777
|
- sub/avm-tools/lib/avm/tools/runner/source/subs.rb
|
719
778
|
- sub/avm-tools/lib/avm/tools/runner/source/test.rb
|
720
779
|
- sub/avm-tools/lib/avm/tools/runner/source/update.rb
|
@@ -737,7 +796,6 @@ files:
|
|
737
796
|
- sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
|
738
797
|
- sub/avm-tools/spec/lib/avm/launcher/ruby/gem/build_spec.rb
|
739
798
|
- sub/avm-tools/spec/lib/avm/launcher/ruby/gem/specification_spec.rb
|
740
|
-
- sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
|
741
799
|
- sub/avm-tools/spec/lib/avm/projects/stereotypes/git_subrepo/publish_spec.rb
|
742
800
|
- sub/avm-tools/spec/lib/avm/projects/stereotypes/git_subrepo/publish_spec_settings.yml
|
743
801
|
- sub/avm-tools/spec/lib/avm/projects/stereotypes/git_subrepo/warp_spec.rb
|
@@ -849,9 +907,23 @@ files:
|
|
849
907
|
- sub/avm/lib/avm/instances/docker_image.rb
|
850
908
|
- sub/avm/lib/avm/instances/entry_keys.rb
|
851
909
|
- sub/avm/lib/avm/instances/runner.rb
|
910
|
+
- sub/avm/lib/avm/launcher/context.rb
|
911
|
+
- sub/avm/lib/avm/launcher/context/instance_collector.rb
|
912
|
+
- sub/avm/lib/avm/launcher/context/instance_discovery.rb
|
913
|
+
- sub/avm/lib/avm/launcher/context/instance_manager.rb
|
914
|
+
- sub/avm/lib/avm/launcher/context/instance_manager/cached_instance.rb
|
915
|
+
- sub/avm/lib/avm/launcher/context/instance_manager/cached_instances.rb
|
916
|
+
- sub/avm/lib/avm/launcher/context/settings.rb
|
852
917
|
- sub/avm/lib/avm/launcher/errors/base.rb
|
853
918
|
- sub/avm/lib/avm/launcher/errors/non_project.rb
|
919
|
+
- sub/avm/lib/avm/launcher/instances/base.rb
|
920
|
+
- sub/avm/lib/avm/launcher/instances/base/cache.rb
|
921
|
+
- sub/avm/lib/avm/launcher/instances/error.rb
|
922
|
+
- sub/avm/lib/avm/launcher/instances/runner_helper.rb
|
923
|
+
- sub/avm/lib/avm/launcher/instances/settings.rb
|
924
|
+
- sub/avm/lib/avm/launcher/paths/logical.rb
|
854
925
|
- sub/avm/lib/avm/launcher/paths/real.rb
|
926
|
+
- sub/avm/lib/avm/launcher/publish/base.rb
|
855
927
|
- sub/avm/lib/avm/launcher/publish/check_result.rb
|
856
928
|
- sub/avm/lib/avm/path_string.rb
|
857
929
|
- sub/avm/lib/avm/registry.rb
|
@@ -1,62 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_base0/core_ext'
|
4
|
-
|
5
|
-
module Avm
|
6
|
-
module Tools
|
7
|
-
class Runner
|
8
|
-
class Source < ::Avm::Sources::Runner
|
9
|
-
class Ruby
|
10
|
-
class Bundler
|
11
|
-
class GemfileLock
|
12
|
-
module Git
|
13
|
-
private
|
14
|
-
|
15
|
-
def git_continue
|
16
|
-
return unless check_capability(__method__, :git_repo, :continue)
|
17
|
-
|
18
|
-
infom "Adding \"#{gemfile_lock}\"..."
|
19
|
-
instance.git_repo.command('add', gemfile_lock).execute!
|
20
|
-
if rebase_conflict?
|
21
|
-
git_continue_run('rebase')
|
22
|
-
elsif cherry_conflict?
|
23
|
-
git_continue_run('cherry-pick')
|
24
|
-
else
|
25
|
-
raise 'Unknown how to continue'
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
def git_continue_run(command)
|
30
|
-
infom "\"#{command}\" --continue..."
|
31
|
-
cmd = instance.git_repo.command(command, '--continue')
|
32
|
-
.envvar('GIT_EDITOR', 'true')
|
33
|
-
return unless !cmd.system && !conflict?
|
34
|
-
|
35
|
-
fatal_error "\"#{cmd}\" failed and there is no conflict"
|
36
|
-
end
|
37
|
-
|
38
|
-
def git_reset_checkout
|
39
|
-
return unless check_capability(__method__, :git_repo, nil)
|
40
|
-
|
41
|
-
git_reset_gemfile_lock
|
42
|
-
git_checkout_gemfile_lock
|
43
|
-
end
|
44
|
-
|
45
|
-
def git_checkout_gemfile_lock
|
46
|
-
infom 'Checkouting...'
|
47
|
-
instance.git_repo.command('checkout', '--', gemfile_lock).system!
|
48
|
-
end
|
49
|
-
|
50
|
-
def git_reset_gemfile_lock
|
51
|
-
infom 'Reseting...'
|
52
|
-
instance.git_repo.command('reset', gemfile_lock).system! if
|
53
|
-
::File.exist?(gemfile_lock)
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
@@ -1,105 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_base0/core_ext'
|
4
|
-
|
5
|
-
module Avm
|
6
|
-
module Tools
|
7
|
-
class Runner
|
8
|
-
class Source < ::Avm::Sources::Runner
|
9
|
-
class Ruby
|
10
|
-
class Bundler
|
11
|
-
class GemfileLock
|
12
|
-
require_sub __FILE__, include_modules: true
|
13
|
-
runner_with :help do
|
14
|
-
desc 'Manipulage a "Gemfile.lock" file.'
|
15
|
-
bool_opt '-c', '--continue', 'Continue Git rebase/cherry-pick.'
|
16
|
-
bool_opt '-i', '--install', 'Run "bundle install".'
|
17
|
-
bool_opt '-u', '--update', 'Run "bundle update".'
|
18
|
-
bool_opt '-r', '--recursive', 'Run until Git rebase/cherry-pick is finished.'
|
19
|
-
bool_opt '-a', '--all', 'Same as "-cirud".'
|
20
|
-
bool_opt '-d', '--delete', 'Delete Gemfile.lock'
|
21
|
-
end
|
22
|
-
|
23
|
-
def run
|
24
|
-
loop do
|
25
|
-
git_reset_checkout
|
26
|
-
delete_gemfile_lock
|
27
|
-
bundle_update
|
28
|
-
bundle_install
|
29
|
-
git_continue
|
30
|
-
break if complete?
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
private
|
35
|
-
|
36
|
-
def complete?
|
37
|
-
!option_or_all?(:recursive) || !conflict?
|
38
|
-
end
|
39
|
-
|
40
|
-
def delete_gemfile_lock
|
41
|
-
return unless check_capability(__method__, nil, :delete)
|
42
|
-
|
43
|
-
::FileUtils.rm_f(gemfile_lock)
|
44
|
-
end
|
45
|
-
|
46
|
-
def rebasing?
|
47
|
-
instance.git_repo.root_path.join('.git', 'rebase-merge').exist?
|
48
|
-
end
|
49
|
-
|
50
|
-
def bundle_install
|
51
|
-
return unless check_capability(__method__, :ruby_gem, :install)
|
52
|
-
|
53
|
-
infom '"bundle install"...'
|
54
|
-
bundle_run('install')
|
55
|
-
end
|
56
|
-
|
57
|
-
def bundle_update
|
58
|
-
return unless check_capability(__method__, :ruby_gem, :update)
|
59
|
-
|
60
|
-
infom '"bundle update"...'
|
61
|
-
bundle_run('update')
|
62
|
-
end
|
63
|
-
|
64
|
-
def gemfile_lock
|
65
|
-
'Gemfile.lock'
|
66
|
-
end
|
67
|
-
|
68
|
-
def bundle_run(*args)
|
69
|
-
instance.ruby_gem.bundle(*args).system!
|
70
|
-
end
|
71
|
-
|
72
|
-
def conflict?
|
73
|
-
rebase_conflict? || cherry_conflict?
|
74
|
-
end
|
75
|
-
|
76
|
-
def rebase_conflict?
|
77
|
-
instance.git_repo.root_path.join('.git', 'REBASE_HEAD').exist?
|
78
|
-
end
|
79
|
-
|
80
|
-
def cherry_conflict?
|
81
|
-
instance.git_repo.root_path.join('.git', 'CHERRY_PICK_HEAD').exist?
|
82
|
-
end
|
83
|
-
|
84
|
-
def option_or_all?(option)
|
85
|
-
parsed[option] || parsed.all?
|
86
|
-
end
|
87
|
-
|
88
|
-
def instance
|
89
|
-
runner_context.call(:instance)
|
90
|
-
end
|
91
|
-
|
92
|
-
def check_capability(caller, capability, option)
|
93
|
-
return false unless option.blank? || option_or_all?(option)
|
94
|
-
return true if capability.if_present(true) { |v| instance.respond_to?(v) }
|
95
|
-
|
96
|
-
warn "Cannot run #{caller}: instance has no capability \"#{capability}\""
|
97
|
-
false
|
98
|
-
end
|
99
|
-
end
|
100
|
-
end
|
101
|
-
end
|
102
|
-
end
|
103
|
-
end
|
104
|
-
end
|
105
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_base0/core_ext'
|
4
|
-
|
5
|
-
module Avm
|
6
|
-
module Tools
|
7
|
-
class Runner
|
8
|
-
class Source < ::Avm::Sources::Runner
|
9
|
-
class Ruby
|
10
|
-
class Bundler
|
11
|
-
require_sub __FILE__
|
12
|
-
runner_with :help, :subcommands do
|
13
|
-
desc 'Ruby\'s bundler utitilies for local projects.'
|
14
|
-
subcommands
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|