avm-tools 0.107.0 → 0.110.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/patches/eac_ruby_gems_utils/gem.rb +2 -2
- data/lib/avm/projects/stereotypes/ruby_gem/version_bump.rb +2 -2
- data/lib/avm/ruby/rubocop/_configured.rb +2 -2
- data/lib/avm/tools/app_src.rb +5 -5
- data/lib/avm/tools/runner/app_src/info.rb +12 -2
- data/lib/avm/tools/runner/app_src/ruby/bundler/incompatible.rb +2 -2
- data/lib/avm/tools/runner/app_src/update.rb +2 -2
- data/lib/avm/tools/runner/app_src.rb +4 -0
- data/lib/avm/tools/runner/config/load_path.rb +8 -3
- data/lib/avm/tools/runner/files/rotate.rb +2 -2
- data/lib/avm/tools/runner/self/registry.rb +25 -0
- data/lib/avm/tools/runner.rb +3 -2
- data/lib/avm/tools/version.rb +1 -1
- data/template/avm/ruby/gems/generator/static/spec/rubocop_spec.rb +1 -1
- data/template/avm/ruby/gems/generator/static/spec/spec_helper.rb +2 -100
- data/vendor/avm/avm.gemspec +2 -1
- data/{lib → vendor/avm/lib}/avm/data/instance/files_unit.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/data/instance/package.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/data/instance/unit.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/data/instance.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/data/package/dump.rb +3 -3
- data/{lib → vendor/avm/lib}/avm/data/package/load.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/data/package.rb +0 -0
- data/vendor/avm/lib/avm/{files → data}/rotate.rb +1 -1
- data/{lib → vendor/avm/lib}/avm/data/unit.rb +0 -0
- data/vendor/avm/lib/avm/docker/runner.rb +8 -0
- data/{lib → vendor/avm/lib}/avm/instances/application.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/access.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/admin.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/data.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/database.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/filesystem.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/mailer.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/ruby.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/source.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/system.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/web.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances/base/auto_values.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances/base/dockerizable.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances/base/entry_keys.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances/base.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances/entries.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances/entry.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances/entry_keys.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances/runner.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/instances.rb +0 -0
- data/vendor/avm/lib/avm/jobs/base.rb +1 -0
- data/{lib → vendor/avm/lib}/avm/path_string.rb +0 -0
- data/vendor/avm/lib/avm/registry/base.rb +65 -0
- data/vendor/avm/lib/avm/registry.rb +29 -0
- data/vendor/avm/lib/avm/rspec/setup.rb +22 -0
- data/vendor/avm/lib/avm/rspec/shared_examples/in_avm_registry.rb +11 -0
- data/vendor/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb +14 -0
- data/vendor/avm/lib/avm/{app_src.rb → rspec.rb} +1 -1
- data/vendor/avm/lib/avm/runners/base.rb +31 -0
- data/vendor/avm/lib/avm/scms/base.rb +28 -0
- data/vendor/avm/lib/avm/scms/commit.rb +43 -0
- data/{lib → vendor/avm/lib}/avm/self/docker_image.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/self/instance/entry_keys.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/self/instance.rb +0 -0
- data/vendor/avm/lib/avm/source_stereotypes/base.rb +21 -0
- data/vendor/avm/lib/avm/{app_src → sources}/base.rb +25 -3
- data/vendor/avm/lib/avm/{app_src → sources}/configuration/_locale.rb +1 -1
- data/vendor/avm/lib/avm/{app_src → sources}/configuration/_rubocop.rb +1 -1
- data/vendor/avm/lib/avm/{app_src → sources}/configuration/_tests.rb +1 -1
- data/vendor/avm/lib/avm/{app_src → sources}/configuration.rb +1 -1
- data/vendor/avm/lib/avm/sources.rb +9 -0
- data/{lib → vendor/avm/lib}/avm/sync.rb +0 -0
- data/vendor/avm/lib/avm/version.rb +1 -1
- data/vendor/avm/spec/lib/avm/scms/base_spec.rb +7 -0
- data/vendor/avm/spec/lib/avm/source_stereotypes/base_spec.rb +7 -0
- data/vendor/{avm-apps → avm-eac_ruby_base1}/Gemfile +0 -0
- data/vendor/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +19 -0
- data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/patches/i18n.rb +7 -0
- data/{lib/avm/patches/class.rb → vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/patches.rb} +0 -0
- data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes/base.rb +25 -0
- data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes/update/sub_update.rb +56 -0
- data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes/update.rb +53 -0
- data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes.rb +11 -0
- data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +7 -0
- data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1.rb +9 -0
- data/vendor/avm-eac_ruby_base1/locale/en.yaml +8 -0
- data/vendor/avm-eac_ruby_base1/locale/pt-BR.yaml +8 -0
- data/vendor/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_stereotypes/base_spec.rb +7 -0
- data/vendor/{avm-apps → avm-eac_ruby_base1}/spec/rubocop_spec.rb +0 -0
- data/vendor/{avm-apps → avm-eac_ruby_base1}/spec/spec_helper.rb +0 -0
- data/vendor/avm-eac_ubuntu_base0/Gemfile +5 -0
- data/vendor/avm-eac_ubuntu_base0/avm-eac_ubuntu_base0.gemspec +20 -0
- data/{lib → vendor/avm-eac_ubuntu_base0/lib}/avm/eac_ubuntu_base0/apache/resource.rb +0 -0
- data/{lib → vendor/avm-eac_ubuntu_base0/lib}/avm/eac_ubuntu_base0/apache.rb +0 -0
- data/{lib → vendor/avm-eac_ubuntu_base0/lib}/avm/eac_ubuntu_base0/docker_image.rb +2 -1
- data/vendor/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/instances/base.rb +16 -0
- data/vendor/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/instances.rb +11 -0
- data/vendor/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/patches/object/template.rb +7 -0
- data/vendor/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/runners/base/docker.rb +19 -0
- data/vendor/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/runners/base.rb +24 -0
- data/vendor/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/version.rb +7 -0
- data/{lib → vendor/avm-eac_ubuntu_base0/lib}/avm/eac_ubuntu_base0.rb +2 -2
- data/vendor/avm-eac_ubuntu_base0/spec/lib/avm/eac_ubuntu_base0/docker_image_spec.rb +16 -0
- data/vendor/avm-eac_ubuntu_base0/spec/lib/avm/eac_ubuntu_base0/runners/base_spec.rb +7 -0
- data/vendor/avm-eac_ubuntu_base0/spec/rubocop_spec.rb +3 -0
- data/vendor/avm-eac_ubuntu_base0/spec/spec_helper.rb +4 -0
- data/{template → vendor/avm-eac_ubuntu_base0/template}/avm/eac_ubuntu_base0/docker_image/Dockerfile +0 -0
- data/vendor/avm-files/Gemfile +5 -0
- data/vendor/avm-files/avm-files.gemspec +21 -0
- data/vendor/{avm → avm-files}/lib/avm/files/appendable/file_content.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/appendable/plain_directory.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/appendable/resource_base.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/appendable/tar_output_command.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/appendable/templatized_directory.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/appendable.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/appender.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/deploy.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/base.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/generic_plain.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/html.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/javascript.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/json.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/php.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/python.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/ruby.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/xml.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/formatter/utf8_assert.rb +0 -0
- data/vendor/{avm → avm-files}/lib/avm/files/formatter.rb +0 -0
- data/vendor/avm-files/lib/avm/files/version.rb +7 -0
- data/vendor/{avm-apps/lib/avm/apps.rb → avm-files/lib/avm/files.rb} +1 -1
- data/vendor/avm-files/spec/rubocop_spec.rb +3 -0
- data/vendor/avm-files/spec/spec_helper.rb +4 -0
- data/vendor/avm-git/Gemfile +5 -0
- data/vendor/avm-git/avm-git.gemspec +21 -0
- data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/commit_info.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/base.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/last.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/manual.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/new.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/nth.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/unique.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/auto_commit_path/ruby.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/auto_commit_path.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/commit/class_methods.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/commit/deploy.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/commit/deploy_methods.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/commit/diff_tree_line.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/commit/file.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/commit.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/file_auto_fixup.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/commits.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/git_subrepos.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/local_branch.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/local_tag.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/push.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/remote.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/test.rb +2 -2
- data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/tracker.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/validation.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/validations.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/working_tree.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/issue/complete.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/issue/deliver.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/issue.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/organize/reference_update.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/organize/repository.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/organize.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/revision_test.rb +0 -0
- data/vendor/avm-git/lib/avm/git/scms/git/change_tracker.rb +35 -0
- data/vendor/avm-git/lib/avm/git/scms/git/commit.rb +55 -0
- data/vendor/avm-git/lib/avm/git/scms/git.rb +65 -0
- data/vendor/avm-git/lib/avm/git/scms/git_subrepo.rb +41 -0
- data/vendor/avm-git/lib/avm/git/scms/provider.rb +19 -0
- data/vendor/avm-git/lib/avm/git/scms.rb +11 -0
- data/vendor/{avm → avm-git}/lib/avm/git/subrepo_check/parent.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/subrepo_check/remote.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/subrepo_check/show_result.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/subrepo_check.rb +0 -0
- data/vendor/{avm → avm-git}/lib/avm/git/subrepo_checks.rb +0 -0
- data/vendor/{avm-apps/lib/avm/apps → avm-git/lib/avm/git}/version.rb +2 -2
- data/vendor/{avm → avm-git}/lib/avm/git.rb +3 -2
- data/vendor/{avm → avm-git}/spec/lib/avm/git/auto_commit_path_spec.rb +0 -0
- data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/deploy_spec.rb +0 -0
- data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec.rb +0 -0
- data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.source.out +0 -0
- data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.target.yaml +0 -0
- data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.source.out +0 -0
- data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.target.yaml +0 -0
- data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.source.out +0 -0
- data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.target.yaml +0 -0
- data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.source.out +0 -0
- data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.target.yaml +0 -0
- data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.source.out +0 -0
- data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.target.yaml +0 -0
- data/vendor/{avm → avm-git}/spec/lib/avm/git/commit_spec.rb +0 -0
- data/vendor/avm-git/spec/lib/avm/git/scms/git_spec.rb +8 -0
- data/vendor/avm-git/spec/lib/avm/git/scms/git_subrepo_spec.rb +8 -0
- data/vendor/avm-git/spec/rubocop_spec.rb +3 -0
- data/vendor/avm-git/spec/spec_helper.rb +4 -0
- data/vendor/eac_cli/lib/eac_cli/config.rb +6 -3
- data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
- data/vendor/eac_fs/lib/eac_fs/patches/object/fs_cache.rb +8 -1
- data/vendor/eac_fs/lib/eac_fs/version.rb +1 -1
- data/vendor/eac_git/lib/eac_git/local/commit.rb +21 -2
- data/vendor/eac_git/lib/eac_git/local/log.rb +17 -0
- data/vendor/eac_git/lib/eac_git/local.rb +26 -0
- data/vendor/eac_git/lib/eac_git/rspec/stubbed_git_local_repo.rb +11 -0
- data/vendor/eac_git/lib/eac_git/version.rb +1 -1
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb +2 -2
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +1 -1
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
- data/vendor/eac_ruby_gems_utils/eac_ruby_gems_utils.gemspec +1 -1
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +1 -1
- data/vendor/eac_ruby_gems_utils/spec/support/mygem/Gemfile.lock +1 -1
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/abstract_methods.rb +7 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/gems_registry/gem.rb +4 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/gems_registry.rb +1 -1
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/abstract.rb +9 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/self_included_modules.rb +7 -0
- data/{lib/avm/patches/class/i18n.rb → vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/i18n_translate.rb} +8 -7
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/call_if_proc.rb +11 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/i18n_translate.rb +13 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb +10 -10
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb +25 -0
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/self_included_modules_spec.rb +30 -0
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/call_if_proc_spec.rb +11 -0
- metadata +266 -136
- data/lib/avm/patches/object/fs_cache.rb +0 -16
- data/lib/avm/patches/object/i18n.rb +0 -9
- data/lib/avm/projects/stereotypes/git/update/subrepo.rb +0 -85
- data/lib/avm/projects/stereotypes/git/update.rb +0 -41
- data/lib/avm/projects/stereotypes/ruby_gem/update.rb +0 -66
- data/vendor/avm/lib/avm/files.rb +0 -9
- data/vendor/avm-apps/avm-apps.gemspec +0 -18
@@ -1,85 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/launcher/git/base'
|
4
|
-
require 'avm/git/commit'
|
5
|
-
|
6
|
-
module Avm
|
7
|
-
module Projects
|
8
|
-
module Stereotypes
|
9
|
-
class Git
|
10
|
-
class Update
|
11
|
-
class Subrepo
|
12
|
-
TRANSLATE_CLASS = self
|
13
|
-
|
14
|
-
require_sub __FILE__, include_modules: true
|
15
|
-
enable_simple_cache
|
16
|
-
enable_speaker
|
17
|
-
common_constructor :parent_update, :subpath do
|
18
|
-
self.subpath = subpath.to_pathname
|
19
|
-
end
|
20
|
-
|
21
|
-
delegate :git_repo, :instance, to: :parent_update
|
22
|
-
|
23
|
-
def run
|
24
|
-
run_banner
|
25
|
-
if base_commit.sha1 == pull_commit.sha1
|
26
|
-
infom 'No new commit (No changes)'
|
27
|
-
elsif fix_message.present?
|
28
|
-
on_fix_message_present
|
29
|
-
else
|
30
|
-
warn 'No fix message found'
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
private
|
35
|
-
|
36
|
-
def base_commit_uncached
|
37
|
-
::Avm::Git::Commit.new(git_repo, git_repo.rev_parse('HEAD'))
|
38
|
-
end
|
39
|
-
|
40
|
-
def on_fix_message_present
|
41
|
-
infom 'Fixing message...'
|
42
|
-
infov 'Message', fix_message
|
43
|
-
git_repo.command('commit', '--amend', '-m', fix_message).execute!
|
44
|
-
end
|
45
|
-
|
46
|
-
def pull_commit_uncached
|
47
|
-
base_commit
|
48
|
-
infom 'Pulling subrepo...'
|
49
|
-
git_repo.command('subrepo', 'pull', '--force', subpath).execute!
|
50
|
-
::Avm::Git::Commit.new(
|
51
|
-
::Avm::Launcher::Git::Base.new(git_repo.root_path.to_path),
|
52
|
-
git_repo.rev_parse('HEAD')
|
53
|
-
)
|
54
|
-
end
|
55
|
-
|
56
|
-
def run_banner
|
57
|
-
infov 'Base SHA1', base_commit.sha1
|
58
|
-
infov 'Pull SHA1', pull_commit.sha1
|
59
|
-
end
|
60
|
-
|
61
|
-
def fix_message
|
62
|
-
TRANSLATE_CLASS.translate(
|
63
|
-
fix_message_translate_key, subpath: subpath, name: subpath.basename,
|
64
|
-
__locale: instance.locale
|
65
|
-
)
|
66
|
-
end
|
67
|
-
|
68
|
-
def fix_message_translate_key
|
69
|
-
if gitrepo_only_changed?
|
70
|
-
:gitrepo_only_changed_fix_message
|
71
|
-
else
|
72
|
-
:content_updated_fix_message
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
def gitrepo_only_changed?
|
77
|
-
pull_commit.files.count == 1 &&
|
78
|
-
::File.basename(pull_commit.files.first.path) == '.gitrepo'
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/core_ext'
|
4
|
-
require 'avm/patches/class/i18n'
|
5
|
-
|
6
|
-
module Avm
|
7
|
-
module Projects
|
8
|
-
module Stereotypes
|
9
|
-
class Git
|
10
|
-
class Update
|
11
|
-
require_sub __FILE__
|
12
|
-
enable_simple_cache
|
13
|
-
enable_speaker
|
14
|
-
common_constructor :instance
|
15
|
-
|
16
|
-
delegate :git_repo, to: :instance
|
17
|
-
|
18
|
-
def run
|
19
|
-
clean_all
|
20
|
-
selected_subrepos.map do |f|
|
21
|
-
infov 'Subrepo', f
|
22
|
-
::EacRubyUtils::Speaker.context.on(::EacCli::Speaker.new(err_line_prefix: ' ')) do
|
23
|
-
::Avm::Projects::Stereotypes::Git::Update::Subrepo.new(self, f).run
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
def selected_subrepos_uncached
|
29
|
-
git_repo.command('subrepo', '-q', 'status').execute!.split("\n").map(&:strip)
|
30
|
-
.select(&:present?).map(&:to_pathname)
|
31
|
-
end
|
32
|
-
|
33
|
-
def clean_all
|
34
|
-
infom 'Cleaning'
|
35
|
-
git_repo.command('subrepo', 'clean', '--all').execute!
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
@@ -1,66 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/core_ext'
|
4
|
-
require 'avm/patches/class/i18n'
|
5
|
-
|
6
|
-
module Avm
|
7
|
-
module Projects
|
8
|
-
module Stereotypes
|
9
|
-
class RubyGem
|
10
|
-
class Update
|
11
|
-
TRANSLATE_CLASS = self
|
12
|
-
|
13
|
-
enable_speaker
|
14
|
-
common_constructor :instance
|
15
|
-
|
16
|
-
def run
|
17
|
-
gemfile_lock_checkout
|
18
|
-
bundle_update
|
19
|
-
gemfile_lock_commit
|
20
|
-
end
|
21
|
-
|
22
|
-
def run_before
|
23
|
-
[:git]
|
24
|
-
end
|
25
|
-
|
26
|
-
private
|
27
|
-
|
28
|
-
def bundle_update
|
29
|
-
infom 'Running "bundle update"...'
|
30
|
-
instance.ruby_gem.bundle('update').execute!
|
31
|
-
infom 'Running "bundle install"...'
|
32
|
-
instance.ruby_gem.bundle('install').execute!
|
33
|
-
end
|
34
|
-
|
35
|
-
def gemfile_lock_checkout
|
36
|
-
return unless instance.respond_to?(:git_repo)
|
37
|
-
|
38
|
-
infom 'Checkouting Gemfile.lock...'
|
39
|
-
instance.git_repo.command('checkout', '--',
|
40
|
-
instance.ruby_gem.gemfile_lock_path.to_path).execute!
|
41
|
-
end
|
42
|
-
|
43
|
-
def gemfile_lock_commit
|
44
|
-
return unless instance.respond_to?(:git_repo)
|
45
|
-
|
46
|
-
if gemfile_lock_changed?
|
47
|
-
infom 'Commiting Gemfile.lock...'
|
48
|
-
instance.git_repo.command('commit', '-m', gemfile_lock_commit_message, '--',
|
49
|
-
instance.ruby_gem.gemfile_lock_path).execute!
|
50
|
-
else
|
51
|
-
infom 'Gemfile.lock did not change'
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
def gemfile_lock_commit_message
|
56
|
-
TRANSLATE_CLASS.translate(__method__, __locale: instance.locale)
|
57
|
-
end
|
58
|
-
|
59
|
-
def gemfile_lock_changed?
|
60
|
-
instance.git_repo.dirty_file?(instance.ruby_gem.gemfile_lock_path)
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
data/vendor/avm/lib/avm/files.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
$LOAD_PATH.push File.expand_path('lib', __dir__)
|
4
|
-
|
5
|
-
require 'avm/apps/version'
|
6
|
-
|
7
|
-
Gem::Specification.new do |s|
|
8
|
-
s.name = 'avm-apps'
|
9
|
-
s.version = Avm::Apps::VERSION
|
10
|
-
s.authors = ['Eduardo H. Bogoni']
|
11
|
-
s.summary = 'DEPRECATED: use gem "avm" instead.'
|
12
|
-
|
13
|
-
s.files = Dir['{lib}/**/*']
|
14
|
-
|
15
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.67'
|
16
|
-
|
17
|
-
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
|
18
|
-
end
|