avm-tools 0.68.0 → 0.70.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avm/data/instance/files_unit.rb +1 -1
  3. data/lib/avm/eac_rails_base0/apache_host.rb +17 -0
  4. data/lib/avm/eac_rails_base0/apache_path.rb +50 -0
  5. data/lib/avm/eac_rails_base0/deploy.rb +51 -0
  6. data/lib/avm/eac_rails_base0/instance.rb +14 -0
  7. data/lib/avm/eac_redmine_base0/deploy.rb +4 -4
  8. data/lib/avm/eac_redmine_base0/instance.rb +6 -5
  9. data/lib/avm/eac_ubuntu_base0/apache.rb +26 -0
  10. data/lib/avm/eac_ubuntu_base0/apache/resource.rb +59 -0
  11. data/lib/avm/eac_ubuntu_base0/docker_image.rb +14 -0
  12. data/lib/avm/eac_webapp_base0/apache_host.rb +103 -0
  13. data/lib/avm/eac_webapp_base0/deploy.rb +102 -0
  14. data/lib/avm/eac_webapp_base0/deploy/appended_directories.rb +25 -0
  15. data/lib/avm/eac_webapp_base0/deploy/file_unit.rb +42 -0
  16. data/lib/avm/eac_webapp_base0/deploy/git_info.rb +49 -0
  17. data/lib/avm/eac_webapp_base0/deploy/version.rb +20 -0
  18. data/lib/avm/eac_webapp_base0/instance.rb +50 -0
  19. data/lib/avm/eac_webapp_base0/runner/apache_host.rb +39 -0
  20. data/lib/avm/eac_webapp_base0/runner/data.rb +25 -0
  21. data/lib/avm/eac_webapp_base0/runner/data/dump.rb +69 -0
  22. data/lib/avm/eac_webapp_base0/runner/data/load.rb +66 -0
  23. data/lib/avm/eac_webapp_base0/runner/deploy.rb +59 -0
  24. data/lib/avm/git/issue/complete/_git_subrepos.rb +1 -0
  25. data/lib/avm/instances/base/auto_values/filesystem.rb +3 -1
  26. data/lib/avm/instances/entries.rb +5 -8
  27. data/lib/avm/instances/entry.rb +47 -0
  28. data/lib/avm/instances/entry_keys.rb +2 -0
  29. data/lib/avm/self/instance.rb +1 -1
  30. data/lib/avm/stereotypes/eac_wordpress_base0/apache_host.rb +3 -3
  31. data/lib/avm/stereotypes/eac_wordpress_base0/deploy.rb +2 -2
  32. data/lib/avm/stereotypes/eac_wordpress_base0/instance.rb +2 -2
  33. data/lib/avm/tools/runner/eac_rails_base0.rb +9 -14
  34. data/lib/avm/tools/runner/eac_rails_base0/apache_host.rb +3 -26
  35. data/lib/avm/tools/runner/eac_rails_base0/apache_path.rb +38 -0
  36. data/lib/avm/tools/runner/eac_rails_base0/data.rb +2 -2
  37. data/lib/avm/tools/runner/eac_rails_base0/deploy.rb +3 -3
  38. data/lib/avm/tools/runner/eac_redmine_base0/data.rb +1 -1
  39. data/lib/avm/tools/runner/eac_redmine_base0/data/dump.rb +2 -2
  40. data/lib/avm/tools/runner/eac_redmine_base0/deploy.rb +2 -2
  41. data/lib/avm/tools/runner/eac_redmine_base0/project_rename.rb +1 -0
  42. data/lib/avm/tools/runner/eac_wordpress_base0/apache_host.rb +3 -25
  43. data/lib/avm/tools/runner/eac_wordpress_base0/data.rb +2 -2
  44. data/lib/avm/tools/runner/eac_wordpress_base0/deploy.rb +2 -2
  45. data/lib/avm/tools/runner/git/deploy.rb +3 -1
  46. data/lib/avm/tools/version.rb +1 -1
  47. data/template/avm/eac_rails_base0/apache_path/default.conf +13 -0
  48. data/template/avm/{stereotypes/eac_rails_base0 → eac_rails_base0}/deploy/config/database.yml.template +0 -0
  49. data/template/avm/{stereotypes/eac_webapp_base0 → eac_webapp_base0}/apache_host/no_ssl.conf +0 -0
  50. data/template/avm/self/docker_image/Dockerfile +1 -1
  51. data/vendor/eac_cli/Gemfile +5 -0
  52. data/vendor/eac_cli/eac_cli.gemspec +18 -0
  53. data/vendor/eac_cli/lib/eac_cli.rb +7 -0
  54. data/vendor/eac_cli/lib/eac_cli/core_ext.rb +4 -0
  55. data/vendor/eac_cli/lib/eac_cli/default_runner.rb +14 -0
  56. data/vendor/eac_cli/lib/eac_cli/definition.rb +72 -0
  57. data/vendor/eac_cli/lib/eac_cli/definition/argument_option.rb +13 -0
  58. data/vendor/eac_cli/lib/eac_cli/definition/base_option.rb +26 -0
  59. data/vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb +13 -0
  60. data/vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb +27 -0
  61. data/vendor/eac_cli/lib/eac_cli/docopt/doc_builder.rb +77 -0
  62. data/vendor/eac_cli/lib/eac_cli/docopt/runner_extension.rb +45 -0
  63. data/vendor/eac_cli/lib/eac_cli/parser.rb +14 -0
  64. data/vendor/eac_cli/lib/eac_cli/parser/collector.rb +56 -0
  65. data/vendor/eac_cli/lib/eac_cli/parser/error.rb +15 -0
  66. data/vendor/eac_cli/lib/eac_cli/parser/options_collection.rb +105 -0
  67. data/vendor/eac_cli/lib/eac_cli/parser/parse_result.rb +21 -0
  68. data/vendor/eac_cli/lib/eac_cli/parser/positional_collection.rb +49 -0
  69. data/vendor/eac_cli/lib/eac_cli/patches.rb +4 -0
  70. data/vendor/eac_cli/lib/eac_cli/patches/object.rb +5 -0
  71. data/vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb +24 -0
  72. data/vendor/eac_cli/lib/eac_cli/runner.rb +87 -0
  73. data/vendor/eac_cli/lib/eac_cli/runner/context.rb +18 -0
  74. data/vendor/eac_cli/lib/eac_cli/runner_with.rb +9 -0
  75. data/vendor/eac_cli/lib/eac_cli/runner_with/help.rb +19 -0
  76. data/vendor/eac_cli/lib/eac_cli/runner_with/output_file.rb +26 -0
  77. data/vendor/eac_cli/lib/eac_cli/version.rb +5 -0
  78. data/vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb +70 -0
  79. data/vendor/eac_cli/spec/rubocop_spec.rb +7 -0
  80. data/vendor/eac_cli/spec/spec_helper.rb +100 -0
  81. data/vendor/eac_git/lib/eac_git/version.rb +1 -1
  82. data/vendor/eac_git/vendor/git-subrepo/lib/git-subrepo +9 -7
  83. data/vendor/eac_ruby_base0/eac_ruby_base0.gemspec +3 -3
  84. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +5 -1
  85. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
  86. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem.rb +10 -0
  87. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem/version_file.rb +6 -5
  88. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple.rb +5 -34
  89. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/decorated_gem.rb +42 -0
  90. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb +25 -0
  91. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +1 -1
  92. data/vendor/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem/version_file_spec.rb +14 -0
  93. data/vendor/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem/version_file_spec_files/a_version_file.rb +7 -0
  94. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/common_concern.rb +4 -4
  95. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner.rb +6 -0
  96. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb +1 -1
  97. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_subcommands.rb +8 -2
  98. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/inflector.rb +18 -0
  99. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/value.rb +3 -2
  100. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string.rb +4 -0
  101. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb +9 -0
  102. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb +6 -2
  103. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/struct.rb +53 -0
  104. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  105. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/inflector_spec.rb +15 -0
  106. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/struct_spec.rb +46 -0
  107. metadata +66 -22
  108. data/lib/avm/instances/entries/entry_reader.rb +0 -45
  109. data/lib/avm/stereotypes/eac_rails_base0/apache_host.rb +0 -19
  110. data/lib/avm/stereotypes/eac_rails_base0/deploy.rb +0 -52
  111. data/lib/avm/stereotypes/eac_rails_base0/instance.rb +0 -16
  112. data/lib/avm/stereotypes/eac_ubuntu_base0/apache.rb +0 -27
  113. data/lib/avm/stereotypes/eac_ubuntu_base0/apache/site.rb +0 -61
  114. data/lib/avm/stereotypes/eac_ubuntu_base0/docker_image.rb +0 -16
  115. data/lib/avm/stereotypes/eac_webapp_base0/apache_host.rb +0 -97
  116. data/lib/avm/stereotypes/eac_webapp_base0/deploy.rb +0 -104
  117. data/lib/avm/stereotypes/eac_webapp_base0/deploy/appended_directories.rb +0 -27
  118. data/lib/avm/stereotypes/eac_webapp_base0/deploy/file_unit.rb +0 -43
  119. data/lib/avm/stereotypes/eac_webapp_base0/deploy/git_info.rb +0 -51
  120. data/lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb +0 -22
  121. data/lib/avm/stereotypes/eac_webapp_base0/instance.rb +0 -52
  122. data/lib/avm/stereotypes/eac_webapp_base0/runner/data.rb +0 -27
  123. data/lib/avm/stereotypes/eac_webapp_base0/runner/data/dump.rb +0 -71
  124. data/lib/avm/stereotypes/eac_webapp_base0/runner/data/load.rb +0 -68
  125. data/lib/avm/stereotypes/eac_webapp_base0/runner/deploy.rb +0 -61
