eac_tools 0.63.0 → 0.65.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +32 -32
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm/avm.gemspec +2 -2
  5. data/sub/avm/lib/avm/data/package.rb +1 -1
  6. data/sub/avm/lib/avm/data/unit.rb +25 -54
  7. data/sub/avm/lib/avm/data/unit_with_commands.rb +52 -0
  8. data/sub/avm/lib/avm/instances/base/subcommand_parent.rb +25 -0
  9. data/sub/avm/lib/avm/instances/data/files_unit.rb +1 -4
  10. data/sub/avm/lib/avm/instances/data/unit.rb +14 -2
  11. data/sub/avm/lib/avm/instances/entry_keys.rb +1 -0
  12. data/sub/avm/lib/avm/version.rb +1 -1
  13. data/sub/avm-eac_postgresql_base0/avm-eac_postgresql_base0.gemspec +2 -2
  14. data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance/data_unit.rb +5 -8
  15. data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance.rb +0 -4
  16. data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance_with.rb +5 -0
  17. data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/version.rb +1 -1
  18. data/sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec +3 -3
  19. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base.rb +2 -10
  20. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data/load.rb +3 -1
  21. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
  22. data/sub/avm-tools/avm-tools.gemspec +11 -11
  23. data/sub/{avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners → avm-tools/lib/avm/tools/runner/instance}/data/dump.rb +11 -6
  24. data/sub/avm-tools/lib/avm/tools/runner/instance/data/load.rb +58 -0
  25. data/sub/{avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners → avm-tools/lib/avm/tools/runner/instance}/data/unit/clear.rb +4 -3
  26. data/sub/avm-tools/lib/avm/tools/runner/instance/data/unit/dump.rb +41 -0
  27. data/sub/{avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners → avm-tools/lib/avm/tools/runner/instance}/data/unit/load.rb +10 -4
  28. data/sub/{avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners → avm-tools/lib/avm/tools/runner/instance}/data/unit.rb +6 -5
  29. data/sub/{avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners → avm-tools/lib/avm/tools/runner/instance}/data.rb +4 -3
  30. data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
  31. data/sub/eac_cli/eac_cli.gemspec +1 -1
  32. data/sub/eac_cli/lib/eac_cli/definition/base_option.rb +3 -1
  33. data/sub/eac_cli/lib/eac_cli/definition/default_value.rb +17 -0
  34. data/sub/eac_cli/lib/eac_cli/runner_with/help/builder.rb +8 -26
  35. data/sub/eac_cli/lib/eac_cli/runner_with/help/layout.rb +40 -0
  36. data/sub/eac_cli/lib/eac_cli/runner_with/help.rb +12 -0
  37. data/sub/eac_cli/lib/eac_cli/runner_with/input.rb +1 -1
  38. data/sub/eac_cli/lib/eac_cli/runner_with/output.rb +1 -1
  39. data/sub/eac_cli/lib/eac_cli/runner_with/subcommands.rb +1 -4
  40. data/sub/eac_cli/lib/eac_cli/version.rb +1 -1
  41. data/sub/eac_cli/spec/lib/eac_cli/runner_with/help/layout_spec.rb +21 -0
  42. data/sub/eac_cli/spec/lib/eac_cli/runner_with/help_spec.rb +0 -1
  43. data/sub/eac_ruby_utils/lib/eac_ruby_utils/{abstract_methods.rb → acts_as_abstract.rb} +30 -9
  44. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/abstract.rb +2 -2
  45. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/abstract_methods.rb +3 -3
  46. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/acts_as_abstract.rb +14 -0
  47. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_sub.rb +5 -1
  48. data/sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb +2 -2
  49. data/sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  50. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/{abstract_methods_spec.rb → acts_as_abstract_spec.rb} +2 -2
  51. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb +1 -1
  52. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/acts_as_abstract_spec.rb +14 -0
  53. metadata +34 -29
  54. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base/subcommand_parent.rb +0 -26
  55. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data/unit/dump.rb +0 -25
  56. data/sub/eac_cli/lib/eac_cli/runner_with/help/list_section.rb +0 -22
  57. data/sub/eac_cli/spec/lib/eac_cli/runner_with/help/list_section_spec.rb +0 -21
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.63.0
4
+ version: 0.65.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: 2023-05-10 00:00:00.000000000 Z
11
+ date: 2023-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.69'
19
+ version: '0.71'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.69'
26
+ version: '0.71'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: avm-eac_asciidoctor_base0
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -98,14 +98,20 @@ dependencies:
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: '0.4'
101
+ version: '0.5'
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: 0.5.1
102
105
  type: :runtime
