avm-tools 0.107.0 → 0.110.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.
Files changed (234) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avm/patches/eac_ruby_gems_utils/gem.rb +2 -2
  3. data/lib/avm/projects/stereotypes/ruby_gem/version_bump.rb +2 -2
  4. data/lib/avm/ruby/rubocop/_configured.rb +2 -2
  5. data/lib/avm/tools/app_src.rb +5 -5
  6. data/lib/avm/tools/runner/app_src/info.rb +12 -2
  7. data/lib/avm/tools/runner/app_src/ruby/bundler/incompatible.rb +2 -2
  8. data/lib/avm/tools/runner/app_src/update.rb +2 -2
  9. data/lib/avm/tools/runner/app_src.rb +4 -0
  10. data/lib/avm/tools/runner/config/load_path.rb +8 -3
  11. data/lib/avm/tools/runner/files/rotate.rb +2 -2
  12. data/lib/avm/tools/runner/self/registry.rb +25 -0
  13. data/lib/avm/tools/runner.rb +3 -2
  14. data/lib/avm/tools/version.rb +1 -1
  15. data/template/avm/ruby/gems/generator/static/spec/rubocop_spec.rb +1 -1
  16. data/template/avm/ruby/gems/generator/static/spec/spec_helper.rb +2 -100
  17. data/vendor/avm/avm.gemspec +2 -1
  18. data/{lib → vendor/avm/lib}/avm/data/instance/files_unit.rb +0 -0
  19. data/{lib → vendor/avm/lib}/avm/data/instance/package.rb +0 -0
  20. data/{lib → vendor/avm/lib}/avm/data/instance/unit.rb +0 -0
  21. data/{lib → vendor/avm/lib}/avm/data/instance.rb +0 -0
  22. data/{lib → vendor/avm/lib}/avm/data/package/dump.rb +3 -3
  23. data/{lib → vendor/avm/lib}/avm/data/package/load.rb +0 -0
  24. data/{lib → vendor/avm/lib}/avm/data/package.rb +0 -0
  25. data/vendor/avm/lib/avm/{files → data}/rotate.rb +1 -1
  26. data/{lib → vendor/avm/lib}/avm/data/unit.rb +0 -0
  27. data/vendor/avm/lib/avm/docker/runner.rb +8 -0
  28. data/{lib → vendor/avm/lib}/avm/instances/application.rb +0 -0
  29. data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/access.rb +0 -0
  30. data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/admin.rb +0 -0
  31. data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/data.rb +0 -0
  32. data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/database.rb +0 -0
  33. data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/filesystem.rb +0 -0
  34. data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/mailer.rb +0 -0
  35. data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/ruby.rb +0 -0
  36. data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/source.rb +0 -0
  37. data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/system.rb +0 -0
  38. data/{lib → vendor/avm/lib}/avm/instances/base/auto_values/web.rb +0 -0
  39. data/{lib → vendor/avm/lib}/avm/instances/base/auto_values.rb +0 -0
  40. data/{lib → vendor/avm/lib}/avm/instances/base/dockerizable.rb +0 -0
  41. data/{lib → vendor/avm/lib}/avm/instances/base/entry_keys.rb +0 -0
  42. data/{lib → vendor/avm/lib}/avm/instances/base.rb +0 -0
  43. data/{lib → vendor/avm/lib}/avm/instances/entries.rb +0 -0
  44. data/{lib → vendor/avm/lib}/avm/instances/entry.rb +0 -0
  45. data/{lib → vendor/avm/lib}/avm/instances/entry_keys.rb +0 -0
  46. data/{lib → vendor/avm/lib}/avm/instances/runner.rb +0 -0
  47. data/{lib → vendor/avm/lib}/avm/instances.rb +0 -0
  48. data/vendor/avm/lib/avm/jobs/base.rb +1 -0
  49. data/{lib → vendor/avm/lib}/avm/path_string.rb +0 -0
  50. data/vendor/avm/lib/avm/registry/base.rb +65 -0
  51. data/vendor/avm/lib/avm/registry.rb +29 -0
  52. data/vendor/avm/lib/avm/rspec/setup.rb +22 -0
  53. data/vendor/avm/lib/avm/rspec/shared_examples/in_avm_registry.rb +11 -0
  54. data/vendor/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb +14 -0
  55. data/vendor/avm/lib/avm/{app_src.rb → rspec.rb} +1 -1
  56. data/vendor/avm/lib/avm/runners/base.rb +31 -0
  57. data/vendor/avm/lib/avm/scms/base.rb +28 -0
  58. data/vendor/avm/lib/avm/scms/commit.rb +43 -0
  59. data/{lib → vendor/avm/lib}/avm/self/docker_image.rb +0 -0
  60. data/{lib → vendor/avm/lib}/avm/self/instance/entry_keys.rb +0 -0
  61. data/{lib → vendor/avm/lib}/avm/self/instance.rb +0 -0
  62. data/vendor/avm/lib/avm/source_stereotypes/base.rb +21 -0
  63. data/vendor/avm/lib/avm/{app_src → sources}/base.rb +25 -3
  64. data/vendor/avm/lib/avm/{app_src → sources}/configuration/_locale.rb +1 -1
  65. data/vendor/avm/lib/avm/{app_src → sources}/configuration/_rubocop.rb +1 -1
  66. data/vendor/avm/lib/avm/{app_src → sources}/configuration/_tests.rb +1 -1
  67. data/vendor/avm/lib/avm/{app_src → sources}/configuration.rb +1 -1
  68. data/vendor/avm/lib/avm/sources.rb +9 -0
  69. data/{lib → vendor/avm/lib}/avm/sync.rb +0 -0
  70. data/vendor/avm/lib/avm/version.rb +1 -1
  71. data/vendor/avm/spec/lib/avm/scms/base_spec.rb +7 -0
  72. data/vendor/avm/spec/lib/avm/source_stereotypes/base_spec.rb +7 -0
  73. data/vendor/{avm-apps → avm-eac_ruby_base1}/Gemfile +0 -0
  74. data/vendor/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +19 -0
  75. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/patches/i18n.rb +7 -0
  76. data/{lib/avm/patches/class.rb → vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/patches.rb} +0 -0
  77. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes/base.rb +25 -0
  78. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes/update/sub_update.rb +56 -0
  79. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes/update.rb +53 -0
  80. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes.rb +11 -0
  81. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +7 -0
  82. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1.rb +9 -0
  83. data/vendor/avm-eac_ruby_base1/locale/en.yaml +8 -0
  84. data/vendor/avm-eac_ruby_base1/locale/pt-BR.yaml +8 -0
  85. data/vendor/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_stereotypes/base_spec.rb +7 -0
  86. data/vendor/{avm-apps → avm-eac_ruby_base1}/spec/rubocop_spec.rb +0 -0
  87. data/vendor/{avm-apps → avm-eac_ruby_base1}/spec/spec_helper.rb +0 -0
  88. data/vendor/avm-eac_ubuntu_base0/Gemfile +5 -0
  89. data/vendor/avm-eac_ubuntu_base0/avm-eac_ubuntu_base0.gemspec +20 -0
  90. data/{lib → vendor/avm-eac_ubuntu_base0/lib}/avm/eac_ubuntu_base0/apache/resource.rb +0 -0
  91. data/{lib → vendor/avm-eac_ubuntu_base0/lib}/avm/eac_ubuntu_base0/apache.rb +0 -0
  92. data/{lib → vendor/avm-eac_ubuntu_base0/lib}/avm/eac_ubuntu_base0/docker_image.rb +2 -1
  93. data/vendor/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/instances/base.rb +16 -0
  94. data/vendor/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/instances.rb +11 -0
  95. data/vendor/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/patches/object/template.rb +7 -0
  96. data/vendor/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/runners/base/docker.rb +19 -0
  97. data/vendor/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/runners/base.rb +24 -0
  98. data/vendor/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/version.rb +7 -0
  99. data/{lib → vendor/avm-eac_ubuntu_base0/lib}/avm/eac_ubuntu_base0.rb +2 -2
  100. data/vendor/avm-eac_ubuntu_base0/spec/lib/avm/eac_ubuntu_base0/docker_image_spec.rb +16 -0
  101. data/vendor/avm-eac_ubuntu_base0/spec/lib/avm/eac_ubuntu_base0/runners/base_spec.rb +7 -0
  102. data/vendor/avm-eac_ubuntu_base0/spec/rubocop_spec.rb +3 -0
  103. data/vendor/avm-eac_ubuntu_base0/spec/spec_helper.rb +4 -0
  104. data/{template → vendor/avm-eac_ubuntu_base0/template}/avm/eac_ubuntu_base0/docker_image/Dockerfile +0 -0
  105. data/vendor/avm-files/Gemfile +5 -0
  106. data/vendor/avm-files/avm-files.gemspec +21 -0
  107. data/vendor/{avm → avm-files}/lib/avm/files/appendable/file_content.rb +0 -0
  108. data/vendor/{avm → avm-files}/lib/avm/files/appendable/plain_directory.rb +0 -0
  109. data/vendor/{avm → avm-files}/lib/avm/files/appendable/resource_base.rb +0 -0
  110. data/vendor/{avm → avm-files}/lib/avm/files/appendable/tar_output_command.rb +0 -0
  111. data/vendor/{avm → avm-files}/lib/avm/files/appendable/templatized_directory.rb +0 -0
  112. data/vendor/{avm → avm-files}/lib/avm/files/appendable.rb +0 -0
  113. data/vendor/{avm → avm-files}/lib/avm/files/appender.rb +0 -0
  114. data/vendor/{avm → avm-files}/lib/avm/files/deploy.rb +0 -0
  115. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/base.rb +0 -0
  116. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/generic_plain.rb +0 -0
  117. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/html.rb +0 -0
  118. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/javascript.rb +0 -0
  119. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/json.rb +0 -0
  120. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/php.rb +0 -0
  121. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/python.rb +0 -0
  122. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/ruby.rb +0 -0
  123. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/xml.rb +0 -0
  124. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats.rb +0 -0
  125. data/vendor/{avm → avm-files}/lib/avm/files/formatter/utf8_assert.rb +0 -0
  126. data/vendor/{avm → avm-files}/lib/avm/files/formatter.rb +0 -0
  127. data/vendor/avm-files/lib/avm/files/version.rb +7 -0
  128. data/vendor/{avm-apps/lib/avm/apps.rb → avm-files/lib/avm/files.rb} +1 -1
  129. data/vendor/avm-files/spec/rubocop_spec.rb +3 -0
  130. data/vendor/avm-files/spec/spec_helper.rb +4 -0
  131. data/vendor/avm-git/Gemfile +5 -0
  132. data/vendor/avm-git/avm-git.gemspec +21 -0
  133. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/commit_info.rb +0 -0
  134. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/base.rb +0 -0
  135. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/last.rb +0 -0
  136. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/manual.rb +0 -0
  137. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/new.rb +0 -0
  138. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/nth.rb +0 -0
  139. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/unique.rb +0 -0
  140. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules.rb +0 -0
  141. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit_path/ruby.rb +0 -0
  142. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit_path.rb +0 -0
  143. data/vendor/{avm → avm-git}/lib/avm/git/commit/class_methods.rb +0 -0
  144. data/vendor/{avm → avm-git}/lib/avm/git/commit/deploy.rb +0 -0
  145. data/vendor/{avm → avm-git}/lib/avm/git/commit/deploy_methods.rb +0 -0
  146. data/vendor/{avm → avm-git}/lib/avm/git/commit/diff_tree_line.rb +0 -0
  147. data/vendor/{avm → avm-git}/lib/avm/git/commit/file.rb +0 -0
  148. data/vendor/{avm → avm-git}/lib/avm/git/commit.rb +0 -0
  149. data/vendor/{avm → avm-git}/lib/avm/git/file_auto_fixup.rb +0 -0
  150. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/commits.rb +0 -0
  151. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/git_subrepos.rb +0 -0
  152. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/local_branch.rb +0 -0
  153. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/local_tag.rb +0 -0
  154. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/push.rb +0 -0
  155. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/remote.rb +0 -0
  156. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/test.rb +2 -2
  157. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/tracker.rb +0 -0
  158. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/validation.rb +0 -0
  159. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/validations.rb +0 -0
  160. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/working_tree.rb +0 -0
  161. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete.rb +0 -0
  162. data/vendor/{avm → avm-git}/lib/avm/git/issue/deliver.rb +0 -0
  163. data/vendor/{avm → avm-git}/lib/avm/git/issue.rb +0 -0
  164. data/vendor/{avm → avm-git}/lib/avm/git/organize/reference_update.rb +0 -0
  165. data/vendor/{avm → avm-git}/lib/avm/git/organize/repository.rb +0 -0
  166. data/vendor/{avm → avm-git}/lib/avm/git/organize.rb +0 -0
  167. data/vendor/{avm → avm-git}/lib/avm/git/revision_test.rb +0 -0
  168. data/vendor/avm-git/lib/avm/git/scms/git/change_tracker.rb +35 -0
  169. data/vendor/avm-git/lib/avm/git/scms/git/commit.rb +55 -0
  170. data/vendor/avm-git/lib/avm/git/scms/git.rb +65 -0
  171. data/vendor/avm-git/lib/avm/git/scms/git_subrepo.rb +41 -0
  172. data/vendor/avm-git/lib/avm/git/scms/provider.rb +19 -0
  173. data/vendor/avm-git/lib/avm/git/scms.rb +11 -0
  174. data/vendor/{avm → avm-git}/lib/avm/git/subrepo_check/parent.rb +0 -0
  175. data/vendor/{avm → avm-git}/lib/avm/git/subrepo_check/remote.rb +0 -0
  176. data/vendor/{avm → avm-git}/lib/avm/git/subrepo_check/show_result.rb +0 -0
  177. data/vendor/{avm → avm-git}/lib/avm/git/subrepo_check.rb +0 -0
  178. data/vendor/{avm → avm-git}/lib/avm/git/subrepo_checks.rb +0 -0
  179. data/vendor/{avm-apps/lib/avm/apps → avm-git/lib/avm/git}/version.rb +2 -2
  180. data/vendor/{avm → avm-git}/lib/avm/git.rb +3 -2
  181. data/vendor/{avm → avm-git}/spec/lib/avm/git/auto_commit_path_spec.rb +0 -0
  182. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/deploy_spec.rb +0 -0
  183. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec.rb +0 -0
  184. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.source.out +0 -0
  185. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.target.yaml +0 -0
  186. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.source.out +0 -0
  187. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.target.yaml +0 -0
  188. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.source.out +0 -0
  189. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.target.yaml +0 -0
  190. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.source.out +0 -0
  191. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.target.yaml +0 -0
  192. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.source.out +0 -0
  193. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.target.yaml +0 -0
  194. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit_spec.rb +0 -0
  195. data/vendor/avm-git/spec/lib/avm/git/scms/git_spec.rb +8 -0
  196. data/vendor/avm-git/spec/lib/avm/git/scms/git_subrepo_spec.rb +8 -0
  197. data/vendor/avm-git/spec/rubocop_spec.rb +3 -0
  198. data/vendor/avm-git/spec/spec_helper.rb +4 -0
  199. data/vendor/eac_cli/lib/eac_cli/config.rb +6 -3
  200. data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
  201. data/vendor/eac_fs/lib/eac_fs/patches/object/fs_cache.rb +8 -1
  202. data/vendor/eac_fs/lib/eac_fs/version.rb +1 -1
  203. data/vendor/eac_git/lib/eac_git/local/commit.rb +21 -2
  204. data/vendor/eac_git/lib/eac_git/local/log.rb +17 -0
  205. data/vendor/eac_git/lib/eac_git/local.rb +26 -0
  206. data/vendor/eac_git/lib/eac_git/rspec/stubbed_git_local_repo.rb +11 -0
  207. data/vendor/eac_git/lib/eac_git/version.rb +1 -1
  208. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb +2 -2
  209. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +1 -1
  210. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
  211. data/vendor/eac_ruby_gems_utils/eac_ruby_gems_utils.gemspec +1 -1
  212. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +1 -1
  213. data/vendor/eac_ruby_gems_utils/spec/support/mygem/Gemfile.lock +1 -1
  214. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/abstract_methods.rb +7 -0
  215. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/gems_registry/gem.rb +4 -0
  216. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/gems_registry.rb +1 -1
  217. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/abstract.rb +9 -0
  218. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/self_included_modules.rb +7 -0
  219. data/{lib/avm/patches/class/i18n.rb → vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/i18n_translate.rb} +8 -7
  220. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/call_if_proc.rb +11 -0
  221. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/i18n_translate.rb +13 -0
  222. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb +10 -10
  223. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  224. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb +25 -0
  225. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/self_included_modules_spec.rb +30 -0
  226. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/call_if_proc_spec.rb +11 -0
  227. metadata +266 -136
  228. data/lib/avm/patches/object/fs_cache.rb +0 -16
  229. data/lib/avm/patches/object/i18n.rb +0 -9
  230. data/lib/avm/projects/stereotypes/git/update/subrepo.rb +0 -85
  231. data/lib/avm/projects/stereotypes/git/update.rb +0 -41
  232. data/lib/avm/projects/stereotypes/ruby_gem/update.rb +0 -66
  233. data/vendor/avm/lib/avm/files.rb +0 -9
  234. data/vendor/avm-apps/avm-apps.gemspec +0 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 982669127ef20f0cf64fa12fbe0d087c0479b0e8575d7bb2c6047abac2ec81d3
