avm-tools 0.113.2 → 0.113.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avm/eac_writings_base0/commons.rb +1 -1
  3. data/lib/avm/patches/i18n.rb +2 -2
  4. data/lib/avm/ruby/gems/generator.rb +1 -1
  5. data/lib/avm/tools/runner/config/load_path.rb +0 -1
  6. data/lib/avm/tools/runner/self.rb +2 -2
  7. data/lib/avm/tools/runner.rb +2 -2
  8. data/lib/avm/tools/self.rb +23 -0
  9. data/lib/avm/tools/version.rb +1 -1
  10. data/sub/avm/lib/avm/instances/application.rb +4 -0
  11. data/sub/avm/lib/avm/instances/base/auto_values/data.rb +2 -2
  12. data/sub/avm/lib/avm/instances/base/auto_values/filesystem.rb +6 -8
  13. data/sub/avm/lib/avm/instances/entry.rb +10 -4
  14. data/sub/avm/lib/avm/instances/entry_keys.rb +1 -1
  15. data/sub/avm/lib/avm/self/instance.rb +8 -0
  16. data/sub/avm/lib/avm/sources/base.rb +1 -1
  17. data/sub/avm/lib/avm/version.rb +1 -1
  18. data/sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec +1 -1
  19. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/version.rb +1 -1
  20. data/sub/avm-eac_postgresql_base0/Gemfile +5 -0
  21. data/sub/avm-eac_postgresql_base0/avm-eac_postgresql_base0.gemspec +19 -0
  22. data/{lib/avm/postgresql → sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0}/instance/data_unit.rb +1 -1
  23. data/{lib/avm/postgresql → sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0}/instance.rb +3 -3
  24. data/{lib/avm/postgresql → sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0}/instance_with.rb +3 -3
  25. data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/version.rb +7 -0
  26. data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0.rb +9 -0
  27. data/sub/avm-eac_postgresql_base0/spec/rubocop_spec.rb +3 -0
  28. data/sub/avm-eac_postgresql_base0/spec/spec_helper.rb +4 -0
  29. data/sub/avm-eac_rails_base0/avm-eac_rails_base0.gemspec +2 -2
  30. data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/apache_path.rb +1 -1
  31. data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/deploy.rb +1 -1
  32. data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/runners/base.rb +2 -0
  33. data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/version.rb +1 -1
  34. data/sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb +1 -1
  35. data/sub/avm-eac_rails_base0/spec/spec_helper.rb +1 -0
  36. data/sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec +2 -1
  37. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/version.rb +1 -1
  38. data/sub/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +1 -1
  39. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/docker_image.rb +1 -1
  40. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
  41. data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +1 -1
  42. data/sub/avm-eac_ubuntu_base0/avm-eac_ubuntu_base0.gemspec +1 -1
  43. data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/docker_image.rb +1 -1
  44. data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/runners/base.rb +4 -0
  45. data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/version.rb +1 -1
  46. data/sub/avm-eac_ubuntu_base0/spec/lib/avm/eac_ubuntu_base0/runners/base/docker_spec.rb +14 -0
  47. data/sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec +3 -1
  48. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/apache_host.rb +1 -2
  49. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy.rb +1 -1
  50. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instance.rb +2 -2
  51. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
  52. data/{template → sub/avm-eac_webapp_base0/template}/avm/eac_webapp_base0/apache_host/no_ssl.conf +0 -0
  53. data/{template → sub/avm-eac_webapp_base0/template}/avm/eac_webapp_base0/apache_path/default.conf +0 -0
  54. data/sub/avm-git/avm-git.gemspec +1 -1
  55. data/sub/avm-git/lib/avm/git/issue/complete/commits.rb +3 -3
  56. data/sub/avm-git/lib/avm/git/issue/complete/git_subrepos.rb +1 -1
  57. data/sub/avm-git/lib/avm/git/issue/complete/local_branch.rb +13 -6
  58. data/sub/avm-git/lib/avm/git/issue/complete/local_tag.rb +3 -3
  59. data/sub/avm-git/lib/avm/git/issue/complete/push.rb +15 -9
  60. data/sub/avm-git/lib/avm/git/issue/complete/remote.rb +2 -2
  61. data/sub/avm-git/lib/avm/git/issue/complete/test.rb +1 -1
  62. data/sub/avm-git/lib/avm/git/issue/complete/tracker.rb +1 -1
  63. data/sub/avm-git/lib/avm/git/issue/complete/validation.rb +13 -5
  64. data/sub/avm-git/lib/avm/git/issue/complete/working_tree.rb +1 -1
  65. data/sub/avm-git/lib/avm/git/issue/complete.rb +22 -7
  66. data/sub/avm-git/lib/avm/git/version.rb +1 -1
  67. data/sub/eac_cli/eac_cli.gemspec +2 -2
  68. data/sub/eac_cli/lib/eac_cli/config/entry/options.rb +1 -1
  69. data/sub/eac_cli/lib/eac_cli/config/entry/undefined.rb +1 -1
  70. data/sub/eac_cli/lib/eac_cli/config/entry.rb +5 -1
  71. data/sub/eac_cli/lib/eac_cli/rspec/setup.rb +42 -0
  72. data/sub/eac_cli/lib/eac_cli/rspec.rb +9 -0
  73. data/sub/eac_cli/lib/eac_cli/speaker/constants.rb +13 -0
  74. data/sub/eac_cli/lib/eac_cli/version.rb +1 -1
  75. data/sub/eac_config/eac_config.gemspec +1 -1
  76. data/sub/eac_config/lib/eac_config/entry.rb +4 -0
  77. data/sub/eac_config/lib/eac_config/node_entry.rb +4 -0
  78. data/sub/eac_config/lib/eac_config/rspec/setup.rb +35 -0
  79. data/sub/eac_config/lib/eac_config/version.rb +1 -1
  80. data/sub/eac_fs/lib/eac_fs/logs/file.rb +6 -0
  81. data/sub/eac_fs/lib/eac_fs/logs.rb +5 -0
  82. data/sub/eac_fs/lib/eac_fs/version.rb +1 -1
  83. data/sub/eac_git/eac_git.gemspec +1 -1
  84. data/sub/eac_git/lib/eac_git/local/branch.rb +27 -0
  85. data/sub/eac_git/lib/eac_git/local.rb +18 -0
  86. data/sub/eac_git/lib/eac_git/version.rb +1 -1
  87. data/sub/eac_ruby_base0/eac_ruby_base0.gemspec +1 -1
  88. data/sub/eac_ruby_base0/lib/eac_ruby_base0/rspec/setup.rb +14 -0
  89. data/sub/eac_ruby_base0/lib/eac_ruby_base0/rspec.rb +9 -0
  90. data/sub/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +21 -8
  91. data/sub/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
  92. data/sub/eac_ruby_utils/eac_ruby_utils.gemspec +1 -1
  93. data/sub/eac_ruby_utils/lib/eac_ruby_utils/context.rb +2 -0
  94. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/to_struct.rb +10 -0
  95. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/mkpath_s.rb +12 -0
  96. data/sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  97. data/sub/eac_templates/lib/eac_templates/core_ext.rb +4 -0
  98. data/sub/eac_templates/lib/eac_templates/from_all_gems.rb +4 -0
  99. data/sub/eac_templates/lib/eac_templates/from_gem.rb +35 -0
  100. data/sub/eac_templates/lib/eac_templates/version.rb +1 -1
  101. metadata +38 -32
  102. data/lib/avm/patches/object/template.rb +0 -7
  103. data/lib/avm/patches/object.rb +0 -4
  104. data/lib/avm/postgresql.rb +0 -9
  105. data/lib/avm/self/root.rb +0 -13
  106. data/lib/avm/self.rb +0 -30
  107. data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/patches/object/template.rb +0 -7
  108. data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/patches/object.rb +0 -4
  109. data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/patches.rb +0 -4
  110. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/patches/object/template.rb +0 -7
  111. data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/patches/object/template.rb +0 -7
  112. data/sub/eac_cli/lib/eac_cli/old_configs_bridge.rb +0 -39
  113. data/sub/eac_cli/lib/eac_cli/speaker/_constants.rb +0 -12
  114. data/sub/eac_ruby_base0/lib/eac_ruby_base0/runner/test_all.rb +0 -22
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module EacRubyBase0
6
+ module Rspec
7
+ module Setup
8
+ def self.extended(obj)
9
+ obj.disable_input_request
10
+ obj.stub_eac_config_node
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_exts'
4
+
5
+ module EacRubyBase0
6
+ module Rspec
7
+ require_sub __FILE__
8
+ end
9
+ end
@@ -8,7 +8,6 @@ require 'eac_ruby_utils/speaker'
8
8
 