103
106
  prerelease: false
104
107
  version_requirements: !ruby/object:Gem::Requirement
105
108
  requirements:
106
109
  - - "~>"
107
110
  - !ruby/object:Gem::Version
108
- version: '0.4'
111
+ version: '0.5'
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: 0.5.1
109
115
  - !ruby/object:Gem::Dependency
110
116
  name: avm-eac_python_base0
111
117
  requirement: !ruby/object:Gem::Requirement
@@ -226,14 +232,14 @@ dependencies:
226
232
  requirements:
227
233
  - - "~>"
228
234
  - !ruby/object:Gem::Version
229
- version: '0.16'
235
+ version: '0.17'
230
236
  type: :runtime
231
237
  prerelease: false
232
238
  version_requirements: !ruby/object:Gem::Requirement
233
239
  requirements:
234
240
  - - "~>"
235
241
  - !ruby/object:Gem::Version
236
- version: '0.16'
242
+ version: '0.17'
237
243
  - !ruby/object:Gem::Dependency
238
244
  name: avm-eac_wordpress_base0
239
245
  requirement: !ruby/object:Gem::Requirement
@@ -280,34 +286,28 @@ dependencies:
280
286
  requirements:
281
287
  - - "~>"
282
288
  - !ruby/object:Gem::Version
283
- version: '0.145'
284
- - - ">="
285
- - !ruby/object:Gem::Version
286
- version: 0.145.1
289
+ version: '0.147'
287
290
  type: :runtime
288
291
  prerelease: false
289
292
  version_requirements: !ruby/object:Gem::Requirement
290
293
  requirements:
291
294
  - - "~>"
292
295
  - !ruby/object:Gem::Version
293
- version: '0.145'
294
- - - ">="
295
- - !ruby/object:Gem::Version
296
- version: 0.145.1
296
+ version: '0.147'
297
297
  - !ruby/object:Gem::Dependency
298
298
  name: eac_ruby_utils
299
299
  requirement: !ruby/object:Gem::Requirement
300
300
  requirements:
301
301
  - - "~>"
302
302
  - !ruby/object:Gem::Version
303
- version: '0.113'
303
+ version: '0.115'
304
304
  type: :runtime
305
305
  prerelease: false
306
306
  version_requirements: !ruby/object:Gem::Requirement
307
307
  requirements:
308
308
  - - "~>"
309
309
  - !ruby/object:Gem::Version
310
- version: '0.113'
310
+ version: '0.115'
311
311
  - !ruby/object:Gem::Dependency
312
312
  name: eac_ruby_gem_support
313
313
  requirement: !ruby/object:Gem::Requirement
@@ -865,7 +865,6 @@ files:
865
865
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/apache_host.rb
866
866
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/apache_path.rb
867
867
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base.rb
868
- - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base/subcommand_parent.rb
869
868
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy.rb
870
869
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy/appended_directories.rb
871
870
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy/build.rb
@@ -876,13 +875,7 @@ files:
876
875
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners.rb
877
876
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
878
877
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_path.rb
879
- - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data.rb
880
- - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data/dump.rb
881
878
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data/load.rb
882
- - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data/unit.rb
883
- - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data/unit/clear.rb
884
- - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data/unit/dump.rb
885
- - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data/unit/load.rb
886
879
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/deploy.rb
887
880
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/sources.rb
888
881
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/sources/base.rb
@@ -1066,6 +1059,13 @@ files:
1066
1059
  - sub/avm-tools/lib/avm/tools/runner/git/subrepo/clone.rb
1067
1060
  - sub/avm-tools/lib/avm/tools/runner/git/subrepo/fix.rb
1068
1061
  - sub/avm-tools/lib/avm/tools/runner/instance.rb