@@ -10,6 +10,7 @@ module Avm
10
10
  def git_subrepos_result
11
11
  return ::Avm::Result.error('Unclean workspace') unless clean_workspace?
12
12
 
13
+ infom 'Checking Git subrepos...'
13
14
  r = ::Avm::Git::SubrepoChecks.new(::EacGit::Local.new(@git)).add_all_subrepos
14
15
  r.check_remote = true
15
16
  r.result
@@ -5,8 +5,10 @@ module Avm
5
5
  class Base
6
6
  module AutoValues
7
7
  module Filesystem
8
+ FS_PATH_KEY = :fs_path
9
+
8
10
  def auto_fs_path
9
- inherited_entry_value(:host_id, :fs_path) { |v| v + '/' + id }
11
+ inherited_entry_value(:host_id, FS_PATH_KEY) { |v| v + '/' + id }
10
12
  end
11
13
 
12
14
  def auto_data_fs_path
@@ -1,13 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
- require 'eac_ruby_utils/require_sub'
5
4
  require 'avm/configs'
6
- ::EacRubyUtils.require_sub(__FILE__)
5
+ require 'avm/instances/entry'
7
6
 
8
7
  module Avm
9
8
  module Instances
10
9
  module Entries
10
+ def entry(suffix, options = {})
11
+ ::Avm::Instances::Entry.new(self, suffix, options)
12
+ end
13
+
11
14
  def path_prefix