9
9
  module EacRubyBase0
10
10
  module Runner
11
- require_sub __FILE__
12
11
  enable_speaker
13
12
  common_concern do
14
13
  include ::EacCli::RunnerWith::Help
@@ -37,14 +36,15 @@ module EacRubyBase0
37
36
  runner_context.call(:application).version.to_s
38
37
  end
39
38
 
40
- def on_context
41
- ::EacRubyUtils::Speaker.context.on(build_speaker) do
42
- ::EacConfig::Node.context.on(runner_context.call(:application).build_config) do
43
- ::EacFs::Cache.context.on(application.self_fs_cache) do
44
- yield
45
- end
46
- end
39
+ def on_context(&block)
40
+ top_block = block
41
+ available_contexts.each do |context|
42
+ next if context.object.any?
43
+
44
+ last_block = top_block
45
+ top_block = ::Proc.new { context.object.on(context.builder.call, &last_block) }
47
46
  end
47
+ top_block.call
48
48
  end
49
49
 
50
50
  def show_version
@@ -63,6 +63,19 @@ module EacRubyBase0
63
63
 
64
64
  private
65
65
 
66
+ # @return [Array<EacRubyUtils::Struct>]
67
+ def available_contexts
68
+ [
69
+ [:cache, ::EacFs::Cache.context, -> { application.self_fs_cache }],
70
+ [:config, ::EacConfig::Node.context, -> { runner_context.call(:application).build_config }],
71
+ [:speaker, ::EacRubyUtils::Speaker.context, -> { build_speaker }]
72
+ ].map { |row| available_context_row_to_struct(row) }
73
+ end
74
+
75
+ def available_context_row_to_struct(row)
76
+ %i[type object builder].zip(row).to_h.to_struct
77
+ end
78
+
66
79
  def build_speaker