4
- data.tar.gz: d4d659206696045d925dbba86c5d4fa69e184dbbdc58001e3453344ef68ef9ef
3
+ metadata.gz: d43e61c9d3bd87bf7af09c3bd6010342ce2b31d6fd27e7f83aabee279475038d
4
+ data.tar.gz: 30a050c8a12f111380c6f11c18d1e3afe87218c1872d1ecfebabb5289efc057f
5
5
  SHA512:
6
- metadata.gz: 436eb2a8f5957c9ffcb130851bb2dee4ab070cfd610a25356e8030766b6190a2a096b7a25250ab33801036f01e79e5c50bfc8024c2b6172f721f1868811251ea
7
- data.tar.gz: 57711beda558d8e28ba2f98fd9ccbe4be8372e32093e1e45591ad7b5bb89cc9014946720b5430eaf66ef5ce4e583d96e3b3e556be39ce2670df577ee11d681cb
6
+ metadata.gz: b5abf8184f30cff08511d952f28537952ad45d8b61204e3cb0ad88520b58f93b753a87a2b122c05f52c527b772c6a8023390af09130179fdcefa1026adaf8c9f
7
+ data.tar.gz: 602de22511c237207bb8bd2223badf4bbd26d0be24f0b595bdb2e94e526b5d775e5a8d1a65d6eb0410391b886c33a2c3ec69751d17126e7433964d67f94cec0f
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/app_src/configuration'
3
+ require 'avm/sources/configuration'
4
4
  require 'eac_ruby_gems_utils/gem'