12
15
  @path_prefix ||= [id].freeze
13
16
  end
@@ -36,12 +39,6 @@ module Avm
36
39
  def other_entry_value(instance_id, entry_suffix)
37
40
  ::Avm::Instances::Base.by_id(instance_id).read_entry_optional(entry_suffix)
38
41
  end
39
-
40
- private
41
-
42
- def entry(suffix, options)
43
- ::Avm::Instances::Entries::EntryReader.new(self, suffix, options)
44
- end
45
42
  end
46
43
  end
47
44
  end
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module Instances
7
+ class Entry
8
+ common_constructor :parent, :suffix, :options
9
+
10
+ def auto_value
11
+ parent.respond_to?(auto_value_method, true) ? parent.send(auto_value_method) : nil
12
+ end
13
+
14
+ def auto_value_method
15
+ "auto_#{suffix.to_s.gsub('.', '_')}"
16
+ end
17
+
18
+ def full_path
19
+ (parent.path_prefix + suffix_as_array).join('.')
20
+ end
21
+
22
+ def optional_value
23
+ read(required: false, noinput: true) || auto_value
24
+ end
25
+
26
+ def read(extra_options = {})
27
+ ::Avm.configs.read_entry(full_path, options.merge(extra_options))
28
+ end
29
+
30
+ def suffix_as_array
31
+ if suffix.is_a?(::Array)
32
+ suffix.dup
33
+ else
34
+ ::EacRubyUtils::PathsHash.parse_entry_key(suffix.to_s)
35
+ end
36
+ end
37
+
38
+ def value
39
+ optional_value || read
40
+ end
41
+
42
+ def write(value)
43
+ ::Avm.configs.configs.write_entry(full_path, value)
44
+ end
45
+ end
46
+ end
47
+ end
@@ -12,6 +12,8 @@ module Avm
12
12
  const_set(key.gsub('.', '_').upcase, key)