67
80
  options = {}
68
81
  options[:err_out] = ::StringIO.new if parsed.quiet?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyBase0
4
- VERSION = '0.13.2'
4
+ VERSION = '0.15.0'
5
5
  end
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
 
16
16
  s.files = Dir['{lib}/**/*', 'MIT-LICENSE', 'README.rdoc']
17
17
 
18
- s.add_dependency 'activesupport', '>= 4.0'
18
+ s.add_dependency 'activesupport', '>= 4', '< 7'
19
19
  s.add_dependency 'addressable', '~> 2.6'
20
20
  s.add_dependency 'filesize'
21
21
  s.add_dependency 'net-ssh', '~> 4.2'
@@ -2,6 +2,8 @@
2
2
 
3
3
  module EacRubyUtils
4
4
  class Context
5
+ delegate :any?, to: :stack
6
+
5
7
  def current
6
8
  optional_current || raise('No elements in context')
7
9
  end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/struct'
4
+
5
+ class Hash
6
+ # Returns an <tt>EacRubyUtils::Struct</tt> out of its receiver.
7
+ def to_struct
8
+ ::EacRubyUtils::Struct.new(self)
9
+ end
10
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'pathname'
4
+
5
+ class Pathname
6
+ # Execute .mkpath and return +self+.
7
+ # @return [Pathname]
8
+ def mkpath_s
9
+ mkpath
10
+ self
11
+ end
12
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.81.0'
4
+ VERSION = '0.83.0'
5
5
  end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_templates/patches'
4
+ require 'eac_templates/from_all_gems'
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_templates/from_gem'
4
+ ::EacTemplates::FromGem.include_all
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_templates/searcher'
4
+
5
+ module EacTemplates
6
+ class FromGem
7
+ class << self
8
+ def include_all(searcher = nil)
9
+ ::Gem::Specification.each { |gemspec| new(gemspec, searcher).include }
10
+ end
11
+ end
12
+
13
+ TEMPLATES_DIR_SUBPATH = 'template'
14
+
15
+ common_constructor :gemspec, :searcher, default: [nil] do
16
+ self.searcher ||= ::EacTemplates::Searcher.default
17
+ end
18
+
19
+ # @return [Boolean]
20
+ delegate :exist?, to: :path
21
+
22
+ # @return [Pathname]
23
+ def include
24
+ return nil unless exist?
25
+
26
+ searcher.included_paths << path
27
+ path
28
+ end
29
+
30
+ # @return [Pathname]
31
+ def path
32
+ gemspec.gem_dir.to_pathname.join(TEMPLATES_DIR_SUBPATH)
33
+ end
34
+ end
35
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTemplates
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.113.2
4
+ version: 0.113.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-06 00:00:00.000000000 Z
11
+ date: 2022-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.9'
33
+ version: '0.13'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.9'
40
+ version: '0.13'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: avm-eac_asciidoctor_base0
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,20 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0.1'
131
+ version: '0.3'
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: 0.3.1
132
135
  type: :runtime