5
5
  require 'eac_ruby_utils/core_ext'
6
6
 
@@ -13,7 +13,7 @@ module Avm
13
13
  private
14
14
 
15
15
  def configuration_uncached
16
- ::Avm::AppSrc::Configuration.find_in_path(root)
16
+ ::Avm::Sources::Configuration.find_in_path(root)
17
17
  end
18
18
 
19
19
  def gemfile_path_uncached
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/patches/object/i18n'
3
+ require 'avm/patches/i18n'
4
4
  require 'eac_ruby_utils/core_ext'
5
5
 
6
6
  module Avm
@@ -47,7 +47,7 @@ module Avm
47
47
  end
48
48
 
49
49
  def git_commit_message
50
- translate(__method__, version: target_version, __locale: instance.locale)
50
+ i18n_translate(__method__, version: target_version, __locale: instance.locale)
51
51
  end
52
52
 
53
53
  def changing_files
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/app_src/configuration'
3
+ require 'avm/sources/configuration'
4
4
 
5
5
  module Avm
6
6
  module Ruby
@@ -22,7 +22,7 @@ module Avm
22
22
  private
23
23
 
24
24
  def configuration_uncached
25
- ::Avm::AppSrc::Configuration.find_by_path(base_path)
25
+ ::Avm::Sources::Configuration.find_by_path(base_path)
26
26
  end
