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.
- checksums.yaml +4 -4
- data/lib/avm/data/instance/files_unit.rb +1 -1
- data/lib/avm/eac_rails_base0/apache_host.rb +17 -0
- data/lib/avm/eac_rails_base0/apache_path.rb +50 -0
- data/lib/avm/eac_rails_base0/deploy.rb +51 -0
- data/lib/avm/eac_rails_base0/instance.rb +14 -0
- data/lib/avm/eac_redmine_base0/deploy.rb +4 -4
- data/lib/avm/eac_redmine_base0/instance.rb +6 -5
- data/lib/avm/eac_ubuntu_base0/apache.rb +26 -0
- data/lib/avm/eac_ubuntu_base0/apache/resource.rb +59 -0
- data/lib/avm/eac_ubuntu_base0/docker_image.rb +14 -0
- data/lib/avm/eac_webapp_base0/apache_host.rb +103 -0
- data/lib/avm/eac_webapp_base0/deploy.rb +102 -0
- data/lib/avm/eac_webapp_base0/deploy/appended_directories.rb +25 -0
- data/lib/avm/eac_webapp_base0/deploy/file_unit.rb +42 -0
- data/lib/avm/eac_webapp_base0/deploy/git_info.rb +49 -0
- data/lib/avm/eac_webapp_base0/deploy/version.rb +20 -0
- data/lib/avm/eac_webapp_base0/instance.rb +50 -0
- data/lib/avm/eac_webapp_base0/runner/apache_host.rb +39 -0
- data/lib/avm/eac_webapp_base0/runner/data.rb +25 -0
- data/lib/avm/eac_webapp_base0/runner/data/dump.rb +69 -0
- data/lib/avm/eac_webapp_base0/runner/data/load.rb +66 -0
- data/lib/avm/eac_webapp_base0/runner/deploy.rb +59 -0
- data/lib/avm/git/issue/complete/_git_subrepos.rb +1 -0
- data/lib/avm/instances/base/auto_values/filesystem.rb +3 -1
- data/lib/avm/instances/entries.rb +5 -8
- data/lib/avm/instances/entry.rb +47 -0
- data/lib/avm/instances/entry_keys.rb +2 -0
- data/lib/avm/self/instance.rb +1 -1
- data/lib/avm/stereotypes/eac_wordpress_base0/apache_host.rb +3 -3
- data/lib/avm/stereotypes/eac_wordpress_base0/deploy.rb +2 -2
- data/lib/avm/stereotypes/eac_wordpress_base0/instance.rb +2 -2
- data/lib/avm/tools/runner/eac_rails_base0.rb +9 -14
- data/lib/avm/tools/runner/eac_rails_base0/apache_host.rb +3 -26
- data/lib/avm/tools/runner/eac_rails_base0/apache_path.rb +38 -0
- data/lib/avm/tools/runner/eac_rails_base0/data.rb +2 -2
- data/lib/avm/tools/runner/eac_rails_base0/deploy.rb +3 -3
- data/lib/avm/tools/runner/eac_redmine_base0/data.rb +1 -1
- data/lib/avm/tools/runner/eac_redmine_base0/data/dump.rb +2 -2
- data/lib/avm/tools/runner/eac_redmine_base0/deploy.rb +2 -2
- data/lib/avm/tools/runner/eac_redmine_base0/project_rename.rb +1 -0
- data/lib/avm/tools/runner/eac_wordpress_base0/apache_host.rb +3 -25
- data/lib/avm/tools/runner/eac_wordpress_base0/data.rb +2 -2
- data/lib/avm/tools/runner/eac_wordpress_base0/deploy.rb +2 -2
- data/lib/avm/tools/runner/git/deploy.rb +3 -1
- data/lib/avm/tools/version.rb +1 -1
- data/template/avm/eac_rails_base0/apache_path/default.conf +13 -0
- data/template/avm/{stereotypes/eac_rails_base0 → eac_rails_base0}/deploy/config/database.yml.template +0 -0
- data/template/avm/{stereotypes/eac_webapp_base0 → eac_webapp_base0}/apache_host/no_ssl.conf +0 -0
- data/template/avm/self/docker_image/Dockerfile +1 -1
- data/vendor/eac_cli/Gemfile +5 -0
- data/vendor/eac_cli/eac_cli.gemspec +18 -0
- data/vendor/eac_cli/lib/eac_cli.rb +7 -0
- data/vendor/eac_cli/lib/eac_cli/core_ext.rb +4 -0
- data/vendor/eac_cli/lib/eac_cli/default_runner.rb +14 -0
- data/vendor/eac_cli/lib/eac_cli/definition.rb +72 -0
- data/vendor/eac_cli/lib/eac_cli/definition/argument_option.rb +13 -0
- data/vendor/eac_cli/lib/eac_cli/definition/base_option.rb +26 -0
- data/vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb +13 -0
- data/vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb +27 -0
- data/vendor/eac_cli/lib/eac_cli/docopt/doc_builder.rb +77 -0
- data/vendor/eac_cli/lib/eac_cli/docopt/runner_extension.rb +45 -0
- data/vendor/eac_cli/lib/eac_cli/parser.rb +14 -0
- data/vendor/eac_cli/lib/eac_cli/parser/collector.rb +56 -0
- data/vendor/eac_cli/lib/eac_cli/parser/error.rb +15 -0
- data/vendor/eac_cli/lib/eac_cli/parser/options_collection.rb +105 -0
- data/vendor/eac_cli/lib/eac_cli/parser/parse_result.rb +21 -0
- data/vendor/eac_cli/lib/eac_cli/parser/positional_collection.rb +49 -0
- data/vendor/eac_cli/lib/eac_cli/patches.rb +4 -0
- data/vendor/eac_cli/lib/eac_cli/patches/object.rb +5 -0
- data/vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb +24 -0
- data/vendor/eac_cli/lib/eac_cli/runner.rb +87 -0
- data/vendor/eac_cli/lib/eac_cli/runner/context.rb +18 -0
- data/vendor/eac_cli/lib/eac_cli/runner_with.rb +9 -0
- data/vendor/eac_cli/lib/eac_cli/runner_with/help.rb +19 -0
- data/vendor/eac_cli/lib/eac_cli/runner_with/output_file.rb +26 -0
- data/vendor/eac_cli/lib/eac_cli/version.rb +5 -0
- data/vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb +70 -0
- data/vendor/eac_cli/spec/rubocop_spec.rb +7 -0
- data/vendor/eac_cli/spec/spec_helper.rb +100 -0
- data/vendor/eac_git/lib/eac_git/version.rb +1 -1
- data/vendor/eac_git/vendor/git-subrepo/lib/git-subrepo +9 -7
- data/vendor/eac_ruby_base0/eac_ruby_base0.gemspec +3 -3
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +5 -1
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem.rb +10 -0
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem/version_file.rb +6 -5
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple.rb +5 -34
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/decorated_gem.rb +42 -0
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb +25 -0
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +1 -1
- data/vendor/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem/version_file_spec.rb +14 -0
- data/vendor/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem/version_file_spec_files/a_version_file.rb +7 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/common_concern.rb +4 -4
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner.rb +6 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb +1 -1
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_subcommands.rb +8 -2
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/inflector.rb +18 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/value.rb +3 -2
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string.rb +4 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb +9 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb +6 -2
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/struct.rb +53 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/inflector_spec.rb +15 -0
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/struct_spec.rb +46 -0
- metadata +66 -22
- data/lib/avm/instances/entries/entry_reader.rb +0 -45
- data/lib/avm/stereotypes/eac_rails_base0/apache_host.rb +0 -19
- data/lib/avm/stereotypes/eac_rails_base0/deploy.rb +0 -52
- data/lib/avm/stereotypes/eac_rails_base0/instance.rb +0 -16
- data/lib/avm/stereotypes/eac_ubuntu_base0/apache.rb +0 -27
- data/lib/avm/stereotypes/eac_ubuntu_base0/apache/site.rb +0 -61
- data/lib/avm/stereotypes/eac_ubuntu_base0/docker_image.rb +0 -16
- data/lib/avm/stereotypes/eac_webapp_base0/apache_host.rb +0 -97
- data/lib/avm/stereotypes/eac_webapp_base0/deploy.rb +0 -104
- data/lib/avm/stereotypes/eac_webapp_base0/deploy/appended_directories.rb +0 -27
- data/lib/avm/stereotypes/eac_webapp_base0/deploy/file_unit.rb +0 -43
- data/lib/avm/stereotypes/eac_webapp_base0/deploy/git_info.rb +0 -51
- data/lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb +0 -22
- data/lib/avm/stereotypes/eac_webapp_base0/instance.rb +0 -52
- data/lib/avm/stereotypes/eac_webapp_base0/runner/data.rb +0 -27
- data/lib/avm/stereotypes/eac_webapp_base0/runner/data/dump.rb +0 -71
- data/lib/avm/stereotypes/eac_webapp_base0/runner/data/load.rb +0 -68
- 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,
|
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
|
-
|
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
|
data/lib/avm/self/instance.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'avm/
|
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::
|
8
|
+
class ApacheHost < ::Avm::EacWebappBase0::ApacheHost
|
9
9
|
def document_root
|
10
|
-
instance.read_entry(
|
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/
|
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::
|
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/
|
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::
|
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/
|
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
|
-
|
13
|
+
runner_with
|
14
14
|
|
15
|
-
|
16
|
-
Utilities for EacRailsBase0 instances.
|
17
|
-
|
18
|
-
|
19
|
-
|
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::
|
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 '
|
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 < ::
|
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/
|
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::
|
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/
|
4
|
-
require 'avm/
|
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::
|
10
|
+
class Deploy < ::Avm::EacWebappBase0::Runner::Deploy
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'avm/
|
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::
|
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/
|
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::
|
10
|
+
class Deploy < ::Avm::EacWebappBase0::Runner::Deploy
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -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 < ::
|
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/
|
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::
|
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/
|
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::
|
10
|
+
class Deploy < ::Avm::EacWebappBase0::Runner::Deploy
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|