133
136
  prerelease: false
134
137
  version_requirements: !ruby/object:Gem::Requirement
135
138
  requirements:
136
139
  - - "~>"
137
140
  - !ruby/object:Gem::Version
138
- version: '0.1'
141
+ version: '0.3'
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: 0.3.1
139
145
  - !ruby/object:Gem::Dependency
140
146
  name: clipboard
141
147
  requirement: !ruby/object:Gem::Requirement
@@ -176,20 +182,14 @@ dependencies:
176
182
  requirements:
177
183
  - - "~>"
178
184
  - !ruby/object:Gem::Version
179
- version: '0.13'
180
- - - ">="
181
- - !ruby/object:Gem::Version
182
- version: 0.13.2
185
+ version: '0.14'
183
186
  type: :runtime
184
187
  prerelease: false
185
188
  version_requirements: !ruby/object:Gem::Requirement
186
189
  requirements:
187
190
  - - "~>"
188
191
  - !ruby/object:Gem::Version
189
- version: '0.13'
190
- - - ">="
191
- - !ruby/object:Gem::Version
192
- version: 0.13.2
192
+ version: '0.14'
193
193
  - !ruby/object:Gem::Dependency
194
194
  name: eac_ruby_gems_utils
195
195
  requirement: !ruby/object:Gem::Requirement
@@ -330,12 +330,6 @@ files:
330
330
  - lib/avm/patches/eac_ruby_gems_utils.rb
331
331
  - lib/avm/patches/eac_ruby_gems_utils/gem.rb
332
332
  - lib/avm/patches/i18n.rb
333
- - lib/avm/patches/object.rb
334
- - lib/avm/patches/object/template.rb
335
- - lib/avm/postgresql.rb
336
- - lib/avm/postgresql/instance.rb
337
- - lib/avm/postgresql/instance/data_unit.rb
338
- - lib/avm/postgresql/instance_with.rb
339
333
  - lib/avm/projects.rb
340
334
  - lib/avm/projects/stereotype.rb
341
335
  - lib/avm/projects/stereotype/job_comparator.rb
@@ -375,8 +369,6 @@ files:
375
369
  - lib/avm/ruby/rubocop/_configured.rb
376
370
  - lib/avm/ruby/rubocop/_envvar.rb
377
371
  - lib/avm/ruby/rubocop/_gemfile.rb
378
- - lib/avm/self.rb
379
- - lib/avm/self/root.rb
380
372
  - lib/avm/stereotypes.rb
381
373
  - lib/avm/tools.rb
382
374
  - lib/avm/tools/app_src.rb
@@ -439,6 +431,7 @@ files:
439
431
  - lib/avm/tools/runner/self.rb
440
432
  - lib/avm/tools/runner/self/docker.rb
441
433
  - lib/avm/tools/runner/self/registry.rb
434
+ - lib/avm/tools/self.rb
442
435
  - lib/avm/tools/version.rb
443
436
  - sub/avm-eac_asciidoctor_base0/Gemfile
444
437
  - sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec
@@ -467,6 +460,15 @@ files:
467
460
  - sub/avm-eac_generic_base0/spec/lib/avm/eac_generic_base0/sources/base_spec.rb
468
461
  - sub/avm-eac_generic_base0/spec/rubocop_spec.rb
469
462
  - sub/avm-eac_generic_base0/spec/spec_helper.rb
463
+ - sub/avm-eac_postgresql_base0/Gemfile
464
+ - sub/avm-eac_postgresql_base0/avm-eac_postgresql_base0.gemspec
465
+ - sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0.rb
466
+ - sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance.rb
467
+ - sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance/data_unit.rb
468
+ - sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance_with.rb
469
+ - sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/version.rb
470
+ - sub/avm-eac_postgresql_base0/spec/rubocop_spec.rb
471
+ - sub/avm-eac_postgresql_base0/spec/spec_helper.rb
470
472
  - sub/avm-eac_rails_base0/Gemfile