27
27
  end
28
28
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/app_src/base'
4
- require 'avm/app_src/configuration'
3
+ require 'avm/sources/base'
4
+ require 'avm/sources/configuration'
5
5
  require 'avm/launcher/paths/real'
6
6
  require 'avm/projects/stereotype/job_comparator'
7
7
  require 'eac_ruby_utils/core_ext'
@@ -36,12 +36,12 @@ module Avm
36
36
  private
37
37
 
38
38
  def avm_instance_uncached
39
- ::Avm::AppSrc::Base.new(path)
39
+ ::Avm::Sources::Base.new(path)
40
40
  end
41
41
 
42
- # @return [Avm::Apps::Sources::Configuration]
42
+ # @return [Avm::Sources::Configuration]
43
43
  def configuration_uncached
44
- ::Avm::AppSrc::Configuration.find_in_path(path)
44
+ ::Avm::Sources::Configuration.find_in_path(path)
45
45
  end
46
46
 
47
47
  def stereotypes_jobs(job, job_args)
@@ -12,13 +12,23 @@ module Avm
12
12
  end
13
13
 
14
14
  def run
15
- infov 'Path', instance.path
16
- infov 'Stereotypes', instance.stereotypes.map(&:label).join(', ')
15
+ show_instance
16
+ show_source
17
17
  show_subs