13
13
  end
14
14
  end
15
+
16
+ FS_PATH = 'fs_path'
15
17
  end
16
18
  end
17
19
  end
@@ -3,7 +3,7 @@
3
3
  require 'avm/instances/base'
4
4
  require 'avm/self/docker_image'
5
5
  require 'avm/self/instance/entry_keys'
6
- require 'avm/stereotypes/eac_ubuntu_base0/docker_image'
6
+ require 'avm/eac_ubuntu_base0/docker_image'
7
7
 
8
8
  module Avm
9
9
  module Self
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/stereotypes/eac_webapp_base0/apache_host'
3
+ require 'avm/eac_webapp_base0/apache_host'
4
4
 
5
5
  module Avm
6
6
  module Stereotypes
7
7
  module EacWordpressBase0
8
- class ApacheHost < ::Avm::Stereotypes::EacWebappBase0::ApacheHost
8
+ class ApacheHost < ::Avm::EacWebappBase0::ApacheHost
9
9
  def document_root
10
- instance.read_entry(:fs_path)
10
+ instance.read_entry(::Avm::Instances::EntryKeys::FS_PATH)
11
11
  end
12
12
 
13
13
  def extra_content
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/stereotypes/eac_webapp_base0/deploy'
3
+ require 'avm/eac_webapp_base0/deploy'
4
4
 
5
5
  module Avm
6
6
  module Stereotypes
7
7
  module EacWordpressBase0
8
- class Deploy < ::Avm::Stereotypes::EacWebappBase0::Deploy
8
+ class Deploy < ::Avm::EacWebappBase0::Deploy
9
9
  end
10
10
  end
11
11
  end
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/instances/entry_keys'
4
- require 'avm/stereotypes/eac_webapp_base0/instance'
4
+ require 'avm/eac_webapp_base0/instance'
5
5
 
6
6
  module Avm
7
7
  module Stereotypes
8
8
  module EacWordpressBase0
9
- class Instance < ::Avm::Stereotypes::EacWebappBase0::Instance
9
+ class Instance < ::Avm::EacWebappBase0::Instance
10
10
  FILES_UNITS = { uploads: 'wp-content/uploads', themes: 'wp-content/themes' }.freeze
11
11
 
12
12
  def database_unit
@@ -1,32 +1,27 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'eac_cli/core_ext'
3
4
  require 'eac_ruby_utils/console/docopt_runner'
4
5
  require 'eac_ruby_utils/simple_cache'
5
- require 'avm/stereotypes/eac_rails_base0/instance'
6
- require 'eac_ruby_utils/require_sub'
6
+ require 'avm/eac_rails_base0/instance'
7
7
  ::EacRubyUtils.require_sub(__FILE__)
8
8
 
9
9
  module Avm
10
10
  module Tools
11
11
  class Runner < ::EacRubyUtils::Console::DocoptRunner
12
12
  class EacRailsBase0 < ::EacRubyUtils::Console::DocoptRunner
13
- include ::EacRubyUtils::SimpleCache
13
+ runner_with
14
14
 
15
- DOC = <<~DOCOPT
16
- Utilities for EacRailsBase0 instances.
17
-
18
- Usage:
19
- __PROGRAM__ [options] <instance_id> __SUBCOMMANDS__
20
- __PROGRAM__ -h | --help
21
-
22
- Options:
23
- -h --help Show this screen.
24
- DOCOPT
15
+ runner_definition do
16
+ desc 'Utilities for EacRailsBase0 instances.'
17
+ pos_arg :instance_id
18
+ subcommands
19
+ end
25
20
 
26
21
  private
27
22
 
28
23
  def instance_uncached
29
- ::Avm::Stereotypes::EacRailsBase0::Instance.by_id(options['<instance_id>'])
24
+ ::Avm::EacRailsBase0::Instance.by_id(options['<instance_id>'])
30
25
  end
31
26
  end