471
473
  - sub/avm-eac_rails_base0/avm-eac_rails_base0.gemspec
472
474
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0.rb
@@ -474,9 +476,6 @@ files:
474
476
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/apache_path.rb
475
477
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/deploy.rb
476
478
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instance.rb
477
- - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/patches.rb
478
- - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/patches/object.rb
479
- - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/patches/object/template.rb
480
479
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/runners.rb
481
480
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/runners/base.rb
482
481
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/version.rb
@@ -515,7 +514,6 @@ files:
515
514
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/deploy.rb
516
515
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb
517
516
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/docker_image.rb
518
- - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/patches/object/template.rb
519
517
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb
520
518
  - sub/avm-eac_redmine_base0/spec/rubocop_spec.rb
521
519
  - sub/avm-eac_redmine_base0/spec/spec_helper.rb
@@ -550,11 +548,11 @@ files:
550
548
  - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/docker_image.rb
551
549
  - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/instances.rb
552
550
  - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/instances/base.rb
553
- - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/patches/object/template.rb
554
551
  - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/runners/base.rb
555
552
  - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/runners/base/docker.rb
556
553
  - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/version.rb
557
554
  - sub/avm-eac_ubuntu_base0/spec/lib/avm/eac_ubuntu_base0/docker_image_spec.rb
555
+ - sub/avm-eac_ubuntu_base0/spec/lib/avm/eac_ubuntu_base0/runners/base/docker_spec.rb
558
556
  - sub/avm-eac_ubuntu_base0/spec/lib/avm/eac_ubuntu_base0/runners/base_spec.rb
559
557
  - sub/avm-eac_ubuntu_base0/spec/rubocop_spec.rb
560
558
  - sub/avm-eac_ubuntu_base0/spec/spec_helper.rb
@@ -586,6 +584,8 @@ files:
586
584
  - sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/sources/base_spec.rb
587
585
  - sub/avm-eac_webapp_base0/spec/rubocop_spec.rb
588
586
  - sub/avm-eac_webapp_base0/spec/spec_helper.rb
587
+ - sub/avm-eac_webapp_base0/template/avm/eac_webapp_base0/apache_host/no_ssl.conf
588
+ - sub/avm-eac_webapp_base0/template/avm/eac_webapp_base0/apache_path/default.conf
589
589
  - sub/avm-files/Gemfile
590
590
  - sub/avm-files/avm-files.gemspec
591
591
  - sub/avm-files/lib/avm/files.rb
@@ -780,7 +780,6 @@ files:
780
780
  - sub/eac_cli/lib/eac_cli/old_configs/password_entry_reader.rb
781
781
  - sub/eac_cli/lib/eac_cli/old_configs/read_entry_options.rb
782
782
  - sub/eac_cli/lib/eac_cli/old_configs/store_passwords_entry_reader.rb
783
- - sub/eac_cli/lib/eac_cli/old_configs_bridge.rb
784
783
  - sub/eac_cli/lib/eac_cli/parser.rb
785
784
  - sub/eac_cli/lib/eac_cli/parser/alternative.rb
786
785
  - sub/eac_cli/lib/eac_cli/parser/alternative/argv.rb
@@ -795,6 +794,8 @@ files:
795
794
  - sub/eac_cli/lib/eac_cli/patches.rb
796
795
  - sub/eac_cli/lib/eac_cli/patches/object.rb
797
796
  - sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
797
+ - sub/eac_cli/lib/eac_cli/rspec.rb
798
+ - sub/eac_cli/lib/eac_cli/rspec/setup.rb
798
799
  - sub/eac_cli/lib/eac_cli/runner.rb
799
800
  - sub/eac_cli/lib/eac_cli/runner/after_class_methods.rb
800
801
  - sub/eac_cli/lib/eac_cli/runner/context.rb
@@ -808,7 +809,7 @@ files:
808
809
  - sub/eac_cli/lib/eac_cli/runner_with/subcommands/definition_concern.rb
809
810
  - sub/eac_cli/lib/eac_cli/runner_with_set.rb
810
811
  - sub/eac_cli/lib/eac_cli/speaker.rb