18
18
  end
19
19
 
20
20
  private
21
21
 
22
+ def show_instance
23
+ infov 'Path', instance.path
24
+ infov 'Stereotypes', instance.stereotypes.map(&:label).join(', ')
25
+ end
26
+
27
+ def show_source
28
+ infov 'Stereotype', runner_context.call(:subject).stereotype
29
+ infov 'SCM', runner_context.call(:subject).scm
30
+ end
31
+
22
32
  def show_subs
23
33
  infov 'Sub applications', instance.avm_instance.subs.count
24
34
  instance.avm_instance.subs.each do |subapp|
@@ -35,8 +35,8 @@ module Avm
35
35
  fs_cache.content_path
36
36
  end
37
37
 
38
- def fs_cache
39
- super.child(instance.path.to_s.variableize)
38
+ def fs_cache_object_id
39
+ instance.path.to_s.variableize
40
40
  end
41
41
 
42
42
  def gem_title(gem_in_conflict)
@@ -12,8 +12,8 @@ module Avm
12
12
  end
13
13
 
14
14
  def run
15
- infov 'Path', runner_context.call(:instance).path
16
- runner_context.call(:instance).run_job(:update)
15
+ infov 'Path', runner_context.call(:subject).path
16
+ runner_context.call(:subject).update
17
17
  end
18
18
  end
19
19
  end
@@ -19,6 +19,10 @@ module Avm
19
19
  infov 'Stereotypes', instance.stereotypes.map(&:label).join(', ')
20
20
  end
21
21
 
22
+ def subject
23
+ instance.avm_instance
24
+ end
25
+
22
26
  private
23
27
 
