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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bdbfe65243619913d183eadb8935248cf9da66a5c4808ac38d3de51413cc17cb
4
- data.tar.gz: 1d7bf55929f81dbf1a98436530815c29ceb0f808fb78b91f49c7845e88d10525
3
+ metadata.gz: 9f0c1b42a6d34ae3d070dbbae54375ddd08eab2a177c5c46cc9d42de8165d10a
4
+ data.tar.gz: ff02a56141cb130c4b0e9c7fc651ebe3de42ba13ec6c56557fbae70f96ff693c
5
5
  SHA512:
6
- metadata.gz: 8cfaa26b21b5ef1e97a3ae19209ad2876e79c63d2a36bcf57ff2977dd96a2158e5f46763399b33f4a923a69570b8a721111ae31ac87e3465113bdfc774ab8d6f
7
- data.tar.gz: aacf553c790da7d6e8a8609d349d25290de3eda05add3c964425f3a10f3faf16268139b3edd04a9b432ef1f399e892d0eece7904b69701574078a6903d18a8c9
6
+ metadata.gz: c12fcce202f2eb1b40b58485dbf790e29b7f6bb183d450ce3c9f8a479abf9ae35a77865990c481ad1f2a28b18110bcc4e3db82ecc880c355f040eb8646433143
7
+ data.tar.gz: d85bb09c92c7d6b1f0414f66509da068ff018d8ec1da32b730f00fe99cc723895d4e09d205f5964cd562a61647c849017f2fe3def50f3fdfec45c770a9d2d8a6
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/patches/object/template'
3
+ require 'eac_templates/core_ext'
4
4
  require 'singleton'
5
5
 
6
6
  module Avm
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/self/root'
3
+ require 'avm/tools/self'
4
4
  require 'i18n'
5
5
 
6
6
  module Avm
@@ -12,7 +12,7 @@ module Avm
12
12
  end
13
13
 
14
14
  def locale_files_paths
15
- ::Avm::Self.root.join('locale').glob('*.yml')
15
+ ::Avm::Tools::Self.root.join('locale').glob('*.yml')
16
16
  end
17
17
  end
18
18
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/patches/object/template'
3
+ require 'eac_templates/core_ext'
4
4
  require 'eac_ruby_utils/core_ext'
5
5
 
6
6
  module Avm
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/self'
4
3
  require 'avm/tools/core_ext'
5
4
  require 'eac_config/node'
6
5
  require 'eac_ruby_utils/recursive_builder'
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/tools/core_ext'
4
- require 'avm/self'
4
+ require 'avm/self/instance'
5
5
 
6
6
  module Avm
7
7
  module Tools
@@ -14,7 +14,7 @@ module Avm
14
14
  end
15
15
 
16
16
  def instance
17
- ::Avm::Self.instance
17
+ ::Avm::Self::Instance.default
18
18
  end
19
19
  end
20
20
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/self'
3
+ require 'avm/tools/self'
4
4
  require 'avm/registry'
5
5
  require 'avm/tools/version'
6
6
  require 'eac_ruby_base0/runner'
@@ -16,7 +16,7 @@ module Avm
16
16
  end
17
17
 
18
18
  def application
19
- ::Avm::Self.application
19
+ ::Avm::Tools::Self.application
20
20
  end
21
21
 
22
22
  def extra_available_subcommands
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_base0/application'
4
+ require 'eac_ruby_utils/require_sub'
5
+ require 'avm/instances/base'
6
+
7
+ module Avm
8
+ module Tools
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
+ def root
18
+ ::Pathname.new('../../..').expand_path(__dir__)
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.113.2'
5
+ VERSION = '0.113.6'
6
6
  end
7
7
  end
@@ -20,6 +20,10 @@ module Avm
20
20
  def instance(suffix)
21
21
  ::Avm::Instances::Base.new(self, suffix)
22
22
  end