811
- - sub/eac_cli/lib/eac_cli/speaker/_constants.rb
812
+ - sub/eac_cli/lib/eac_cli/speaker/constants.rb
812
813
  - sub/eac_cli/lib/eac_cli/speaker/list.rb
813
814
  - sub/eac_cli/lib/eac_cli/speaker/options.rb
814
815
  - sub/eac_cli/lib/eac_cli/version.rb
@@ -905,6 +906,7 @@ files:
905
906
  - sub/eac_git/lib/eac_git.rb
906
907
  - sub/eac_git/lib/eac_git/executables.rb
907
908
  - sub/eac_git/lib/eac_git/local.rb
909
+ - sub/eac_git/lib/eac_git/local/branch.rb
908
910
  - sub/eac_git/lib/eac_git/local/commit.rb
909
911
  - sub/eac_git/lib/eac_git/local/commit/archive.rb
910
912
  - sub/eac_git/lib/eac_git/local/commit/changed_file.rb
@@ -1132,8 +1134,9 @@ files:
1132
1134
  - sub/eac_ruby_base0/lib/eac_ruby_base0/patches/class/jobs_runner.rb
1133
1135
  - sub/eac_ruby_base0/lib/eac_ruby_base0/patches/object.rb
1134
1136
  - sub/eac_ruby_base0/lib/eac_ruby_base0/patches/object/runner_with.rb
1137
+ - sub/eac_ruby_base0/lib/eac_ruby_base0/rspec.rb
1138
+ - sub/eac_ruby_base0/lib/eac_ruby_base0/rspec/setup.rb
1135
1139
  - sub/eac_ruby_base0/lib/eac_ruby_base0/runner.rb
1136
- - sub/eac_ruby_base0/lib/eac_ruby_base0/runner/test_all.rb
1137
1140
  - sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with.rb
1138
1141
  - sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with/confirmation.rb
1139
1142
  - sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with/filesystem_traverser.rb
@@ -1255,6 +1258,7 @@ files:
1255
1258
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash.rb
1256
1259
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/options_consumer.rb
1257
1260
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/sym_keys_hash.rb
1261
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/to_struct.rb
1258
1262
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel.rb
1259
1263
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel/nyi.rb
1260
1264
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module.rb
@@ -1281,6 +1285,7 @@ files:
1281
1285
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_pathname.rb
1282
1286
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname.rb
1283
1287
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_sub.rb
1288
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/mkpath_s.rb
1284
1289
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/parent_n.rb
1285
1290
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp.rb
1286
1291
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp/if_match.rb
@@ -1362,8 +1367,11 @@ files:
1362
1367
  - sub/eac_templates/Gemfile
1363
1368
  - sub/eac_templates/eac_templates.gemspec
1364
1369
  - sub/eac_templates/lib/eac_templates.rb
1370
+ - sub/eac_templates/lib/eac_templates/core_ext.rb
1365
1371
  - sub/eac_templates/lib/eac_templates/directory.rb
1366
1372
  - sub/eac_templates/lib/eac_templates/file.rb
1373
+ - sub/eac_templates/lib/eac_templates/from_all_gems.rb
1374
+ - sub/eac_templates/lib/eac_templates/from_gem.rb
1367
1375
  - sub/eac_templates/lib/eac_templates/patches.rb
1368
1376
  - sub/eac_templates/lib/eac_templates/patches/module.rb
1369
1377
  - sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb
@@ -1391,8 +1399,6 @@ files:
1391
1399
  - sub/eac_templates/spec/lib/object/template_spec_files/path/my_stub_with_template
1392
1400
  - sub/eac_templates/spec/rubocop_spec.rb
1393
1401
  - sub/eac_templates/spec/spec_helper.rb
1394
- - template/avm/eac_webapp_base0/apache_host/no_ssl.conf
1395
- - template/avm/eac_webapp_base0/apache_path/default.conf
1396
1402
  - template/avm/eac_wordpress_base0/deploy/wp-config.php.template
1397
1403
  - template/avm/eac_writings_base0/commons/all.tex