24
28
  def instance_uncached
@@ -3,6 +3,7 @@
3
3
  require 'avm/self'
4
4
  require 'avm/tools/core_ext'
5
5
  require 'eac_config/node'
6
+ require 'eac_ruby_utils/recursive_builder'
6
7
 
7
8
  module Avm
8
9
  module Tools
@@ -15,17 +16,21 @@ module Avm
15
16
  end
16
17
 
17
18
  def run
18
- run_show
19
+ config_nodes.each { |config_node| run_show(config_node) }
19
20
  run_add
20
21
  end
21
22
 
22
23
  private
23
24
 
24
25
  # @return [[EacCli::Config]]
25
- def config_node
26
+ def root_config_node
26
27
  ::EacConfig::Node.context.current
27
28
  end
28
29
 
30
+ def config_nodes
31
+ ::EacRubyUtils::RecursiveBuilder.new(root_config_node, &:self_loaded_nodes).result
32
+ end
33
+
29
34
  def run_add
30
35
  parsed.push.if_present do |v|
31
36
  infov 'Path to add', v
@@ -34,7 +39,7 @@ module Avm
34
39
  end
35
40
  end
36
41
 
37
- def run_show
42
+ def run_show(config_node)
38
43
  infov 'Configuration path', config_node.url
39
44
  infov 'Paths included', config_node.self_loaded_nodes.count
40
45
  config_node.self_loaded_nodes.each do |loaded_node|
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/files/rotate'
3
+ require 'avm/data/rotate'
4
4
  require 'eac_cli/core_ext'
5
5
 
6
6
  module Avm
@@ -19,7 +19,7 @@ module Avm
19
19
  end
20
20
 
21
21
  def rotate