32
27
  end
@@ -1,37 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'avm/eac_webapp_base0/runner/apache_host'
3
4
  require 'eac_ruby_utils/console/docopt_runner'
4
- require 'eac_ruby_utils/console/speaker'
5
- require 'avm/stereotypes/eac_rails_base0/apache_host'
5
+ require 'avm/eac_rails_base0/apache_host'
6
6
 
7
7
  module Avm
8
8
  module Tools
9
9
  class Runner < ::EacRubyUtils::Console::DocoptRunner
10
10
  class EacRailsBase0 < ::EacRubyUtils::Console::DocoptRunner
11
- class ApacheHost < ::EacRubyUtils::Console::DocoptRunner
12
- include ::EacRubyUtils::Console::Speaker
13
-
14
- DOC = <<~DOCOPT
15
- Deploy for EacRailsBase0 instance.
16
-
17
- Usage:
18
- __PROGRAM__ [options]
19
- __PROGRAM__ -h | --help
20
-
21
- Options:
22
- -h --help Show this screen.
23
- DOCOPT
24
-
25
- def run
26
- result = ::Avm::Stereotypes::EacRailsBase0::ApacheHost.new(
27
- context(:instance)
28
- ).run
29
- if result.error?
30
- fatal_error result.to_s
31
- else
32
- infov 'Result', result.label
33
- end
34
- end
11
+ class ApacheHost < ::Avm::EacWebappBase0::Runner::ApacheHost
35
12
  end
36
13
  end
37
14
  end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_cli/core_ext'
4
+ require 'avm/eac_webapp_base0/runner/apache_host'
5
+ require 'eac_ruby_utils/console/docopt_runner'
6
+ require 'avm/eac_rails_base0/apache_path'
7
+
8
+ module Avm
9
+ module Tools
10
+ class Runner < ::EacRubyUtils::Console::DocoptRunner
11
+ class EacRailsBase0 < ::EacRubyUtils::Console::DocoptRunner
12
+ class ApachePath < ::EacRubyUtils::Console::DocoptRunner
13
+ runner_with
14
+
15
+ runner_definition do
16
+ desc 'Configure Apache path configuration for instance.'
17
+ end
18
+
19
+ def run
20
+ if result.error?
21
+ fatal_error result.to_s
22
+ else
23
+ infov 'Result', result.label
24
+ end
25
+ end
26
+
27
+ def apache_path_uncached
28
+ ::Avm::EacRailsBase0::ApachePath.new(context(:instance))
29
+ end
30
+
31
+ def result_uncached
32
+ apache_path.run
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/stereotypes/eac_webapp_base0/runner/data'
3
+ require 'avm/eac_webapp_base0/runner/data'
4
4
  require 'eac_ruby_utils/console/docopt_runner'
5
5
 
6
6
  module Avm
7
7
  module Tools
8
8
  class Runner < ::EacRubyUtils::Console::DocoptRunner
9
9
  class EacRailsBase0 < ::EacRubyUtils::Console::DocoptRunner
10
- class Data < ::Avm::Stereotypes::EacWebappBase0::Runner::Data
10
+ class Data < ::Avm::EacWebappBase0::Runner::Data
11
11
  end
12
12
  end
13
13
  end
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/stereotypes/eac_rails_base0/deploy'
4
- require 'avm/stereotypes/eac_webapp_base0/runner/deploy'
3
+ require 'avm/eac_rails_base0/deploy'
4
+ require 'avm/eac_webapp_base0/runner/deploy'
5
5
 
6
6
  module Avm
7
7
  module Tools
8
8
  class Runner < ::EacRubyUtils::Console::DocoptRunner
9
9
  class EacRailsBase0 < ::EacRubyUtils::Console::DocoptRunner
10
- class Deploy < ::Avm::Stereotypes::EacWebappBase0::Runner::Deploy
10
+ class Deploy < ::Avm::EacWebappBase0::Runner::Deploy
11
11
  end
12
12
  end
13
13
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/stereotypes/eac_webapp_base0/runner/data'
3
+ require 'avm/eac_webapp_base0/runner/data'
4
4
  require 'eac_ruby_utils/console/docopt_runner'
5
5
 
6
6
  module Avm
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/stereotypes/eac_webapp_base0/runner/data/dump'
3
+ require 'avm/eac_webapp_base0/runner/data/dump'
4
4
 