23
+
24
+ def name
25
+ entry(::Avm::Instances::EntryKeys::NAME).read
26
+ end
23
27
  end
24
28
  end
25
29
  end
@@ -9,8 +9,8 @@ module Avm
9
9
  module AutoValues
10
10
  module Data
11
11
  def auto_data_default_dump_path
12
- ::Avm::Self
13
- .instance
12
+ ::Avm::Self::Instance
13
+ .default
14
14
  .read_entry_optional(::Avm::Self::Instance::EntryKeys::DATA_DEFAULT_PATH)
15
15
  .if_present do |v|
16
16
  ::File.join(
@@ -1,22 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'avm/instances/entry_keys'
4
+
3
5
  module Avm
4
6
  module Instances
5
7
  class Base
6
8
  module AutoValues
7
9
  module Filesystem
8
- FS_PATH_KEY = :fs_path
9
-
10
10
  def auto_fs_path
11
- inherited_entry_value(::Avm::Instances::EntryKeys::HOST_ID, FS_PATH_KEY) do |v|
12
- v + '/' + id
13
- end
11
+ inherited_entry_value(::Avm::Instances::EntryKeys::HOST_ID,
12
+ ::Avm::Instances::EntryKeys::FS_PATH) { |v| v + '/' + id }
14
13
  end
15
14
 
16
15
  def auto_data_fs_path
17
- inherited_entry_value(::Avm::Instances::EntryKeys::HOST_ID, :data_fs_path) do |v|
18
- v + '/' + id
19
- end
16
+ inherited_entry_value(::Avm::Instances::EntryKeys::HOST_ID,
17
+ ::Avm::Instances::EntryKeys::DATA_FS_PATH) { |v| v + '/' + id }
20
18
  end
21
19
 
22
20
  def auto_fs_url
@@ -27,11 +27,11 @@ module Avm
27
27
  end
28
28
 
29
29
  def optional_value
30
- read(required: false, noinput: true) || auto_value
30
+ context_entry.found? ? context_entry.value : auto_value
31
31
  end
32
32
 
33
- def read(extra_options = {})
34
- ::EacConfig::Node.context.current.entry(full_path, options.merge(extra_options)).value
33
+ def read
34
+ context_entry.value
35
35
  end
36
36
 
37
37
  def suffix_as_array
@@ -47,7 +47,13 @@ module Avm
47
47
  end
48
48
 
49
49
  def write(value)
50
- ::EacConfig::Node.context.current.entry(full_path).value = value
50
+ context_entry.value = value
51
+ end
52
+
53
+ private
54
+
55
+ def context_entry
56
+ ::EacConfig::Node.context.current.entry(full_path)
51
57
  end
52
58
  end
53
59
  end
@@ -42,7 +42,7 @@ module Avm
42
42
  end
43
43
 
44
44
  {
45
- '' => %w[fs_path host_id source_instance_id],
45
+ '' => %w[data_fs_path fs_path host_id name source_instance_id],
46
46
  database: %w[id hostname limit name password port system timeout username extra],
47
47
  docker: %w[registry],
48
48
  mailer: {
@@ -8,6 +8,14 @@ require 'avm/eac_ubuntu_base0/docker_image'
8
8
  module Avm
9
9
  module Self
10
10
  class Instance < ::Avm::Instances::Base
11
+ DEFAULT_INSTANCE_ID = 'avm_self'
12
+
13
+ class << self
14
+ def default
15
+ @default ||= by_id(DEFAULT_INSTANCE_ID)
16
+ end
17
+ end
18
+
11
19
  def docker_image_class
12
20
  ::Avm::Self::DockerImage
13
21
  end
@@ -37,7 +37,7 @@ module Avm
37
37
 
38
38
  # @return [Enumerable<Avm::Sources::Base>]
39
39
  def subs
40
- scm.subs.map { |subrepo| self.class.new(subrepo.path, parent: self) }
40
+ scm.subs.map { |subrepo| ::Avm::Registry.sources.detect(subrepo.path, parent: self) }
41
41
  end
42
42
 
43
43
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.11.0'
4
+ VERSION = '0.14.0'
5
5
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.authors = ['Put here the authors']
11
11
  s.summary = 'Put here de description.'
12
12
 
13
- s.files = Dir['{lib}/**/*']
13
+ s.files = Dir['{lib,template}/**/*']
14
14
 
15
15
  s.add_dependency 'asciidoctor', '~> 2.0', '>= 2.0.12'
16
16
  s.add_dependency 'avm-eac_webapp_base0', '~> 0.2'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacAsciidoctorBase0
5
- VERSION = '0.3.2'
5
+ VERSION = '0.3.3'
6
6
  end
7
7
  end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.push File.expand_path('lib', __dir__)
4
+
5
+ require 'avm/eac_postgresql_base0/version'
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = 'avm-eac_postgresql_base0'
9
+ s.version = Avm::EacPostgresqlBase0::VERSION
10
+ s.authors = ['Put here the authors']
11
+ s.summary = 'Put here de description.'
12
+
13
+ s.files = Dir['{lib}/**/*']
14
+
15
+ s.add_dependency 'avm', '~> 0.12', '>= 0.12.1'
16
+ s.add_dependency 'eac_ruby_utils', '~> 0.82'
17
+
18
+ s.add_development_dependency 'eac_ruby_gem_support', '~> 0.4'
19
+ end
@@ -3,7 +3,7 @@
3
3
  require 'avm/data/instance/unit'
4
4
 
5
5
  module Avm
6
- module Postgresql
6
+ module EacPostgresqlBase0
7
7
  class Instance
8
8
  class DataUnit < ::Avm::Data::Instance::Unit
9
9
  EXTENSION = '.pgdump.gz'
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/postgresql/instance/data_unit'
3
+ require 'avm/eac_postgresql_base0/instance/data_unit'
4
4
 
5
5
  module Avm
6
- module Postgresql
6
+ module EacPostgresqlBase0
7
7
  class Instance
8
8
  def initialize(env, connection_params)
9
9
  @env = env
@@ -11,7 +11,7 @@ module Avm
11
11
  end
12
12
 
13
13
  def data_unit
14
- ::Avm::Postgresql::Instance::DataUnit.new(self)
14
+ ::Avm::EacPostgresqlBase0::Instance::DataUnit.new(self)
15
15
  end
16
16
 
17
17
  def dump_command
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/instances/entry_keys'
4
- require 'avm/postgresql/instance'
4
+ require 'avm/eac_postgresql_base0/instance'
5
5
 
6
6
  module Avm
7
- module Postgresql
7
+ module EacPostgresqlBase0
8
8
  module InstanceWith
9
9
  def pg
10
- @pg ||= ::Avm::Postgresql::Instance.new(
10
+ @pg ||= ::Avm::EacPostgresqlBase0::Instance.new(
11
11
  host_env, user: read_entry(::Avm::Instances::EntryKeys::DATABASE_USERNAME),
12
12
  password: read_entry(::Avm::Instances::EntryKeys::DATABASE_PASSWORD),
13
13
  name: read_entry(::Avm::Instances::EntryKeys::DATABASE_NAME)
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Avm
4
+ module EacPostgresqlBase0
5
+ VERSION = '0.1.0'
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module EacPostgresqlBase0
7
+ require_sub __FILE__
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ ::EacRubyUtils::Rspec.default_setup.describe_rubocop
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/rspec/default_setup'
4
+ ::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
@@ -10,9 +10,9 @@ Gem::Specification.new do |s|
10
10
  s.authors = ['Put here the authors']
11
11
  s.summary = 'Put here de description.'
12
12
 
13
- s.files = Dir['{lib}/**/*']
13
+ s.files = Dir['{lib,template}/**/*']
14
14
 
15
- s.add_dependency 'avm-eac_rails_base1', '~> 0.1', '>= 0.1.2'
15
+ s.add_dependency 'avm-eac_rails_base1', '~> 0.1', '>= 0.1.3'
16
16
  s.add_dependency 'eac_ruby_utils', '~> 0.80', '>= 0.80.2'
17
17
 
18
18
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.4'
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/eac_rails_base0/patches/object/template'
3
+ require 'eac_templates/core_ext'
4
4
  require 'avm/eac_webapp_base0/apache_path'
5
5
  require 'eac_ruby_utils/core_ext'
6
6
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/eac_rails_base0/patches/object/template'
3
+ require 'eac_templates/core_ext'
4
4
  require 'avm/eac_webapp_base0/deploy'
5
5
  require 'avm/instances/entry_keys'
6
6
 
@@ -2,6 +2,8 @@
2
2
 
3
3
  require 'avm/eac_rails_base0/instance'
4
4
  require 'avm/eac_rails_base0/deploy'
5
+ require 'avm/eac_rails_base0/apache_host'
6
+ require 'avm/eac_rails_base0/apache_path'
5
7
  require 'avm/eac_rails_base1/runner'
6
8
  require 'eac_ruby_utils/core_ext'
7
9
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRailsBase0
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
@@ -12,7 +12,7 @@ RSpec.describe ::Avm::EacRailsBase0::ApachePath do
12
12
  let(:expected_content) { expect_file.read }
13
13
 
14
14
  before do
15
- instance.entry(::Avm::Instances::Base::FS_PATH_KEY).write('/path/to/stub-app_0')
15
+ instance.entry(::Avm::Instances::EntryKeys::FS_PATH).write('/path/to/stub-app_0')
16
16
  instance.entry('web.url').write('http://stubapp.net/stub-app_0')
17
17
  end
18
18
 
@@ -2,3 +2,4 @@
2
2
 
3
3
  require 'eac_ruby_utils/rspec/default_setup'
4
4
  ::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
5
+ ::EacRubyUtils::Rspec.default_setup.stub_eac_config_node
@@ -12,7 +12,8 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib}/**/*']
14
14
 
15
- s.add_dependency 'avm-eac_webapp_base0', '~> 0.1'
15
+ s.add_dependency 'avm-eac_webapp_base0', '~> 0.2', '>= 0.2.1'
16
+ s.add_dependency 'eac_ruby_gems_utils', '~> 0.9', '>= 0.9.9'
16
17
  s.add_dependency 'eac_ruby_utils', '~> 0.68'
17
18
 
18
19
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRailsBase1
5
- VERSION = '0.1.2'
5
+ VERSION = '0.1.4'
6
6
  end
7
7
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.authors = ['Put here the authors']
11
11
  s.summary = 'Put here de description.'
12
12
 
13
- s.files = Dir['{lib}/**/*']
13
+ s.files = Dir['{lib,template}/**/*']
14
14
 
15
15
  s.add_dependency 'avm-eac_rails_base1', '~> 0.1'
16
16
  s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.2'
@@ -3,7 +3,7 @@
3
3
  require 'eac_ruby_utils/core_ext'
4
4
  require 'avm/eac_ubuntu_base0/instances/base'
5
5
  require 'avm/instances/docker_image'
6
- require 'avm/eac_redmine_base0/patches/object/template'
6
+ require 'eac_templates/core_ext'
7
7
 
8
8
  module Avm
9
9
  module EacRedmineBase0
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRedmineBase0
5
- VERSION = '0.3.0'
5
+ VERSION = '0.3.1'
6
6
  end
7
7
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.authors = ['Put here the authors']
11
11
  s.summary = 'Put here de description.'
12
12
 
13
- s.files = Dir['{lib}/**/*']
13
+ s.files = Dir['{lib,locale}/**/*']
14
14
 
15
15
  s.add_dependency 'avm', '~> 0.9'
16
16
  s.add_dependency 'avm-eac_generic_base0', '~> 0.1'
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.add_dependency 'avm', '~> 0.7'
16
16
  s.add_dependency 'eac_ruby_utils', '~> 0.77', '>= 0.77.1'
17
- s.add_dependency 'eac_templates', '~> 0.2'
17
+ s.add_dependency 'eac_templates', '~> 0.3'
18
18
 
19
19
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.4'
20
20
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/docker/image'
4
- require 'avm/eac_ubuntu_base0/patches/object/template'
4
+ require 'eac_templates/from_all_gems'
5
5
  require 'eac_ruby_utils/core_ext'
6
6
 
7
7
  module Avm
@@ -13,6 +13,10 @@ module Avm
13
13
 
14
14
  INSTANCE_ID = 'eac-ubuntu-base0_self'
15
15
 
16
+ runner_with :help, :subcommands do
17
+ subcommands
18
+ end
19
+
16
20
  private
17
21
 
18
22
  def instance_uncached
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacUbuntuBase0
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/eac_ubuntu_base0/runners/base'
4
+ require 'avm/eac_ubuntu_base0/runners/base/docker'
5
+
6
+ ::RSpec.describe ::Avm::EacUbuntuBase0::Runners::Base::Docker do
7
+ it do
8
+ expect { run_command('--registry-name', 'testing', '--image-name') }.not_to raise_error
9
+ end
10
+
11
+ def run_command(*argv)
12
+ ::Avm::EacUbuntuBase0::Runners::Base.run(argv: %w[docker] + argv)
13
+ end
14
+ end
@@ -10,10 +10,12 @@ Gem::Specification.new do |s|
10
10
  s.authors = ['Put here the authors']
11
11
  s.summary = 'Put here de description.'
12
12
 
13
- s.files = Dir['{lib}/**/*']
13
+ s.files = Dir['{lib,template}/**/*']
14
14
 
15
15
  s.add_dependency 'avm', '~> 0.1'
16
16
  s.add_dependency 'avm-eac_generic_base0', '~> 0.1'
17
+ s.add_dependency 'avm-eac_postgresql_base0', '~> 0.1'
18
+ s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.2.1'
17
19
  s.add_dependency 'eac_ruby_utils', '~> 0.68'
18
20
 
19
21
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
@@ -2,9 +2,8 @@
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
4
  require 'avm/jobs/base'
5
- require 'avm/patches/object/template'
6
5
  require 'avm/eac_ubuntu_base0/apache'
7
- require 'avm/patches/object/template'
6
+ require 'eac_templates/core_ext'
8
7
 
9
8
  module Avm
10
9
  module EacWebappBase0
@@ -3,8 +3,8 @@
3
3
  require 'active_support/callbacks'
4
4
  require 'avm/jobs/base'
5
5
  require 'avm/git'
6
- require 'avm/patches/object/template'
7
6
  require 'eac_ruby_utils/core_ext'
7
+ require 'eac_templates/core_ext'
8
8
  require 'avm/launcher/git/base'
9
9
  require 'net/http'
10
10
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/instances/base'
4
- require 'avm/postgresql/instance_with'
4
+ require 'avm/eac_postgresql_base0/instance_with'
5
5
  require 'avm/data/instance/files_unit'
6
6
  require 'avm/data/instance/package'
7
7
  require 'avm/eac_webapp_base0/deploy/file_unit'
@@ -10,7 +10,7 @@ module Avm
10
10
  module EacWebappBase0
11
11
  class Instance < ::Avm::Instances::Base
12
12
  require_sub __FILE__
13
- include ::Avm::Postgresql::InstanceWith
13
+ include ::Avm::EacPostgresqlBase0::InstanceWith
14
14
 
15
15
  FILES_UNITS = [].freeze
16
16
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacWebappBase0
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end