22
- @rotate ||= ::Avm::Files::Rotate.new(
22
+ @rotate ||= ::Avm::Data::Rotate.new(
23
23
  parsed.path,
24
24
  space_limit: parsed.space_limit
25
25
  )
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/registry'
4
+ require 'avm/tools/core_ext'
5
+
6
+ module Avm
7
+ module Tools
8
+ class Runner
9
+ class Self
10
+ class Registry
11
+ runner_with :help do
12
+ desc 'Show information from registry'
13
+ end
14
+
15
+ def run
16
+ ::Avm::Registry.registries.each do |registry|
17
+ infov registry.module_suffix, registry.registered_modules.count
18
+ registry.registered_modules.each { |m| infov ' * ', m }
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/self'
4
+ require 'avm/registry'
4
5
  require 'avm/tools/version'
5
6
  require 'eac_ruby_base0/runner'
6
7
 
@@ -18,8 +19,8 @@ module Avm
18
19
  ::Avm::Self.application
19
20
  end
20
21
 
21
- def run
22
- ::EacConfig::Node.context.on(::Avm::Self.build_config) { super }
22
+ def extra_available_subcommands
23
+ ::Avm::Registry.runners.registered_modules.map { |k| [k.command_argument, k] }.to_h
23
24
  end
24
25
  end
25
26
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.107.0'
5
+ VERSION = '0.110.0'
6
6
  end
7
7
  end
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ::EacRubyGemSupport::Rspec.default.describe_rubocop
3
+ ::EacRubyUtils::Rspec.default_setup.describe_rubocop
@@ -1,102 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This file was generated by the `rspec --init` command. Conventionally, all
4
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
5
- # The generated `.rspec` file contains `--require spec_helper` which will cause
6
- # this file to always be loaded, without a need to explicitly require it in any
7
- # files.
8
- #
9
- # Given that it is always loaded, you are encouraged to keep this file as
10
- # light-weight as possible. Requiring heavyweight dependencies from this file
11
- # will add to the boot time of your test suite on EVERY test run, even for an
12
- # individual file that may not need all of that loaded. Instead, consider making
13
- # a separate helper file that requires the additional dependencies and performs
14
- # the additional setup, and require it from the spec files that actually need
15
- # it.
16
- #
17
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
18
- RSpec.configure do |config|
19
- # rspec-expectations config goes here. You can use an alternate
20
- # assertion/expectation library such as wrong or the stdlib/minitest
21
- # assertions if you prefer.
22
- config.expect_with :rspec do |expectations|
23
- # This option will default to `true` in RSpec 4. It makes the `description`
24
- # and `failure_message` of custom matchers include text for helper methods
25
- # defined using `chain`, e.g.:
26
- # be_bigger_than(2).and_smaller_than(4).description
27
- # # => "be bigger than 2 and smaller than 4"
28
- # ...rather than:
29
- # # => "be bigger than 2"
30
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
31
- end
32
-
33
- # rspec-mocks config goes here. You can use an alternate test double
34
- # library (such as bogus or mocha) by changing the `mock_with` option here.
35
- config.mock_with :rspec do |mocks|
36
- # Prevents you from mocking or stubbing a method that does not exist on
37
- # a real object. This is generally recommended, and will default to
38
- # `true` in RSpec 4.
39
- mocks.verify_partial_doubles = true
40
- end
41
-
42
- # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
43
- # have no way to turn it off -- the option exists only for backwards
44
- # compatibility in RSpec 3). It causes shared context metadata to be
45
- # inherited by the metadata hash of host groups and examples, rather than
46
- # triggering implicit auto-inclusion in groups with matching metadata.
47
- config.shared_context_metadata_behavior = :apply_to_host_groups
48
-
49
- # The settings below are suggested to provide a good initial experience
50
- # with RSpec, but feel free to customize to your heart's content.
51
- # # This allows you to limit a spec run to individual examples or groups
52
- # # you care about by tagging them with `:focus` metadata. When nothing
53
- # # is tagged with `:focus`, all examples get run. RSpec also provides
54
- # # aliases for `it`, `describe`, and `context` that include `:focus`
55
- # # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
56
- # config.filter_run_when_matching :focus
57
- #
58
- # # Allows RSpec to persist some state between runs in order to support
59
- # # the `--only-failures` and `--next-failure` CLI options. We recommend
60
- # # you configure your source control system to ignore this file.
61
- # config.example_status_persistence_file_path = "spec/examples.txt"
62
- #
63
- # # Limits the available syntax to the non-monkey patched syntax that is
64
- # # recommended. For more details, see:
65
- # # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
66
- # # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
67
- # # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
68
- # config.disable_monkey_patching!
69
- #
70
- # # This setting enables warnings. It's recommended, but in some cases may
71
- # # be too noisy due to issues in dependencies.
72
- # config.warnings = true
73
- #
74
- # # Many RSpec users commonly either run the entire suite or an individual
75
- # # file, and it's useful to allow more verbose output when running an
76
- # # individual spec file.
77
- # if config.files_to_run.one?
78
- # # Use the documentation formatter for detailed output,
79
- # # unless a formatter has already been configured
80
- # # (e.g. via a command-line flag).
81
- # config.default_formatter = "doc"
82
- # end
83
- #
84
- # # Print the 10 slowest examples and example groups at the
85
- # # end of the spec run, to help surface which specs are running
86
- # # particularly slow.
87
- # config.profile_examples = 10
88
- #
89
- # # Run specs in random order to surface order dependencies. If you find an
90
- # # order dependency and want to debug it, you can fix the order by providing
91
- # # the seed, which is printed after each run.
92
- # # --seed 1234
93
- # config.order = :random
94
- #
95
- # # Seed global randomization in this process using the `--seed` CLI option.
96
- # # Setting this allows you to use `--seed` to deterministically reproduce
97
- # # test failures related to randomization by passing the same `--seed` value
98
- # # as the one that triggered the failure.
99
- # Kernel.srand config.seed
100
- require 'eac_ruby_gem_support/rspec'
101
- ::EacRubyGemSupport::Rspec.setup(::File.expand_path('..', __dir__))
102
- end
3
+ require 'eac_ruby_utils/rspec/default_setup'
4
+ ::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
@@ -12,9 +12,10 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib}/**/*']
14
14
 
15
+ s.add_dependency 'eac_cli', '~> 0.23', '>= 0.23.1'
15
16
  s.add_dependency 'eac_docker', '~> 0.3'
16
17
  s.add_dependency 'eac_git', '~> 0.6'
17
- s.add_dependency 'eac_ruby_utils', '~> 0.68'
18
+ s.add_dependency 'eac_ruby_utils', '~> 0.77'
18
19
  s.add_dependency 'eac_templates', '~> 0.1', '>= 0.1.1'
19
20
  s.add_dependency 'filesize', '~> 0.2'
20
21
  s.add_dependency 'htmlbeautifier', '~> 1.3', '>= 1.3.1'
File without changes
File without changes
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/tools/core_ext'
4
- require 'avm/files/rotate'
3
+ require 'avm/data/rotate'
4
+ require 'eac_ruby_utils/core_ext'
5
5
  require 'minitar'
6
6
 
7
7
  module Avm
@@ -88,7 +88,7 @@ module Avm
88
88
  return unless existing == EXISTING_ROTATE
89
89
 
90
90
  infom "Rotating \"#{data_file_path}\"..."
91
- ::Avm::Files::Rotate.new(data_file_path).run
91
+ ::Avm::Data::Rotate.new(data_file_path).run
92
92
  end
93
93
 
94
94
  def new_build_path
File without changes
File without changes
@@ -4,7 +4,7 @@ require 'active_support/core_ext/object/blank'
4
4
  require 'eac_ruby_utils/simple_cache'