1398
1404
  - template/avm/eac_writings_base0/commons/ebook.tex
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/self/root'
4
- require 'eac_templates/patches/object/template'
5
-
6
- ::EacTemplates::Searcher.default.included_paths <<
7
- ::Avm::Self.root.join('template').to_path
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/require_sub'
4
- ::EacRubyUtils.require_sub(__FILE__)
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/require_sub'
4
- ::EacRubyUtils.require_sub(__FILE__)
5
-
6
- module Avm
7
- module Postgresql
8
- end
9
- end
data/lib/avm/self/root.rb DELETED
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'pathname'
4
-
5
- module Avm
6
- module Self
7
- class << self
8
- def root
9
- ::Pathname.new('../../..').expand_path(__dir__)
10
- end
11
- end
12
- end
13
- end
data/lib/avm/self.rb DELETED
@@ -1,30 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/old_configs_bridge'
4
- require 'eac_ruby_base0/application'
5
- require 'eac_ruby_utils/require_sub'
6
- require 'avm/instances/base'
7
-
8
- module Avm
9
- module Self
10
- ::EacRubyUtils.require_sub(__FILE__)
11
-
12
- class << self
13
- def application
14
- @application ||= ::EacRubyBase0::Application.new(root.to_path)
15
- end
16
-
17
- # @return [EacCli::OldConfigsBridge]
18
- def build_config(path = nil)
19
- ::EacCli::OldConfigsBridge.new(
20
- application.name,
21
- path.if_present({}) { |v| { storage_path: v } }
22
- )
23
- end
24
-
25
- def instance
26
- @instance ||= ::Avm::Self::Instance.by_id('avm-tools_self')
27
- end
28
- end
29
- end
30
- end
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
- require 'eac_templates/patches/object/template'
5
-
6
- ::EacTemplates::Searcher.default.included_paths <<
7
- __dir__.to_pathname.expand_path.parent_n(5).join('template')
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/require_sub'
4
- ::EacRubyUtils.require_sub __FILE__
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/require_sub'
4
- ::EacRubyUtils.require_sub __FILE__
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
- require 'eac_templates/patches/object/template'
5
-
6
- ::EacTemplates::Searcher.default.included_paths <<
7
- __dir__.to_pathname.expand_path.parent_n(5).join('template')
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
- require 'eac_templates/patches/object/template'
5
-
6
- ::EacTemplates::Searcher.default.included_paths <<
7
- __dir__.to_pathname.expand_path.parent_n(5).join('template')
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/config'
4
- require 'eac_config/envvars_node'
5
- require 'eac_config/yaml_file_node'
6
- require 'eac_ruby_utils/core_ext'
7
-
8
- module EacCli
9
- class OldConfigsBridge < ::EacCli::Config
10
- ENTRY_KEY = 'core.store_passwords'
11
-
12
- class << self
13
- def new_configs_path(configs_key, options)
14
- options[:storage_path] || ::File.join(ENV['HOME'], '.config', configs_key, 'settings.yml')
15
- end
16
- end
17
-
18
- def initialize(configs_key, options = {})
19
- options.assert_argument(::Hash, 'options')
20
- envvar_node = ::EacConfig::EnvvarsNode.new
21
- file_node = ::EacConfig::YamlFileNode.new(self.class.new_configs_path(configs_key, options))
22
- envvar_node.load_path.push(file_node.url)
23
- envvar_node.write_node = file_node
24
- super(envvar_node)
25
- end
26
-
27
- def read_entry(entry_key, options = {})
28
- entry(entry_key, options).value
29
- end
30
-
31
- def read_password(entry_key, options = {})
32
- entry(entry_key, options.merge(noecho: true, store: store_passwords?)).value
33
- end
34
-
35
- def store_passwords?
36
- read_entry(ENTRY_KEY, bool: true)
37
- end
38
- end
39
- end
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/by_reference'
4
-
5
- module EacCli
6
- # https://github.com/fazibear/colorize
7
- class Speaker
8
- STDERR = ::EacRubyUtils::ByReference.new { $stderr }
9
- STDIN = ::EacRubyUtils::ByReference.new { $stdin }
10
- STDOUT = ::EacRubyUtils::ByReference.new { $stdout }
11
- end
12
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/core_ext'
4
- require 'eac_ruby_gems_utils/tests/multiple'
5
-
6
- module EacRubyBase0
7
- module Runner
8
- class TestAll
9
- runner_with :help do
10
- desc 'Test core and local gems.'
11
- end
12
-
13
- def run
14
- fatal_error 'Some test did not pass' unless tests.ok?
15
- end
16
-
17
- def tests_uncached
18
- ::EacRubyGemsUtils::Tests::Multiple.new(runner_context.call(:application).all_gems)
19
- end
20
- end
21
- end
22
- end