5
5
  module Avm
6
6
  module Tools
7
7
  class Runner < ::EacRubyUtils::Console::DocoptRunner
8
8
  class EacRedmineBase0 < ::EacRubyUtils::Console::DocoptRunner
9
9
  class Data < ::EacRubyUtils::Console::DocoptRunner
10
- class Dump < ::Avm::Stereotypes::EacWebappBase0::Runner::Data::Dump
10
+ class Dump < ::Avm::EacWebappBase0::Runner::Data::Dump
11
11
  end
12
12
  end
13
13
  end
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/eac_redmine_base0/deploy'
4
- require 'avm/stereotypes/eac_webapp_base0/runner/deploy'
4
+ require 'avm/eac_webapp_base0/runner/deploy'
5
5
 
6
6
  module Avm
7
7
  module Tools
8
8
  class Runner < ::EacRubyUtils::Console::DocoptRunner
9
9
  class EacRedmineBase0 < ::EacRubyUtils::Console::DocoptRunner
10
- class Deploy < ::Avm::Stereotypes::EacWebappBase0::Runner::Deploy
10
+ class Deploy < ::Avm::EacWebappBase0::Runner::Deploy
11
11
  end
12
12
  end
13
13
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'avm/rails/runners/runner'
3
4
  require 'eac_cli/default_runner'
4
5
 
5
6
  module Avm
@@ -1,37 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'avm/eac_webapp_base0/runner/apache_host'
4
+ require 'eac_cli/default_runner'
3
5
  require 'eac_ruby_utils/console/docopt_runner'
4
- require 'eac_ruby_utils/console/speaker'
5
6
  require 'avm/stereotypes/eac_wordpress_base0/apache_host'
6
7
 
7
8
  module Avm
8
9
  module Tools
9
10
  class Runner < ::EacRubyUtils::Console::DocoptRunner
10
11
  class EacWordpressBase0 < ::EacRubyUtils::Console::DocoptRunner
11
- class ApacheHost < ::EacRubyUtils::Console::DocoptRunner
12
- include ::EacRubyUtils::Console::Speaker
13
-
14
- DOC = <<~DOCOPT
15
- Configure Apache virtual host for EacWordpressBase0 instance.
16
-
17
- Usage:
18
- __PROGRAM__ [options]
19
- __PROGRAM__ -h | --help
20
-
21
- Options:
22
- -h --help Show this screen.
23
- DOCOPT
24
-
25
- def run
26
- result = ::Avm::Stereotypes::EacWordpressBase0::ApacheHost.new(
27
- context(:instance)
28
- ).run
29
- if result.error?
30
- fatal_error result.to_s
31
- else
32
- infov 'Result', result.label
33
- end
34
- end
12
+ class ApacheHost < ::Avm::EacWebappBase0::Runner::ApacheHost
35
13
  end
36
14
  end
37
15
  end
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/stereotypes/eac_webapp_base0/runner/data'
3
+ require 'avm/eac_webapp_base0/runner/data'
4
4
  require 'eac_ruby_utils/console/docopt_runner'
5
5
 
6
6
  module Avm
7
7
  module Tools
8
8
  class Runner < ::EacRubyUtils::Console::DocoptRunner
9
9
  class EacWordpressBase0 < ::EacRubyUtils::Console::DocoptRunner
10
- class Data < ::Avm::Stereotypes::EacWebappBase0::Runner::Data
10
+ class Data < ::Avm::EacWebappBase0::Runner::Data
11
11
  end
12
12
  end
13
13
  end
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/stereotypes/eac_webapp_base0/runner/deploy'
3
+ require 'avm/eac_webapp_base0/runner/deploy'
4
4
  require 'avm/stereotypes/eac_wordpress_base0/deploy'
5
5
 
6
6
  module Avm
7
7
  module Tools
8
8
  class Runner < ::EacRubyUtils::Console::DocoptRunner
9
9
  class EacWordpressBase0 < ::EacRubyUtils::Console::DocoptRunner
10
- class Deploy < ::Avm::Stereotypes::EacWebappBase0::Runner::Deploy
10
+ class Deploy < ::Avm::EacWebappBase0::Runner::Deploy
11
11
  end
12
12
  end
13
13
  end