eac_tools 0.12.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +46 -34
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm/avm.gemspec +2 -2
- data/sub/avm/lib/avm/applications/base.rb +2 -2
- data/sub/avm/lib/avm/entries/auto_values/entry.rb +32 -0
- data/sub/avm/lib/avm/entries/auto_values.rb +11 -0
- data/sub/avm/lib/avm/{instances/entries.rb → entries/base.rb} +9 -5
- data/sub/avm/lib/avm/{instances → entries}/entry.rb +3 -12
- data/sub/avm/lib/avm/entries.rb +9 -0
- data/sub/avm/lib/avm/instances/base/auto_values/admin.rb +2 -2
- data/sub/avm/lib/avm/instances/base/auto_values/database.rb +1 -1
- data/sub/avm/lib/avm/instances/base/auto_values/filesystem.rb +9 -8
- data/sub/avm/lib/avm/instances/base/auto_values/install.rb +48 -0
- data/sub/avm/lib/avm/instances/base/auto_values/mailer.rb +5 -4
- data/sub/avm/lib/avm/instances/base/auto_values/ruby.rb +1 -1
- data/sub/avm/lib/avm/instances/base/auto_values/system.rb +3 -3
- data/sub/avm/lib/avm/instances/base/auto_values.rb +4 -5
- data/sub/avm/lib/avm/instances/base.rb +10 -10
- data/sub/avm/lib/avm/instances/entry_keys.rb +8 -7
- data/sub/avm/lib/avm/instances.rb +3 -2
- data/sub/avm/lib/avm/scms/base.rb +2 -2
- data/sub/avm/lib/avm/source_generators/base.rb +2 -2
- data/sub/avm/lib/avm/sources/base.rb +4 -4
- data/sub/avm/lib/avm/version.rb +1 -1
- data/sub/avm/lib/avm/with/application_stereotype.rb +35 -0
- data/sub/avm/lib/avm/with/extra_subcommands.rb +44 -0
- data/sub/avm/spec/lib/avm/instances/base_spec.rb +50 -50
- data/sub/avm/spec/lib/avm/instances/base_spec_configs_storage.yml +5 -3
- data/sub/avm-eac_asciidoctor_base0/Gemfile +8 -0
- data/sub/{avm-tools/sub/avm-eac_asciidoctor_base0 → avm-eac_asciidoctor_base0}/avm-eac_asciidoctor_base0.gemspec +0 -0
- data/sub/{avm-tools/sub/avm-eac_asciidoctor_base0 → avm-eac_asciidoctor_base0}/lib/avm/eac_asciidoctor_base0/apache_host.rb +0 -0
- data/sub/{avm-tools/sub/avm-eac_asciidoctor_base0 → avm-eac_asciidoctor_base0}/lib/avm/eac_asciidoctor_base0/apache_path.rb +0 -0
- data/sub/{avm-tools/sub/avm-eac_asciidoctor_base0 → avm-eac_asciidoctor_base0}/lib/avm/eac_asciidoctor_base0/deploy.rb +0 -0
- data/sub/{avm-tools/sub/avm-eac_asciidoctor_base0 → avm-eac_asciidoctor_base0}/lib/avm/eac_asciidoctor_base0/instance.rb +0 -0
- data/sub/{avm-tools/lib/avm/tools/runner/eac_asciidoctor_base0.rb → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/runners/base.rb} +3 -4
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/runners.rb +11 -0
- data/sub/{avm-tools/sub/avm-eac_asciidoctor_base0 → avm-eac_asciidoctor_base0}/lib/avm/eac_asciidoctor_base0/sources/base.rb +0 -0
- data/sub/{avm-tools/sub/avm-eac_asciidoctor_base0 → avm-eac_asciidoctor_base0}/lib/avm/eac_asciidoctor_base0/sources/build/file.rb +0 -0
- data/sub/{avm-tools/sub/avm-eac_asciidoctor_base0 → avm-eac_asciidoctor_base0}/lib/avm/eac_asciidoctor_base0/sources/build.rb +0 -0
- data/sub/{avm-tools/sub/avm-eac_asciidoctor_base0 → avm-eac_asciidoctor_base0}/lib/avm/eac_asciidoctor_base0/sources/runner/build.rb +0 -0
- data/sub/{avm-tools/sub/avm-eac_asciidoctor_base0 → avm-eac_asciidoctor_base0}/lib/avm/eac_asciidoctor_base0/sources/runner.rb +0 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/build.rb +54 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners.rb +13 -0
- data/sub/{avm-tools/sub/avm-eac_asciidoctor_base0 → avm-eac_asciidoctor_base0}/lib/avm/eac_asciidoctor_base0/sources.rb +0 -0
- data/sub/{avm-tools/sub/avm-eac_asciidoctor_base0 → avm-eac_asciidoctor_base0}/lib/avm/eac_asciidoctor_base0/version.rb +1 -1
- data/sub/{avm-tools/sub/avm-eac_asciidoctor_base0 → avm-eac_asciidoctor_base0}/lib/avm/eac_asciidoctor_base0.rb +0 -0
- data/sub/{avm-tools/sub/avm-eac_asciidoctor_base0 → avm-eac_asciidoctor_base0}/spec/lib/avm/eac_asciidoctor_base0/sources/base_spec.rb +0 -0
- data/sub/{avm-tools/sub/avm-eac_asciidoctor_base0 → avm-eac_asciidoctor_base0}/spec/rubocop_spec.rb +0 -0
- data/sub/{avm-tools/sub/avm-eac_asciidoctor_base0 → avm-eac_asciidoctor_base0}/spec/spec_helper.rb +0 -0
- data/sub/avm-eac_rails_base0/avm-eac_rails_base0.gemspec +3 -3
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/version.rb +1 -1
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/spec/{ruby_style_spec.rb → code/rubocop_spec.rb} +0 -0
- data/sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec +3 -2
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/systemd_unit.rb +1 -1
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/version.rb +1 -1
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/add_or_replace_gem_line.rb +62 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/dependency.rb +19 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec.rb +42 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
- data/sub/avm-eac_webapp_base0/Gemfile +8 -0
- data/sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec +22 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/apache_host.rb +78 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/apache_path.rb +51 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/appended_directories.rb +25 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/build.rb +48 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/file_unit.rb +42 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/git_info.rb +62 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/version.rb +24 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/write_on_target.rb +18 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy.rb +73 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instance/subcommand_parent.rb +24 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instance.rb +62 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_host.rb +35 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb +40 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/data/dump.rb +63 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/data/load.rb +55 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/data.rb +17 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/deploy.rb +39 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner.rb +12 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/sources/base.rb +15 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/sources.rb +11 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +7 -0
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0.rb +9 -0
- data/sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/sources/base_spec.rb +7 -0
- data/sub/avm-eac_webapp_base0/spec/rubocop_spec.rb +3 -0
- data/sub/avm-eac_webapp_base0/spec/spec_helper.rb +4 -0
- data/sub/avm-eac_webapp_base0/template/avm/eac_webapp_base0/apache_host/no_ssl.conf +11 -0
- data/sub/avm-eac_webapp_base0/template/avm/eac_webapp_base0/apache_path/default.conf +9 -0
- data/sub/avm-tools/avm-tools.gemspec +0 -1
- data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
- data/sub/eac_config/eac_config.gemspec +1 -1
- data/sub/eac_config/lib/eac_config/entry_path.rb +15 -4
- data/sub/eac_config/lib/eac_config/version.rb +1 -1
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/regexp_parser.rb +5 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- metadata +112 -42
- data/sub/avm/lib/avm/instances/base/auto_values/access.rb +0 -40
- data/sub/avm/lib/avm/with_application_stereotype.rb +0 -33
- data/sub/avm/lib/avm/with_dynamic_runners.rb +0 -42
- data/sub/avm-tools/lib/avm/tools/runner/app_src/eac_asciidoctor_base0/build.rb +0 -56
- data/sub/avm-tools/lib/avm/tools/runner/app_src/eac_asciidoctor_base0.rb +0 -14
- data/sub/avm-tools/sub/avm-eac_asciidoctor_base0/Gemfile +0 -5
@@ -0,0 +1,55 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'active_support/core_ext/numeric/time'
|
4
|
+
require 'eac_cli/speaker'
|
5
|
+
require 'eac_ruby_utils/simple_cache'
|
6
|
+
|
7
|
+
module Avm
|
8
|
+
module EacWebappBase0
|
9
|
+
class Runner < ::Avm::Instances::Runner
|
10
|
+
class Data
|
11
|
+
class Load
|
12
|
+
runner_with :help do
|
13
|
+
desc 'Load utility for EacRailsBase instance.'
|
14
|
+
arg_opt '-S', '--source-instance', 'Informa a instância a ser extraída o dump.'
|
15
|
+
pos_arg :dump_path, optional: true
|
16
|
+
end
|
17
|
+
|
18
|
+
def run
|
19
|
+
return ::Dev::Result.error("Dump \"#{dump_path}\" does not exist") unless
|
20
|
+
::File.exist?(dump_path)
|
21
|
+
|
22
|
+
load_dump
|
23
|
+
success("Dump loaded from \"#{dump_path}\"")
|
24
|
+
end
|
25
|
+
|
26
|
+
def dump_path_uncached
|
27
|
+
return parsed.dump_path.to_s if parsed.dump_path.present?
|
28
|
+
return source_instance_dump_path if parsed.source_instance.present?
|
29
|
+
|
30
|
+
raise "Dump path unknown (Options: #{parsed})"
|
31
|
+
end
|
32
|
+
|
33
|
+
def source_instance_dump_path
|
34
|
+
runner_context.call(:instance).class.by_id(parsed.source_instance).data_dump
|
35
|
+
end
|
36
|
+
|
37
|
+
def load_dump
|
38
|
+
info "Loading dump \"#{dump_path}\"..."
|
39
|
+
package_load.run
|
40
|
+
end
|
41
|
+
|
42
|
+
def dump_instance_method
|
43
|
+
:dump_database
|
44
|
+
end
|
45
|
+
|
46
|
+
private
|
47
|
+
|
48
|
+
def package_load_uncached
|
49
|
+
runner_context.call(:instance).data_package.load(dump_path)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_cli/core_ext'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module EacWebappBase0
|
7
|
+
class Runner < ::Avm::Instances::Runner
|
8
|
+
class Data
|
9
|
+
require_sub __FILE__
|
10
|
+
runner_with :help, :subcommands do
|
11
|
+
desc 'Data utilities for EacRailsBase0 instances.'
|
12
|
+
subcommands
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/instances/runner'
|
4
|
+
require 'avm/path_string'
|
5
|
+
require 'eac_cli/core_ext'
|
6
|
+
|
7
|
+
module Avm
|
8
|
+
module EacWebappBase0
|
9
|
+
class Runner < ::Avm::Instances::Runner
|
10
|
+
class Deploy
|
11
|
+
runner_with :help do
|
12
|
+
desc 'Deploy for instance.'
|
13
|
+
arg_opt '-r', '--reference', 'Git reference to deploy.'
|
14
|
+
arg_opt '-a', '--append-dirs', 'Append directories to deploy (List separated by ":").'
|
15
|
+
bool_opt '-T', '--no-request-test', 'Do not test web interface after deploy.'
|
16
|
+
end
|
17
|
+
|
18
|
+
def deploy_class
|
19
|
+
runner_context.call(:stereotype_module).const_get('Deploy')
|
20
|
+
end
|
21
|
+
|
22
|
+
def run
|
23
|
+
result = deploy_class.new(runner_context.call(:instance), deploy_options).run
|
24
|
+
if result.error?
|
25
|
+
fatal_error result.to_s
|
26
|
+
else
|
27
|
+
infov 'Result', result.label
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def deploy_options
|
32
|
+
{ reference: parsed.reference,
|
33
|
+
appended_directories: ::Avm::PathString.paths(parsed.append_dirs),
|
34
|
+
no_request_test: parsed.no_request_test? }
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -16,7 +16,6 @@ Gem::Specification.new do |s|
|
|
16
16
|
|
17
17
|
s.add_dependency 'aranha-parsers', '~> 0.4'
|
18
18
|
s.add_dependency 'avm', '~> 0.30'
|
19
|
-
s.add_dependency 'avm-eac_asciidoctor_base0', '~> 0.3', '>= 0.3.4'
|
20
19
|
s.add_dependency 'avm-eac_ruby_base1', '~> 0.8'
|
21
20
|
s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.3'
|
22
21
|
s.add_dependency 'avm-files', '~> 0.1'
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.files = Dir['{lib}/**/*']
|
14
14
|
|
15
15
|
s.add_dependency 'addressable'
|
16
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.
|
16
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.97'
|
17
17
|
|
18
18
|
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
|
19
19
|
end
|
@@ -28,17 +28,28 @@ module EacConfig
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
|
32
|
-
|
33
|
-
def initialize(parts)
|
34
|
-
@parts = parts.to_a.freeze
|
31
|
+
common_constructor :parts, default: [[]] do
|
32
|
+
self.parts = ::Array.new(parts).freeze
|
35
33
|
end
|
36
34
|
|
35
|
+
compare_by :parts
|
36
|
+
delegate :any?, :count, :each, :each_value, :each_with_index, :empty?, :fetch, :first, :index,
|
37
|
+
:inject, :last, :map, :size, to: :parts
|
38
|
+
|
37
39
|
# @return [EacConfig::EntryPath]
|
38
40
|
def +(other)
|
39
41
|
self.class.new(parts + self.class.assert(other).parts)
|
40
42
|
end
|
41
43
|
|
44
|
+
def [](*args)
|
45
|
+
slice(*args)
|
46
|
+
end
|
47
|
+
|
48
|
+
def slice(*args)
|
49
|
+
r = parts.slice(*args)
|
50
|
+
r.is_a?(::Enumerable) ? self.class.new(r) : r
|
51
|
+
end
|
52
|
+
|
42
53
|
def to_s
|
43
54
|
"#{self.class}[#{parts.join(PART_SEPARATOR)}]"
|
44
55
|
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: avm-eac_asciidoctor_base0
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.4'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.4'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: avm-eac_generic_base0
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -31,6 +45,9 @@ dependencies:
|
|
31
45
|
- - "~>"
|
32
46
|
- !ruby/object:Gem::Version
|
33
47
|
version: '0.6'
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 0.6.1
|
34
51
|
type: :runtime
|
35
52
|
prerelease: false
|
36
53
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -38,6 +55,9 @@ dependencies:
|
|
38
55
|
- - "~>"
|
39
56
|
- !ruby/object:Gem::Version
|
40
57
|
version: '0.6'
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 0.6.1
|
41
61
|
- !ruby/object:Gem::Dependency
|
42
62
|
name: avm-eac_rails_base1
|
43
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -47,7 +67,7 @@ dependencies:
|
|
47
67
|
version: '0.4'
|
48
68
|
- - ">="
|
49
69
|
- !ruby/object:Gem::Version
|
50
|
-
version: 0.4.
|
70
|
+
version: 0.4.2
|
51
71
|
type: :runtime
|
52
72
|
prerelease: false
|
53
73
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,7 +77,7 @@ dependencies:
|
|
57
77
|
version: '0.4'
|
58
78
|
- - ">="
|
59
79
|
- !ruby/object:Gem::Version
|
60
|
-
version: 0.4.
|
80
|
+
version: 0.4.2
|
61
81
|
- !ruby/object:Gem::Dependency
|
62
82
|
name: avm-eac_redmine_base0
|
63
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,48 +112,62 @@ dependencies:
|
|
92
112
|
requirements:
|
93
113
|
- - "~>"
|
94
114
|
- !ruby/object:Gem::Version
|
95
|
-
version: '0.
|
115
|
+
version: '0.12'
|
96
116
|
type: :runtime
|
97
117
|
prerelease: false
|
98
118
|
version_requirements: !ruby/object:Gem::Requirement
|
99
119
|
requirements:
|
100
120
|
- - "~>"
|
101
121
|
- !ruby/object:Gem::Version
|
102
|
-
version: '0.
|
122
|
+
version: '0.12'
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: avm-eac_webapp_base0
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0.3'
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 0.3.1
|
133
|
+
type: :runtime
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0.3'
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 0.3.1
|
103
143
|
- !ruby/object:Gem::Dependency
|
104
144
|
name: avm-tools
|
105
145
|
requirement: !ruby/object:Gem::Requirement
|
106
146
|
requirements:
|
107
147
|
- - "~>"
|
108
148
|
- !ruby/object:Gem::Version
|
109
|
-
version: '0.
|
149
|
+
version: '0.128'
|
110
150
|
type: :runtime
|
111
151
|
prerelease: false
|
112
152
|
version_requirements: !ruby/object:Gem::Requirement
|
113
153
|
requirements:
|
114
154
|
- - "~>"
|
115
155
|
- !ruby/object:Gem::Version
|
116
|
-
version: '0.
|
156
|
+
version: '0.128'
|
117
157
|
- !ruby/object:Gem::Dependency
|
118
158
|
name: eac_ruby_utils
|
119
159
|
requirement: !ruby/object:Gem::Requirement
|
120
160
|
requirements:
|
121
161
|
- - "~>"
|
122
162
|
- !ruby/object:Gem::Version
|
123
|
-
version: '0.
|
124
|
-
- - ">="
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
version: 0.96.1
|
163
|
+
version: '0.97'
|
127
164
|
type: :runtime
|
128
165
|
prerelease: false
|
129
166
|
version_requirements: !ruby/object:Gem::Requirement
|
130
167
|
requirements:
|
131
168
|
- - "~>"
|
132
169
|
- !ruby/object:Gem::Version
|
133
|
-
version: '0.
|
134
|
-
- - ">="
|
135
|
-
- !ruby/object:Gem::Version
|
136
|
-
version: 0.96.1
|
170
|
+
version: '0.97'
|
137
171
|
- !ruby/object:Gem::Dependency
|
138
172
|
name: eac_ruby_gem_support
|
139
173
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,6 +192,27 @@ files:
|
|
158
192
|
- Gemfile.lock
|
159
193
|
- lib/eac_tools.rb
|
160
194
|
- lib/eac_tools/version.rb
|
195
|
+
- sub/avm-eac_asciidoctor_base0/Gemfile
|
196
|
+
- sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec
|
197
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0.rb
|
198
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/apache_host.rb
|
199
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/apache_path.rb
|
200
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/deploy.rb
|
201
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instance.rb
|
202
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/runners.rb
|
203
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/runners/base.rb
|
204
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources.rb
|
205
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base.rb
|
206
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/build.rb
|
207
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/build/file.rb
|
208
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runner.rb
|
209
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runner/build.rb
|
210
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners.rb
|
211
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/build.rb
|
212
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/version.rb
|
213
|
+
- sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/sources/base_spec.rb
|
214
|
+
- sub/avm-eac_asciidoctor_base0/spec/rubocop_spec.rb
|
215
|
+
- sub/avm-eac_asciidoctor_base0/spec/spec_helper.rb
|
161
216
|
- sub/avm-eac_generic_base0/Gemfile
|
162
217
|
- sub/avm-eac_generic_base0/avm-eac_generic_base0.gemspec
|
163
218
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0.rb
|
@@ -218,7 +273,7 @@ files:
|
|
218
273
|
- sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/lib/ability.rb
|
219
274
|
- sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/lib/ability_mapping.rb
|
220
275
|
- sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/public/favicon.ico
|
221
|
-
- sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/spec/
|
276
|
+
- sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/spec/code/rubocop_spec.rb
|
222
277
|
- sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/spec/spec_helper.rb
|
223
278
|
- sub/avm-eac_rails_base1/Gemfile
|
224
279
|
- sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec
|
@@ -304,6 +359,9 @@ files:
|
|
304
359
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/envvar.rb
|
305
360
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/gemfile.rb
|
306
361
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems.rb
|
362
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec.rb
|
363
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/add_or_replace_gem_line.rb
|
364
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/dependency.rb
|
307
365
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/version_file.rb
|
308
366
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources.rb
|
309
367
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base.rb
|
@@ -344,6 +402,35 @@ files:
|
|
344
402
|
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base_spec.rb
|
345
403
|
- sub/avm-eac_ruby_base1/spec/rubocop_spec.rb
|
346
404
|
- sub/avm-eac_ruby_base1/spec/spec_helper.rb
|
405
|
+
- sub/avm-eac_webapp_base0/Gemfile
|
406
|
+
- sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec
|
407
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0.rb
|
408
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/apache_host.rb
|
409
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/apache_path.rb
|
410
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy.rb
|
411
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/appended_directories.rb
|
412
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/build.rb
|
413
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/file_unit.rb
|
414
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/git_info.rb
|
415
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/version.rb
|
416
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy/write_on_target.rb
|
417
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instance.rb
|
418
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instance/subcommand_parent.rb
|
419
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner.rb
|
420
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_host.rb
|
421
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
|
422
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/data.rb
|
423
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/data/dump.rb
|
424
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/data/load.rb
|
425
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/deploy.rb
|
426
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/sources.rb
|
427
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/sources/base.rb
|
428
|
+
- sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb
|
429
|
+
- sub/avm-eac_webapp_base0/spec/lib/avm/eac_webapp_base0/sources/base_spec.rb
|
430
|
+
- sub/avm-eac_webapp_base0/spec/rubocop_spec.rb
|
431
|
+
- sub/avm-eac_webapp_base0/spec/spec_helper.rb
|
432
|
+
- sub/avm-eac_webapp_base0/template/avm/eac_webapp_base0/apache_host/no_ssl.conf
|
433
|
+
- sub/avm-eac_webapp_base0/template/avm/eac_webapp_base0/apache_path/default.conf
|
347
434
|
- sub/avm-tools/Gemfile
|
348
435
|
- sub/avm-tools/README.textile
|
349
436
|
- sub/avm-tools/avm-tools.gemspec
|
@@ -436,8 +523,6 @@ files:
|
|
436
523
|
- sub/avm-tools/lib/avm/tools/core_ext.rb
|
437
524
|
- sub/avm-tools/lib/avm/tools/runner.rb
|
438
525
|
- sub/avm-tools/lib/avm/tools/runner/app_src.rb
|
439
|
-
- sub/avm-tools/lib/avm/tools/runner/app_src/eac_asciidoctor_base0.rb
|
440
|
-
- sub/avm-tools/lib/avm/tools/runner/app_src/eac_asciidoctor_base0/build.rb
|
441
526
|
- sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0.rb
|
442
527
|
- sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0/build_chapters.rb
|
443
528
|
- sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0/build_single.rb
|
@@ -458,7 +543,6 @@ files:
|
|
458
543
|
- sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
|
459
544
|
- sub/avm-tools/lib/avm/tools/runner/config.rb
|
460
545
|
- sub/avm-tools/lib/avm/tools/runner/config/load_path.rb
|
461
|
-
- sub/avm-tools/lib/avm/tools/runner/eac_asciidoctor_base0.rb
|
462
546
|
- sub/avm-tools/lib/avm/tools/runner/eac_webapp_base0.rb
|
463
547
|
- sub/avm-tools/lib/avm/tools/runner/eac_wordpress_base0.rb
|
464
548
|
- sub/avm-tools/lib/avm/tools/runner/eac_writings_base0.rb
|
@@ -578,23 +662,6 @@ files:
|
|
578
662
|
- sub/avm-tools/spec/spec_helper/stub_templates/stubbed_docker_server/id_rsa.pub
|
579
663
|
- sub/avm-tools/spec/spec_helper/stubbed_docker_server.rb
|
580
664
|
- sub/avm-tools/spec/spec_helper/templates.rb
|
581
|
-
- sub/avm-tools/sub/avm-eac_asciidoctor_base0/Gemfile
|
582
|
-
- sub/avm-tools/sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec
|
583
|
-
- sub/avm-tools/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0.rb
|
584
|
-
- sub/avm-tools/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/apache_host.rb
|
585
|
-
- sub/avm-tools/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/apache_path.rb
|
586
|
-
- sub/avm-tools/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/deploy.rb
|
587
|
-
- sub/avm-tools/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instance.rb
|
588
|
-
- sub/avm-tools/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources.rb
|
589
|
-
- sub/avm-tools/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base.rb
|
590
|
-
- sub/avm-tools/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/build.rb
|
591
|
-
- sub/avm-tools/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/build/file.rb
|
592
|
-
- sub/avm-tools/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runner.rb
|
593
|
-
- sub/avm-tools/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runner/build.rb
|
594
|
-
- sub/avm-tools/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/version.rb
|
595
|
-
- sub/avm-tools/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/sources/base_spec.rb
|
596
|
-
- sub/avm-tools/sub/avm-eac_asciidoctor_base0/spec/rubocop_spec.rb
|
597
|
-
- sub/avm-tools/sub/avm-eac_asciidoctor_base0/spec/spec_helper.rb
|
598
665
|
- sub/avm-tools/sub/avm-eac_postgresql_base0/Gemfile
|
599
666
|
- sub/avm-tools/sub/avm-eac_postgresql_base0/avm-eac_postgresql_base0.gemspec
|
600
667
|
- sub/avm-tools/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0.rb
|
@@ -1022,15 +1089,20 @@ files:
|
|
1022
1089
|
- sub/avm/lib/avm/docker/container.rb
|
1023
1090
|
- sub/avm/lib/avm/docker/image.rb
|
1024
1091
|
- sub/avm/lib/avm/docker/runner.rb
|
1092
|
+
- sub/avm/lib/avm/entries.rb
|
1093
|
+
- sub/avm/lib/avm/entries/auto_values.rb
|
1094
|
+
- sub/avm/lib/avm/entries/auto_values/entry.rb
|
1095
|
+
- sub/avm/lib/avm/entries/base.rb
|
1096
|
+
- sub/avm/lib/avm/entries/entry.rb
|
1025
1097
|
- sub/avm/lib/avm/executables.rb
|
1026
1098
|
- sub/avm/lib/avm/instances.rb
|
1027
1099
|
- sub/avm/lib/avm/instances/base.rb
|
1028
1100
|
- sub/avm/lib/avm/instances/base/auto_values.rb
|
1029
|
-
- sub/avm/lib/avm/instances/base/auto_values/access.rb
|
1030
1101
|
- sub/avm/lib/avm/instances/base/auto_values/admin.rb
|
1031
1102
|
- sub/avm/lib/avm/instances/base/auto_values/data.rb
|
1032
1103
|
- sub/avm/lib/avm/instances/base/auto_values/database.rb
|
1033
1104
|
- sub/avm/lib/avm/instances/base/auto_values/filesystem.rb
|
1105
|
+
- sub/avm/lib/avm/instances/base/auto_values/install.rb
|
1034
1106
|
- sub/avm/lib/avm/instances/base/auto_values/mailer.rb
|
1035
1107
|
- sub/avm/lib/avm/instances/base/auto_values/ruby.rb
|
1036
1108
|
- sub/avm/lib/avm/instances/base/auto_values/source.rb
|
@@ -1039,8 +1111,6 @@ files:
|
|
1039
1111
|
- sub/avm/lib/avm/instances/base/dockerizable.rb
|
1040
1112
|
- sub/avm/lib/avm/instances/base/entry_keys.rb
|
1041
1113
|
- sub/avm/lib/avm/instances/docker_image.rb
|
1042
|
-
- sub/avm/lib/avm/instances/entries.rb
|
1043
|
-
- sub/avm/lib/avm/instances/entry.rb
|
1044
1114
|
- sub/avm/lib/avm/instances/entry_keys.rb
|
1045
1115
|
- sub/avm/lib/avm/instances/runner.rb
|
1046
1116
|
- sub/avm/lib/avm/jobs.rb
|
@@ -1097,8 +1167,8 @@ files:
|
|
1097
1167
|
- sub/avm/lib/avm/sync.rb
|
1098
1168
|
- sub/avm/lib/avm/version.rb
|
1099
1169
|
- sub/avm/lib/avm/version_number.rb
|
1100
|
-
- sub/avm/lib/avm/
|
1101
|
-
- sub/avm/lib/avm/
|
1170
|
+
- sub/avm/lib/avm/with/application_stereotype.rb
|
1171
|
+
- sub/avm/lib/avm/with/extra_subcommands.rb
|
1102
1172
|
- sub/avm/spec/lib/avm/applications/base_spec.rb
|
1103
1173
|
- sub/avm/spec/lib/avm/applications/base_spec_fixture.yml
|
1104
1174
|
- sub/avm/spec/lib/avm/instances/base_spec.rb
|
@@ -1,40 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Avm
|
4
|
-
module Instances
|
5
|
-
class Base
|
6
|
-
module AutoValues
|
7
|
-
module Access
|
8
|
-
def auto_access
|
9
|
-
read_entry_optional('ssh.url').present? ? 'ssh' : 'local'
|
10
|
-
end
|
11
|
-
|
12
|
-
def auto_ssh_hostname
|
13
|
-
inherited_entry_value(::Avm::Instances::EntryKeys::HOST_ID, 'ssh.hostname')
|
14
|
-
end
|
15
|
-
|
16
|
-
def auto_ssh_port
|
17
|
-
inherited_entry_value(::Avm::Instances::EntryKeys::HOST_ID, 'ssh.port') || 22
|
18
|
-
end
|
19
|
-
|
20
|
-
def auto_ssh_username
|
21
|
-
inherited_entry_value(::Avm::Instances::EntryKeys::HOST_ID, 'ssh.username')
|
22
|
-
end
|
23
|
-
|
24
|
-
def auto_ssh_url
|
25
|
-
inherited_entry_value(::Avm::Instances::EntryKeys::HOST_ID, 'ssh.url') ||
|
26
|
-
auto_ssh_url_by_parts
|
27
|
-
end
|
28
|
-
|
29
|
-
def auto_ssh_url_by_parts
|
30
|
-
read_entry_optional('ssh.hostname').if_present do |a|
|
31
|
-
a = read_entry_optional('ssh.username').if_present(a) { |v| "#{v}@#{a}" }
|
32
|
-
a = read_entry_optional('ssh.port').if_present(a) { |v| "#{a}:#{v}" }
|
33
|
-
"ssh://#{a}"
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|