1062
+ - sub/avm-tools/lib/avm/tools/runner/instance/data.rb
1063
+ - sub/avm-tools/lib/avm/tools/runner/instance/data/dump.rb
1064
+ - sub/avm-tools/lib/avm/tools/runner/instance/data/load.rb
1065
+ - sub/avm-tools/lib/avm/tools/runner/instance/data/unit.rb
1066
+ - sub/avm-tools/lib/avm/tools/runner/instance/data/unit/clear.rb
1067
+ - sub/avm-tools/lib/avm/tools/runner/instance/data/unit/dump.rb
1068
+ - sub/avm-tools/lib/avm/tools/runner/instance/data/unit/load.rb
1069
1069
  - sub/avm-tools/lib/avm/tools/runner/instance/info.rb
1070
1070
  - sub/avm-tools/lib/avm/tools/runner/launcher.rb
1071
1071
  - sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
@@ -1131,6 +1131,7 @@ files:
1131
1131
  - sub/avm/lib/avm/data/package/load.rb
1132
1132
  - sub/avm/lib/avm/data/rotate.rb
1133
1133
  - sub/avm/lib/avm/data/unit.rb
1134
+ - sub/avm/lib/avm/data/unit_with_commands.rb
1134
1135
  - sub/avm/lib/avm/docker.rb
1135
1136
  - sub/avm/lib/avm/docker/container.rb
1136
1137
  - sub/avm/lib/avm/docker/image.rb
@@ -1175,6 +1176,7 @@ files:
1175
1176
  - sub/avm/lib/avm/instances/base/dockerizable.rb
1176
1177
  - sub/avm/lib/avm/instances/base/entry_keys.rb
1177
1178
  - sub/avm/lib/avm/instances/base/install.rb
1179
+ - sub/avm/lib/avm/instances/base/subcommand_parent.rb
1178
1180
  - sub/avm/lib/avm/instances/base/web.rb
1179
1181
  - sub/avm/lib/avm/instances/data.rb
1180
1182
  - sub/avm/lib/avm/instances/data/files_unit.rb
@@ -1334,6 +1336,7 @@ files:
1334
1336
  - sub/eac_cli/lib/eac_cli/definition/base_option.rb
1335
1337
  - sub/eac_cli/lib/eac_cli/definition/base_option/initialize_args_parser.rb
1336
1338
  - sub/eac_cli/lib/eac_cli/definition/boolean_option.rb
1339
+ - sub/eac_cli/lib/eac_cli/definition/default_value.rb
1337
1340
  - sub/eac_cli/lib/eac_cli/definition/positional_argument.rb
1338
1341
  - sub/eac_cli/lib/eac_cli/enum.rb
1339
1342
  - sub/eac_cli/lib/eac_cli/old_configs.rb
@@ -1368,7 +1371,7 @@ files:
1368
1371
  - sub/eac_cli/lib/eac_cli/runner_with/help.rb
1369
1372
  - sub/eac_cli/lib/eac_cli/runner_with/help/builder.rb
1370
1373
  - sub/eac_cli/lib/eac_cli/runner_with/help/builder/alternative.rb
1371
- - sub/eac_cli/lib/eac_cli/runner_with/help/list_section.rb
1374
+ - sub/eac_cli/lib/eac_cli/runner_with/help/layout.rb
1372
1375
  - sub/eac_cli/lib/eac_cli/runner_with/input.rb
1373
1376
  - sub/eac_cli/lib/eac_cli/runner_with/output.rb
1374
1377
  - sub/eac_cli/lib/eac_cli/runner_with/subcommands.rb
@@ -1386,7 +1389,7 @@ files:
1386
1389
  - sub/eac_cli/spec/lib/eac_cli/parser/alternative_spec.rb
1387
1390
  - sub/eac_cli/spec/lib/eac_cli/runner_spec.rb
1388
1391
  - sub/eac_cli/spec/lib/eac_cli/runner_with/confirmation_spec.rb
1389
- - sub/eac_cli/spec/lib/eac_cli/runner_with/help/list_section_spec.rb
1392
+ - sub/eac_cli/spec/lib/eac_cli/runner_with/help/layout_spec.rb
1390
1393
  - sub/eac_cli/spec/lib/eac_cli/runner_with/help_spec.rb
