eac_tools 0.6.0 → 0.9.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 +27 -21
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm/avm.gemspec +1 -0
- data/sub/avm/lib/avm/application_stereotypes/base/by_gem.rb +17 -0
- data/sub/avm/lib/avm/application_stereotypes/base/detection.rb +34 -0
- data/sub/avm/lib/avm/application_stereotypes/base.rb +21 -0
- data/sub/avm/lib/avm/application_stereotypes.rb +9 -0
- data/sub/avm/lib/avm/{instances/application.rb → applications/base.rb} +5 -6
- data/sub/avm/lib/avm/applications.rb +9 -0
- data/sub/avm/lib/avm/instances/base.rb +7 -2
- data/sub/avm/lib/avm/instances.rb +1 -1
- data/sub/avm/lib/avm/registry/application_stereotypes/build_available.rb +46 -0
- data/sub/avm/lib/avm/registry/application_stereotypes/stereotype_builder.rb +30 -0
- data/sub/avm/lib/avm/registry/application_stereotypes.rb +36 -0
- data/sub/avm/lib/avm/registry/{base.rb → from_gems.rb} +13 -4
- data/sub/avm/lib/avm/registry/instances.rb +16 -0
- data/sub/avm/lib/avm/registry/runners.rb +10 -0
- data/sub/avm/lib/avm/registry/scms.rb +10 -0
- data/sub/avm/lib/avm/registry/sources.rb +10 -0
- data/sub/avm/lib/avm/registry/with_path/cache.rb +31 -0
- data/sub/avm/lib/avm/registry/with_path.rb +33 -7
- data/sub/avm/lib/avm/registry.rb +3 -7
- data/sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb +1 -1
- data/sub/avm/lib/avm/sources/base/configuration.rb +23 -2
- data/sub/avm/lib/avm/sources/base/instance.rb +2 -2
- data/sub/avm/lib/avm/sources/base/locale.rb +1 -1
- data/sub/avm/lib/avm/sources/base/parent.rb +8 -11
- data/sub/avm/lib/avm/sources/base/subs_paths.rb +1 -1
- data/sub/avm/lib/avm/sources/base/testing.rb +4 -4
- data/sub/avm/lib/avm/sources/base.rb +4 -0
- data/sub/avm/lib/avm/sources/tests/builder.rb +5 -10
- data/sub/avm/lib/avm/version.rb +1 -1
- data/sub/avm/lib/avm/with_application_stereotype.rb +23 -0
- data/sub/avm/lib/avm/with_dynamic_runners.rb +42 -0
- data/sub/{avm-tools/spec/lib/avm/instances/application_spec.rb → avm/spec/lib/avm/applications/base_spec.rb} +3 -3
- data/sub/{avm-tools/spec/lib/avm/instances/application_spec_fixture.yml → avm/spec/lib/avm/applications/base_spec_fixture.yml} +0 -0
- data/sub/{avm-tools → avm}/spec/lib/avm/instances/base_spec.rb +0 -0
- data/sub/{avm-tools → avm}/spec/lib/avm/instances/base_spec_configs_storage.yml +0 -0
- data/sub/avm-eac_rails_base0/Gemfile +3 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
- data/sub/avm-eac_redmine_plugin_base0/avm-eac_redmine_plugin_base0.gemspec +1 -1
- data/sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base.rb +40 -2
- data/sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/version.rb +1 -1
- data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +1 -1
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundler.rb +1 -1
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rake.rb +14 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base.rb +12 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
- data/sub/avm-tools/Gemfile +3 -0
- data/sub/avm-tools/avm-tools.gemspec +1 -1
- data/sub/avm-tools/lib/avm/tools/runner/app_src/info.rb +19 -0
- data/sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb +31 -0
- data/sub/avm-tools/lib/avm/tools/runner/application_stereotypes.rb +16 -0
- data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
- data/sub/eac_cli/Gemfile +3 -0
- data/sub/eac_cli/lib/eac_cli/version.rb +1 -1
- data/sub/eac_config/Gemfile +8 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/eac_config.gemspec +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/entry.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/entry_path.rb +5 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/envvars_node/entry.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/envvars_node.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/load_nodes_search.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/load_path.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/node.rb +6 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/node_entry.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/node_uri.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/old_configs/base.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/old_configs/file.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/old_configs.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/paths_hash/entry_key_error.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/paths_hash/node.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/paths_hash/path_search.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/paths_hash.rb +0 -0
- data/sub/eac_config/lib/eac_config/prefixed_path_node/entry.rb +25 -0
- data/sub/eac_config/lib/eac_config/prefixed_path_node.rb +19 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/rspec/setup.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/rspec.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/version.rb +1 -1
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/yaml_file_node/entry.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/yaml_file_node.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/spec/lib/eac_config/entry_path_spec.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/spec/lib/eac_config/envvars_node/entry_spec.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/spec/lib/eac_config/envvars_node_spec.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/spec/lib/eac_config/old_configs_spec.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/spec/lib/eac_config/paths_hash_spec.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/spec/lib/eac_config/yaml_file_node_spec.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/spec/lib/eac_config/yaml_file_node_spec_files/storage1.yaml +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/spec/lib/eac_config/yaml_file_node_spec_files/storage1_1.yaml +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/spec/lib/eac_config/yaml_file_node_spec_files/storage1_2/storage1_2_1.yaml +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/spec/lib/eac_config/yaml_file_node_spec_files/storage1_2.yaml +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/spec/rubocop_spec.rb +0 -0
- data/sub/{avm-tools/sub/eac_config → eac_config}/spec/spec_helper.rb +0 -0
- data/sub/eac_fs/Gemfile +3 -0
- data/sub/eac_fs/lib/eac_fs/version.rb +1 -1
- data/sub/eac_ruby_base0/Gemfile +3 -0
- data/sub/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
- data/sub/eac_ruby_utils/Gemfile +2 -10
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- metadata +69 -58
- data/sub/avm/lib/avm/sources/base/runners.rb +0 -47
- data/sub/avm-tools/Gemfile.lock +0 -296
- data/sub/avm-tools/sub/eac_config/Gemfile +0 -5
@@ -58,6 +58,12 @@ module EacConfig
|
|
58
58
|
::EacConfig::LoadNodesSearch.new(self).result
|
59
59
|
end
|
60
60
|
|
61
|
+
# @return [EacConfig::PrefixedPathNode]
|
62
|
+
def with_prefix(path_prefix)
|
63
|
+
require 'eac_config/prefixed_path_node'
|
64
|
+
::EacConfig::PrefixedPathNode.new(self, path_prefix)
|
65
|
+
end
|
66
|
+
|
61
67
|
private
|
62
68
|
|
63
69
|
def load_node(node_path)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/sub/{avm-tools/sub/eac_config → eac_config}/lib/eac_config/paths_hash/entry_key_error.rb
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_config/node_entry'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module EacConfig
|
7
|
+
class PrefixedPathNode
|
8
|
+
class Entry < ::EacConfig::NodeEntry
|
9
|
+
enable_simple_cache
|
10
|
+
delegate :found?, :found_node, :secret_value, :value, :value=, :writ_node, to: :full_entry
|
11
|
+
|
12
|
+
# @return [EacConfig::EntryPath]
|
13
|
+
def full_path
|
14
|
+
node.path_prefix + path
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
# @return [EacConfig::NodeEntry]
|
20
|
+
def full_entry_uncached
|
21
|
+
node.from_node.entry(full_path)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_config/entry_path'
|
4
|
+
require 'eac_config/paths_hash'
|
5
|
+
require 'eac_ruby_utils/core_ext'
|
6
|
+
|
7
|
+
module EacConfig
|
8
|
+
class PrefixedPathNode
|
9
|
+
require_sub __FILE__
|
10
|
+
include ::EacConfig::Node
|
11
|
+
common_constructor :from_node, :path_prefix do
|
12
|
+
self.path_prefix = ::EacConfig::EntryPath.assert(path_prefix)
|
13
|
+
end
|
14
|
+
|
15
|
+
def entry(path)
|
16
|
+
::EacConfig::Entry.new(self, path)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/sub/{avm-tools/sub/eac_config → eac_config}/spec/lib/eac_config/envvars_node/entry_spec.rb
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/sub/eac_fs/Gemfile
CHANGED
data/sub/eac_ruby_base0/Gemfile
CHANGED
data/sub/eac_ruby_utils/Gemfile
CHANGED
@@ -2,15 +2,7 @@
|
|
2
2
|
|
3
3
|
source 'https://rubygems.org'
|
4
4
|
|
5
|
-
# Declare your gem's dependencies in users_support.gemspec.
|
6
|
-
# Bundler will treat runtime dependencies like base dependencies, and
|
7
|
-
# development dependencies will be added by default to the :development group.
|
8
5
|
gemspec
|
9
6
|
|
10
|
-
|
11
|
-
|
12
|
-
# Git. Remember to move these dependencies to your gemspec before releasing
|
13
|
-
# your gem to rubygems.org.
|
14
|
-
|
15
|
-
# To use a debugger
|
16
|
-
# gem 'byebug', group: [:development, :test]
|
7
|
+
local_gemfile = ::File.join(::File.dirname(__FILE__), 'Gemfile.local')
|
8
|
+
eval_gemfile local_gemfile if ::File.exist?(local_gemfile)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.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-07-
|
11
|
+
date: 2022-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm-eac_generic_base0
|
@@ -78,48 +78,42 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '0.
|
82
|
-
- - ">="
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
version: 0.1.1
|
81
|
+
version: '0.3'
|
85
82
|
type: :runtime
|
86
83
|
prerelease: false
|
87
84
|
version_requirements: !ruby/object:Gem::Requirement
|
88
85
|
requirements:
|
89
86
|
- - "~>"
|
90
87
|
- !ruby/object:Gem::Version
|
91
|
-
version: '0.
|
92
|
-
- - ">="
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version: 0.1.1
|
88
|
+
version: '0.3'
|
95
89
|
- !ruby/object:Gem::Dependency
|
96
90
|
name: avm-eac_ruby_base1
|
97
91
|
requirement: !ruby/object:Gem::Requirement
|
98
92
|
requirements:
|
99
93
|
- - "~>"
|
100
94
|
- !ruby/object:Gem::Version
|
101
|
-
version: '0.
|
95
|
+
version: '0.11'
|
102
96
|
type: :runtime
|
103
97
|
prerelease: false
|
104
98
|
version_requirements: !ruby/object:Gem::Requirement
|
105
99
|
requirements:
|
106
100
|
- - "~>"
|
107
101
|
- !ruby/object:Gem::Version
|
108
|
-
version: '0.
|
102
|
+
version: '0.11'
|
109
103
|
- !ruby/object:Gem::Dependency
|
110
104
|
name: avm-tools
|
111
105
|
requirement: !ruby/object:Gem::Requirement
|
112
106
|
requirements:
|
113
107
|
- - "~>"
|
114
108
|
- !ruby/object:Gem::Version
|
115
|
-
version: '0.
|
109
|
+
version: '0.123'
|
116
110
|
type: :runtime
|
117
111
|
prerelease: false
|
118
112
|
version_requirements: !ruby/object:Gem::Requirement
|
119
113
|
requirements:
|
120
114
|
- - "~>"
|
121
115
|
- !ruby/object:Gem::Version
|
122
|
-
version: '0.
|
116
|
+
version: '0.123'
|
123
117
|
- !ruby/object:Gem::Dependency
|
124
118
|
name: eac_ruby_utils
|
125
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -315,7 +309,6 @@ files:
|
|
315
309
|
- sub/avm-eac_ruby_base1/spec/rubocop_spec.rb
|
316
310
|
- sub/avm-eac_ruby_base1/spec/spec_helper.rb
|
317
311
|
- sub/avm-tools/Gemfile
|
318
|
-
- sub/avm-tools/Gemfile.lock
|
319
312
|
- sub/avm-tools/README.textile
|
320
313
|
- sub/avm-tools/avm-tools.gemspec
|
321
314
|
- sub/avm-tools/exe/avm
|
@@ -425,6 +418,8 @@ files:
|
|
425
418
|
- sub/avm-tools/lib/avm/tools/runner/app_src/test.rb
|
426
419
|
- sub/avm-tools/lib/avm/tools/runner/app_src/update.rb
|
427
420
|
- sub/avm-tools/lib/avm/tools/runner/app_src/version_bump.rb
|
421
|
+
- sub/avm-tools/lib/avm/tools/runner/application_stereotypes.rb
|
422
|
+
- sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
|
428
423
|
- sub/avm-tools/lib/avm/tools/runner/config.rb
|
429
424
|
- sub/avm-tools/lib/avm/tools/runner/config/load_path.rb
|
430
425
|
- sub/avm-tools/lib/avm/tools/runner/eac_asciidoctor_base0.rb
|
@@ -474,10 +469,6 @@ files:
|
|
474
469
|
- sub/avm-tools/spec/dummy/ruby_gem_stub/ruby_gem_stub.gemspec
|
475
470
|
- sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec.rb
|
476
471
|
- sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec_no_ssl_content.conf
|
477
|
-
- sub/avm-tools/spec/lib/avm/instances/application_spec.rb
|
478
|
-
- sub/avm-tools/spec/lib/avm/instances/application_spec_fixture.yml
|
479
|
-
- sub/avm-tools/spec/lib/avm/instances/base_spec.rb
|
480
|
-
- sub/avm-tools/spec/lib/avm/instances/base_spec_configs_storage.yml
|
481
472
|
- sub/avm-tools/spec/lib/avm/launcher/context_spec.rb
|
482
473
|
- sub/avm-tools/spec/lib/avm/launcher/context_spec.yml
|
483
474
|
- sub/avm-tools/spec/lib/avm/launcher/git/base_spec.rb
|
@@ -692,42 +683,6 @@ files:
|
|
692
683
|
- sub/avm-tools/sub/avm-git/spec/lib/avm/git/scms/git_subrepo_spec.rb
|
693
684
|
- sub/avm-tools/sub/avm-git/spec/rubocop_spec.rb
|
694
685
|
- sub/avm-tools/sub/avm-git/spec/spec_helper.rb
|
695
|
-
- sub/avm-tools/sub/eac_config/Gemfile
|
696
|
-
- sub/avm-tools/sub/eac_config/eac_config.gemspec
|
697
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config.rb
|
698
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/entry.rb
|
699
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/entry_path.rb
|
700
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/envvars_node.rb
|
701
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/envvars_node/entry.rb
|
702
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/load_nodes_search.rb
|
703
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/load_path.rb
|
704
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/node.rb
|
705
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/node_entry.rb
|
706
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/node_uri.rb
|
707
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/old_configs.rb
|
708
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/old_configs/base.rb
|
709
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/old_configs/file.rb
|
710
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/paths_hash.rb
|
711
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/paths_hash/entry_key_error.rb
|
712
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/paths_hash/node.rb
|
713
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/paths_hash/path_search.rb
|
714
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/rspec.rb
|
715
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/rspec/setup.rb
|
716
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/version.rb
|
717
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/yaml_file_node.rb
|
718
|
-
- sub/avm-tools/sub/eac_config/lib/eac_config/yaml_file_node/entry.rb
|
719
|
-
- sub/avm-tools/sub/eac_config/spec/lib/eac_config/entry_path_spec.rb
|
720
|
-
- sub/avm-tools/sub/eac_config/spec/lib/eac_config/envvars_node/entry_spec.rb
|
721
|
-
- sub/avm-tools/sub/eac_config/spec/lib/eac_config/envvars_node_spec.rb
|
722
|
-
- sub/avm-tools/sub/eac_config/spec/lib/eac_config/old_configs_spec.rb
|
723
|
-
- sub/avm-tools/sub/eac_config/spec/lib/eac_config/paths_hash_spec.rb
|
724
|
-
- sub/avm-tools/sub/eac_config/spec/lib/eac_config/yaml_file_node_spec.rb
|
725
|
-
- sub/avm-tools/sub/eac_config/spec/lib/eac_config/yaml_file_node_spec_files/storage1.yaml
|
726
|
-
- sub/avm-tools/sub/eac_config/spec/lib/eac_config/yaml_file_node_spec_files/storage1_1.yaml
|
727
|
-
- sub/avm-tools/sub/eac_config/spec/lib/eac_config/yaml_file_node_spec_files/storage1_2.yaml
|
728
|
-
- sub/avm-tools/sub/eac_config/spec/lib/eac_config/yaml_file_node_spec_files/storage1_2/storage1_2_1.yaml
|
729
|
-
- sub/avm-tools/sub/eac_config/spec/rubocop_spec.rb
|
730
|
-
- sub/avm-tools/sub/eac_config/spec/spec_helper.rb
|
731
686
|
- sub/avm-tools/sub/eac_docker/Gemfile
|
732
687
|
- sub/avm-tools/sub/eac_docker/eac_docker.gemspec
|
733
688
|
- sub/avm-tools/sub/eac_docker/lib/eac_docker.rb
|
@@ -1038,6 +993,12 @@ files:
|
|
1038
993
|
- sub/avm/Gemfile
|
1039
994
|
- sub/avm/avm.gemspec
|
1040
995
|
- sub/avm/lib/avm.rb
|
996
|
+
- sub/avm/lib/avm/application_stereotypes.rb
|
997
|
+
- sub/avm/lib/avm/application_stereotypes/base.rb
|
998
|
+
- sub/avm/lib/avm/application_stereotypes/base/by_gem.rb
|
999
|
+
- sub/avm/lib/avm/application_stereotypes/base/detection.rb
|
1000
|
+
- sub/avm/lib/avm/applications.rb
|
1001
|
+
- sub/avm/lib/avm/applications/base.rb
|
1041
1002
|
- sub/avm/lib/avm/data/instance.rb
|
1042
1003
|
- sub/avm/lib/avm/data/instance/files_unit.rb
|
1043
1004
|
- sub/avm/lib/avm/data/instance/package.rb
|
@@ -1053,7 +1014,6 @@ files:
|
|
1053
1014
|
- sub/avm/lib/avm/docker/runner.rb
|
1054
1015
|
- sub/avm/lib/avm/executables.rb
|
1055
1016
|
- sub/avm/lib/avm/instances.rb
|
1056
|
-
- sub/avm/lib/avm/instances/application.rb
|
1057
1017
|
- sub/avm/lib/avm/instances/base.rb
|
1058
1018
|
- sub/avm/lib/avm/instances/base/auto_values.rb
|
1059
1019
|
- sub/avm/lib/avm/instances/base/auto_values/access.rb
|
@@ -1082,8 +1042,16 @@ files:
|
|
1082
1042
|
- sub/avm/lib/avm/launcher/publish/check_result.rb
|
1083
1043
|
- sub/avm/lib/avm/path_string.rb
|
1084
1044
|
- sub/avm/lib/avm/registry.rb
|
1085
|
-
- sub/avm/lib/avm/registry/
|
1045
|
+
- sub/avm/lib/avm/registry/application_stereotypes.rb
|
1046
|
+
- sub/avm/lib/avm/registry/application_stereotypes/build_available.rb
|
1047
|
+
- sub/avm/lib/avm/registry/application_stereotypes/stereotype_builder.rb
|
1048
|
+
- sub/avm/lib/avm/registry/from_gems.rb
|
1049
|
+
- sub/avm/lib/avm/registry/instances.rb
|
1050
|
+
- sub/avm/lib/avm/registry/runners.rb
|
1051
|
+
- sub/avm/lib/avm/registry/scms.rb
|
1052
|
+
- sub/avm/lib/avm/registry/sources.rb
|
1086
1053
|
- sub/avm/lib/avm/registry/with_path.rb
|
1054
|
+
- sub/avm/lib/avm/registry/with_path/cache.rb
|
1087
1055
|
- sub/avm/lib/avm/result.rb
|
1088
1056
|
- sub/avm/lib/avm/rspec.rb
|
1089
1057
|
- sub/avm/lib/avm/rspec/setup.rb
|
@@ -1103,7 +1071,6 @@ files:
|
|
1103
1071
|
- sub/avm/lib/avm/sources/base/instance.rb
|
1104
1072
|
- sub/avm/lib/avm/sources/base/locale.rb
|
1105
1073
|
- sub/avm/lib/avm/sources/base/parent.rb
|
1106
|
-
- sub/avm/lib/avm/sources/base/runners.rb
|
1107
1074
|
- sub/avm/lib/avm/sources/base/subs.rb
|
1108
1075
|
- sub/avm/lib/avm/sources/base/subs_paths.rb
|
1109
1076
|
- sub/avm/lib/avm/sources/base/testing.rb
|
@@ -1117,6 +1084,12 @@ files:
|
|
1117
1084
|
- sub/avm/lib/avm/sync.rb
|
1118
1085
|
- sub/avm/lib/avm/version.rb
|
1119
1086
|
- sub/avm/lib/avm/version_number.rb
|
1087
|
+
- sub/avm/lib/avm/with_application_stereotype.rb
|
1088
|
+
- sub/avm/lib/avm/with_dynamic_runners.rb
|
1089
|
+
- sub/avm/spec/lib/avm/applications/base_spec.rb
|
1090
|
+
- sub/avm/spec/lib/avm/applications/base_spec_fixture.yml
|
1091
|
+
- sub/avm/spec/lib/avm/instances/base_spec.rb
|
1092
|
+
- sub/avm/spec/lib/avm/instances/base_spec_configs_storage.yml
|
1120
1093
|
- sub/avm/spec/lib/avm/scms/base_spec.rb
|
1121
1094
|
- sub/avm/spec/lib/avm/sources/base_spec.rb
|
1122
1095
|
- sub/avm/spec/rubocop_spec.rb
|
@@ -1186,6 +1159,44 @@ files:
|
|
1186
1159
|
- sub/eac_cli/spec/lib/eac_cli/speaker_spec.rb
|
1187
1160
|
- sub/eac_cli/spec/rubocop_spec.rb
|
1188
1161
|
- sub/eac_cli/spec/spec_helper.rb
|
1162
|
+
- sub/eac_config/Gemfile
|
1163
|
+
- sub/eac_config/eac_config.gemspec
|
1164
|
+
- sub/eac_config/lib/eac_config.rb
|
1165
|
+
- sub/eac_config/lib/eac_config/entry.rb
|
1166
|
+
- sub/eac_config/lib/eac_config/entry_path.rb
|
1167
|
+
- sub/eac_config/lib/eac_config/envvars_node.rb
|
1168
|
+
- sub/eac_config/lib/eac_config/envvars_node/entry.rb
|
1169
|
+
- sub/eac_config/lib/eac_config/load_nodes_search.rb
|
1170
|
+
- sub/eac_config/lib/eac_config/load_path.rb
|
1171
|
+
- sub/eac_config/lib/eac_config/node.rb
|
1172
|
+
- sub/eac_config/lib/eac_config/node_entry.rb
|
1173
|
+
- sub/eac_config/lib/eac_config/node_uri.rb
|
1174
|
+
- sub/eac_config/lib/eac_config/old_configs.rb
|
1175
|
+
- sub/eac_config/lib/eac_config/old_configs/base.rb
|
1176
|
+
- sub/eac_config/lib/eac_config/old_configs/file.rb
|
1177
|
+
- sub/eac_config/lib/eac_config/paths_hash.rb
|
1178
|
+
- sub/eac_config/lib/eac_config/paths_hash/entry_key_error.rb
|
1179
|
+
- sub/eac_config/lib/eac_config/paths_hash/node.rb
|
1180
|
+
- sub/eac_config/lib/eac_config/paths_hash/path_search.rb
|
1181
|
+
- sub/eac_config/lib/eac_config/prefixed_path_node.rb
|
1182
|
+
- sub/eac_config/lib/eac_config/prefixed_path_node/entry.rb
|
1183
|
+
- sub/eac_config/lib/eac_config/rspec.rb
|
1184
|
+
- sub/eac_config/lib/eac_config/rspec/setup.rb
|
1185
|
+
- sub/eac_config/lib/eac_config/version.rb
|
1186
|
+
- sub/eac_config/lib/eac_config/yaml_file_node.rb
|
1187
|
+
- sub/eac_config/lib/eac_config/yaml_file_node/entry.rb
|
1188
|
+
- sub/eac_config/spec/lib/eac_config/entry_path_spec.rb
|
1189
|
+
- sub/eac_config/spec/lib/eac_config/envvars_node/entry_spec.rb
|
1190
|
+
- sub/eac_config/spec/lib/eac_config/envvars_node_spec.rb
|
1191
|
+
- sub/eac_config/spec/lib/eac_config/old_configs_spec.rb
|
1192
|
+
- sub/eac_config/spec/lib/eac_config/paths_hash_spec.rb
|
1193
|
+
- sub/eac_config/spec/lib/eac_config/yaml_file_node_spec.rb
|
1194
|
+
- sub/eac_config/spec/lib/eac_config/yaml_file_node_spec_files/storage1.yaml
|
1195
|
+
- sub/eac_config/spec/lib/eac_config/yaml_file_node_spec_files/storage1_1.yaml
|
1196
|
+
- sub/eac_config/spec/lib/eac_config/yaml_file_node_spec_files/storage1_2.yaml
|
1197
|
+
- sub/eac_config/spec/lib/eac_config/yaml_file_node_spec_files/storage1_2/storage1_2_1.yaml
|
1198
|
+
- sub/eac_config/spec/rubocop_spec.rb
|
1199
|
+
- sub/eac_config/spec/spec_helper.rb
|
1189
1200
|
- sub/eac_fs/Gemfile
|
1190
1201
|
- sub/eac_fs/eac_fs.gemspec
|
1191
1202
|
- sub/eac_fs/lib/eac_fs.rb
|
@@ -1,47 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/sources/base/subs_paths'
|
4
|
-
require 'eac_cli/runner_with/subcommands'
|
5
|
-
require 'eac_ruby_utils/core_ext'
|
6
|
-
|
7
|
-
module Avm
|
8
|
-
module Sources
|
9
|
-
class Base
|
10
|
-
module Runners
|
11
|
-
# @return [Hash<String, EacCli::Runner>]
|
12
|
-
def extra_available_subcommands
|
13
|
-
extra_available_subcommands_from_runners_module
|
14
|
-
end
|
15
|
-
|
16
|
-
# @return [Hash<String, EacCli::Runner>]
|
17
|
-
def extra_available_subcommands_from_runners_module
|
18
|
-
self.class.ancestors.reverse.inject({}) do |a, e|
|
19
|
-
a.merge(RunnersFromModule.new(e).result)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
class RunnersFromModule
|
24
|
-
enable_simple_cache
|
25
|
-
common_constructor :the_module
|
26
|
-
|
27
|
-
# @return [Hash<String, EacCli::Runner>]
|
28
|
-
def result
|
29
|
-
return {} if runners_module.blank?
|
30
|
-
|
31
|
-
::EacCli::RunnerWith::Subcommands.subcommands_from_module(runners_module)
|
32
|
-
end
|
33
|
-
|
34
|
-
def runners_module_uncached
|
35
|
-
return nil if the_module.module_parent.blank?
|
36
|
-
|
37
|
-
begin
|
38
|
-
the_module.module_parent.const_get('Runners')
|
39
|
-
rescue ::NameError
|
40
|
-
nil
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|