5
5
 
6
6
  module Avm
7
- module Files
7
+ module Data
8
8
  class Rotate
9
9
  include ::EacRubyUtils::SimpleCache
10
10
 
File without changes
@@ -13,6 +13,7 @@ module Avm
13
13
 
14
14
  runner_with :help do
15
15
  desc 'Manipulate Docker images.'
16
+ bool_opt '-I', '--image-name', 'Output image name.'
16
17
  arg_opt '-n', '--registry-name', 'Docker registry\'s name.'
17
18
  bool_opt '-p', '--push', 'Push the image to Docker registry.'
18
19
  bool_opt '-r', '--run', 'Run or start a container with builded image.'
@@ -27,6 +28,7 @@ module Avm
27
28
  setup
28
29
  banner
29
30
  build
31
+ output_image_name
30
32
  push
31
33
  container_run
32
34
  end
@@ -84,6 +86,12 @@ module Avm
84
86
  )
85
87
  end
86
88
 
89
+ def output_image_name
90
+ return unless parsed.image_name
91
+
92
+ out(docker_image.tag.to_s.strip + "\n")
93
+ end
94
+
87
95
  def registry_uncached
88
96
  registry_from_option || registry_from_instance || registry_from_default ||
89
97
  fatal_error('No registry defined')
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/jobs/variables_source'
4
+ require 'avm/result'
4
5
  require 'eac_cli/core_ext'
5
6
 
6
7
  module Avm
File without changes
@@ -0,0 +1,65 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+ require 'eac_ruby_utils/gems_registry'
5
+
6
+ module Avm
7
+ module Registry
8
+ class Base
9
+ enable_simple_cache
10
+ common_constructor :module_suffix
11
+
12
+ def detect(*registered_initialize_args)
13
+ detect_optional(*registered_initialize_args) ||
14
+ raise("No registered module valid for #{registered_initialize_args}" \
15
+ " (Module suffix: #{module_suffix})")
16
+ end
17
+
18
+ def detect_optional(*registered_initialize_args)
19
+ registered_modules.lazy.map { |klass| klass.new(*registered_initialize_args) }
20
+ .find(&:valid?)
21
+ end
22
+
23
+ def provider_module_suffix
24
+ "#{module_suffix}::Provider"
25
+ end
26
+
27
+ def single_module_suffix
28
+ "#{module_suffix}::Base"
29
+ end
30
+
31
+ def to_s
32
+ "#{self.class}[#{module_suffix}]"
33
+ end
34
+
35
+ def valid_registered_module?(a_module)
36
+ a_module.is_a?(::Class) && !a_module.abstract?
37
+ end
38
+
39
+ private
40
+
41
+ def registered_modules_uncached
42
+ (single_registered_modules + provider_registered_modules)
43
+ .select { |v| valid_registered_module?(v) }.uniq.sort_by { |s| [s.name] }
44
+ end
45
+
46
+ def single_registered_modules
47
+ single_instance_registry.registered.map(&:registered_module)
48
+ end
49
+
50
+ def provider_registered_modules
51
+ provider_registry.registered.map(&:registered_module).flat_map do |provider_class|
52
+ provider_class.new.all
53
+ end
54
+ end
55
+
56
+ def single_instance_registry_uncached
57
+ ::EacRubyUtils::GemsRegistry.new(single_module_suffix)
58
+ end
59
+
60
+ def provider_registry_uncached
61
+ ::EacRubyUtils::GemsRegistry.new(provider_module_suffix)
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+ require 'eac_ruby_utils/gems_registry'
5
+
6
+ module Avm
7
+ module Registry
8
+ require_sub __FILE__
9
+ enable_listable
10
+ lists.add_symbol :category, :instance_stereotypes, :runners, :scms, :source_stereotypes
11
+
12
+ class << self
13
+ enable_simple_cache
14
+
15
+ # @return [Array<Avm::Registry::Base>]
16
+ def registries
17
+ lists.category.values.map { |c| send(c) }
18
+ end
19
+
20
+ private
21
+
22
+ ::Avm::Registry.lists.category.each_value do |category|
23
+ define_method "#{category}_uncached" do
24
+ ::Avm::Registry::Base.new(category.to_s.camelize)
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module Rspec
7
+ module Setup
8
+ def self.extended(obj)
9
+ obj.setup_in_avm_registry_example
10
+ obj.setup_not_in_avm_registry_example
11
+ end
12
+
13
+ def setup_in_avm_registry_example
14
+ require 'avm/rspec/shared_examples/in_avm_registry'
15
+ end
16
+
17
+ def setup_not_in_avm_registry_example
18
+ require 'avm/rspec/shared_examples/not_in_avm_registry'
19
+ end
20
+ end
21
+ end
22
+ end