1391
1394
  - sub/eac_cli/spec/lib/eac_cli/runner_with/output_spec.rb
1392
1395
  - sub/eac_cli/spec/lib/eac_cli/runner_with/subcommands_spec.rb
@@ -1756,7 +1759,7 @@ files:
1756
1759
  - sub/eac_ruby_utils/README.rdoc
1757
1760
  - sub/eac_ruby_utils/eac_ruby_utils.gemspec
1758
1761
  - sub/eac_ruby_utils/lib/eac_ruby_utils.rb
1759
- - sub/eac_ruby_utils/lib/eac_ruby_utils/abstract_methods.rb
1762
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_abstract.rb
1760
1763
  - sub/eac_ruby_utils/lib/eac_ruby_utils/arguments_consumer.rb
1761
1764
  - sub/eac_ruby_utils/lib/eac_ruby_utils/bit.rb
1762
1765
  - sub/eac_ruby_utils/lib/eac_ruby_utils/bit_array.rb
@@ -1862,6 +1865,7 @@ files:
1862
1865
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel/nyi.rb
1863
1866
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module.rb
1864
1867
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/abstract_methods.rb
1868
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/acts_as_abstract.rb
1865
1869
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/common_concern.rb
1866
1870
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/compare_by.rb
1867
1871
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/context.rb
@@ -1931,7 +1935,7 @@ files:
1931
1935
  - sub/eac_ruby_utils/lib/eac_ruby_utils/struct.rb
1932
1936
  - sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb
1933
1937
  - sub/eac_ruby_utils/lib/eac_ruby_utils/yaml.rb
1934
- - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/abstract_methods_spec.rb
1938
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/acts_as_abstract_spec.rb
1935
1939
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/arguments_consumer_spec.rb
1936
1940
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/bit_array_spec.rb
1937
1941
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/blank_not_blank_spec.rb
@@ -1959,6 +1963,7 @@ files:
1959
1963
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/options_consumer_spec.rb
1960
1964
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/addressable/uri/query_value_spec.rb
1961
1965
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
1966
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/acts_as_abstract_spec.rb
1962
1967
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/method_class_spec.rb
1963
1968
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/self_included_modules_spec.rb
1964
1969
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/static_method_class_spec.rb
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Avm
6
- module EacWebappBase0
7
- module Instances
8
- class Base < ::Avm::Instances::Base
9
- class SubcommandParent
10
- enable_simple_cache
11
- common_constructor :instance
12
-
13
- private
14
-
15
- def runner_context_uncached
16
- ::EacCli::Runner::Context.new(self, argv: runner_argv)
17
- end
18
-
19
- def runner_argv
20
- [instance.class.name.split('::')[-2].dasherize, instance.id]
21
- end
22
- end
23
- end
24
- end
25
- end
26
- end
@@ -1,25 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/core_ext'
4
-
5
- module Avm
6
- module EacWebappBase0
7
- module Instances
8
- module Runners
9
- class Data
10
- class Unit
11
- class Dump
12
- runner_with :help do
13
- pos_arg :dump_path
14
- end
15
-
16
- def run
17
- nyi
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end
24
- end
25
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module EacCli
6
- module RunnerWith
7
- module Help
8
- class ListSection
9
- WORD_SEPARATOR = ' '
10
- IDENTATION = WORD_SEPARATOR * 2
11
-
12
- common_constructor :title, :items
13
-
14
- # @return [String]
15
- def to_s
16
- (["#{title}:"] + items.map { |line| "#{IDENTATION}#{line}" })
17
- .map { |line| "#{line}\n" }.join
18
- end
19
- end
20
- end
21
- end
22
- end
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/runner_with/help/list_section'
4
-
5
- ::RSpec.describe ::EacCli::RunnerWith::Help::ListSection do
6
- {
7
- ['Options', ['Option A', 'Option B']] => <<~TEXT
8
- Options:
9
- Option A
10
- Option B
11
- TEXT
12
- }.each do |source, expected|
13
- context "when source is #{source}" do
14
- let(:instance) { described_class.new(*source) }
15
-
16
- it do
17
- expect(instance.to_s).to eq(expected)
18
- end
19
- end
20
- end
21
- end