eac_tools 0.103.0 → 0.103.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +22 -27
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +1 -1
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/apache_host.rb +0 -2
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/database.rb +0 -3
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/files.rb +0 -4
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/gitolite.rb +0 -3
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/install.rb +0 -3
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/nodejs.rb +0 -3
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/web.rb +0 -3
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base.rb +1 -7
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/deploy.rb +0 -3
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/docker_image.rb +0 -6
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/entity_base.rb +0 -4
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/project.rb +0 -5
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/root.rb +0 -4
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/wiki_page.rb +0 -4
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api.rb +0 -4
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/docker.rb +0 -2
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project/wiki_page/read.rb +0 -2
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project/wiki_page/write.rb +0 -2
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project/wiki_page.rb +0 -4
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project.rb +0 -4
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project_rename.rb +0 -3
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/base.rb +0 -4
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/core_update.rb +0 -6
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/runners/core_update.rb +0 -4
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/runners/docker.rb +0 -3
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template +1 -0
- data/sub/eac_cli/eac_cli.gemspec +23 -0
- data/sub/eac_cli/lib/eac_cli/config/entry/options.rb +55 -0
- data/sub/eac_cli/lib/eac_cli/config/entry/undefined.rb +26 -0
- data/sub/eac_cli/lib/eac_cli/config/entry.rb +55 -0
- data/sub/eac_cli/lib/eac_cli/config.rb +15 -0
- data/sub/eac_cli/lib/eac_cli/core_ext.rb +4 -0
- data/sub/eac_cli/lib/eac_cli/default_runner.rb +12 -0
- data/sub/eac_cli/lib/eac_cli/definition/alternative.rb +101 -0
- data/sub/eac_cli/lib/eac_cli/definition/argument_option.rb +19 -0
- data/sub/eac_cli/lib/eac_cli/definition/boolean_option.rb +25 -0
- data/sub/eac_cli/lib/eac_cli/definition/error.rb +8 -0
- data/sub/eac_cli/lib/eac_cli/definition/option/initialize_args_parser.rb +48 -0
- data/sub/eac_cli/lib/eac_cli/definition/option.rb +70 -0
- data/sub/eac_cli/lib/eac_cli/definition/option_or_positional.rb +41 -0
- data/sub/eac_cli/lib/eac_cli/definition/positional.rb +50 -0
- data/sub/eac_cli/lib/eac_cli/definition.rb +104 -0
- data/sub/eac_cli/lib/eac_cli/enum.rb +42 -0
- data/sub/eac_cli/lib/eac_cli/old_configs/entry_reader.rb +76 -0
- data/sub/eac_cli/lib/eac_cli/old_configs/password_entry_reader.rb +14 -0
- data/sub/eac_cli/lib/eac_cli/old_configs/read_entry_options.rb +42 -0
- data/sub/eac_cli/lib/eac_cli/old_configs/store_passwords_entry_reader.rb +23 -0
- data/sub/eac_cli/lib/eac_cli/old_configs.rb +31 -0
- data/sub/eac_cli/lib/eac_cli/parser/alternative/any_options.rb +17 -0
- data/sub/eac_cli/lib/eac_cli/parser/alternative/argv.rb +19 -0
- data/sub/eac_cli/lib/eac_cli/parser/alternative/double_dash.rb +24 -0
- data/sub/eac_cli/lib/eac_cli/parser/alternative/long_options.rb +37 -0
- data/sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb +29 -0
- data/sub/eac_cli/lib/eac_cli/parser/alternative/options.rb +29 -0
- data/sub/eac_cli/lib/eac_cli/parser/alternative/positionals.rb +30 -0
- data/sub/eac_cli/lib/eac_cli/parser/alternative/short_options.rb +54 -0
- data/sub/eac_cli/lib/eac_cli/parser/alternative.rb +99 -0
- data/sub/eac_cli/lib/eac_cli/parser/collector.rb +52 -0
- data/sub/eac_cli/lib/eac_cli/parser/error.rb +13 -0
- data/sub/eac_cli/lib/eac_cli/parser.rb +32 -0
- data/sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb +22 -0
- data/sub/eac_cli/lib/eac_cli/patches/object.rb +5 -0
- data/sub/eac_cli/lib/eac_cli/patches.rb +3 -0
- data/sub/eac_cli/lib/eac_cli/rspec/setup.rb +41 -0
- data/sub/eac_cli/lib/eac_cli/rspec.rb +7 -0
- data/sub/eac_cli/lib/eac_cli/runner/after_class_methods.rb +34 -0
- data/sub/eac_cli/lib/eac_cli/runner/class_runner.rb +32 -0
- data/sub/eac_cli/lib/eac_cli/runner/context.rb +57 -0
- data/sub/eac_cli/lib/eac_cli/runner/context_responders/base.rb +22 -0
- data/sub/eac_cli/lib/eac_cli/runner/context_responders/parent.rb +24 -0
- data/sub/eac_cli/lib/eac_cli/runner/context_responders/runner.rb +17 -0
- data/sub/eac_cli/lib/eac_cli/runner/context_responders/runner_missing_method.rb +29 -0
- data/sub/eac_cli/lib/eac_cli/runner/context_responders/set.rb +41 -0
- data/sub/eac_cli/lib/eac_cli/runner/context_responders.rb +9 -0
- data/sub/eac_cli/lib/eac_cli/runner/exit.rb +14 -0
- data/sub/eac_cli/lib/eac_cli/runner/for_context.rb +35 -0
- data/sub/eac_cli/lib/eac_cli/runner/instance_methods.rb +45 -0
- data/sub/eac_cli/lib/eac_cli/runner.rb +47 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/confirmation/input_result.rb +60 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/confirmation.rb +65 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/help/builder/alternative.rb +61 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/help/builder.rb +79 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/help/layout.rb +38 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/help.rb +51 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/input.rb +32 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/output.rb +54 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/output_item/asciidoc_formatter.rb +70 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/output_item/base_formatter.rb +12 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/output_item/csv_formatter.rb +21 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/output_item/yaml_formatter.rb +16 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/output_item.rb +47 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/output_list/base_formatter.rb +44 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/output_list/csv_formatter.rb +24 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/output_list/tty_formatter.rb +34 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/output_list/yaml_formatter.rb +21 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/output_list.rb +39 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/subcommands/definition_concern.rb +10 -0
- data/sub/eac_cli/lib/eac_cli/runner_with/subcommands.rb +124 -0
- data/sub/eac_cli/lib/eac_cli/runner_with.rb +7 -0
- data/sub/eac_cli/lib/eac_cli/runner_with_set.rb +54 -0
- data/sub/eac_cli/lib/eac_cli/speaker/constants.rb +11 -0
- data/sub/eac_cli/lib/eac_cli/speaker/input_blocked.rb +14 -0
- data/sub/eac_cli/lib/eac_cli/speaker/input_requested.rb +8 -0
- data/sub/eac_cli/lib/eac_cli/speaker/list.rb +84 -0
- data/sub/eac_cli/lib/eac_cli/speaker/options.rb +42 -0
- data/sub/eac_cli/lib/eac_cli/speaker/request_from_list.rb +40 -0
- data/sub/eac_cli/lib/eac_cli/speaker.rb +114 -0
- data/sub/eac_cli/lib/eac_cli/version.rb +5 -0
- data/sub/eac_cli/lib/eac_cli.rb +14 -0
- data/sub/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb +18 -0
- data/sub/eac_cli/spec/lib/eac_cli/old_configs_spec.rb +14 -0
- data/sub/eac_cli/spec/lib/eac_cli/parser/alternative/subcommands_spec.rb +58 -0
- data/sub/eac_cli/spec/lib/eac_cli/parser/alternative_spec.rb +89 -0
- data/sub/eac_cli/spec/lib/eac_cli/runner/for_context_spec.rb +79 -0
- data/sub/eac_cli/spec/lib/eac_cli/runner_spec.rb +129 -0
- data/sub/eac_cli/spec/lib/eac_cli/runner_with/confirmation/input_result_spec.rb +36 -0
- data/sub/eac_cli/spec/lib/eac_cli/runner_with/confirmation_spec.rb +42 -0
- data/sub/eac_cli/spec/lib/eac_cli/runner_with/help/layout_spec.rb +21 -0
- data/sub/eac_cli/spec/lib/eac_cli/runner_with/help_spec.rb +51 -0
- data/sub/eac_cli/spec/lib/eac_cli/runner_with/output_list_spec.rb +57 -0
- data/sub/eac_cli/spec/lib/eac_cli/runner_with/output_spec.rb +81 -0
- data/sub/eac_cli/spec/lib/eac_cli/runner_with/subcommands_spec.rb +99 -0
- data/sub/eac_cli/spec/lib/eac_cli/speaker_spec.rb +36 -0
- data/sub/{eac_docker → eac_cli}/spec/spec_helper.rb +1 -2
- metadata +108 -48
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners.rb +0 -14
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances.rb +0 -11
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/runners.rb +0 -13
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources.rb +0 -11
- data/sub/avm-eac_ubuntu_base0/avm-eac_ubuntu_base0.gemspec +0 -21
- data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/apache/resource.rb +0 -57
- data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/apache.rb +0 -24
- data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/docker_image.rb +0 -31
- data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/instances/base.rb +0 -24
- data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/rspec/ssh_docker_server.rb +0 -82
- data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/runners/base/docker.rb +0 -15
- data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/runners/base.rb +0 -26
- data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/version.rb +0 -7
- data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0.rb +0 -13
- data/sub/avm-eac_ubuntu_base0/spec/lib/avm/eac_ubuntu_base0/docker_image_spec.rb +0 -12
- data/sub/avm-eac_ubuntu_base0/spec/lib/avm/eac_ubuntu_base0/rspec/ssh_docker_server_spec.rb +0 -11
- data/sub/avm-eac_ubuntu_base0/spec/lib/avm/eac_ubuntu_base0/runners/base/docker_spec.rb +0 -11
- data/sub/avm-eac_ubuntu_base0/spec/lib/avm/eac_ubuntu_base0/runners/base_spec.rb +0 -5
- data/sub/avm-eac_ubuntu_base0/spec/spec_helper.rb +0 -5
- data/sub/avm-eac_ubuntu_base0/template/avm/eac_ubuntu_base0/docker_image/Dockerfile.template +0 -27
- data/sub/avm-eac_ubuntu_base0/template/avm/eac_ubuntu_base0/rspec/ssh_docker_server/Dockerfile.template +0 -24
- data/sub/avm-eac_ubuntu_base0/template/avm/eac_ubuntu_base0/rspec/ssh_docker_server/id_rsa +0 -27
- data/sub/avm-eac_ubuntu_base0/template/avm/eac_ubuntu_base0/rspec/ssh_docker_server/id_rsa.pub +0 -1
- data/sub/eac_docker/Gemfile +0 -8
- data/sub/eac_docker/eac_docker.gemspec +0 -20
- data/sub/eac_docker/lib/eac_docker/container.rb +0 -83
- data/sub/eac_docker/lib/eac_docker/debug.rb +0 -13
- data/sub/eac_docker/lib/eac_docker/executables.rb +0 -15
- data/sub/eac_docker/lib/eac_docker/images/base.rb +0 -11
- data/sub/eac_docker/lib/eac_docker/images/coded.rb +0 -39
- data/sub/eac_docker/lib/eac_docker/images/named.rb +0 -26
- data/sub/eac_docker/lib/eac_docker/images/templatized.rb +0 -43
- data/sub/eac_docker/lib/eac_docker/registry.rb +0 -15
- data/sub/eac_docker/lib/eac_docker/rspec/setup.rb +0 -15
- data/sub/eac_docker/lib/eac_docker/rspec/stub_image.rb +0 -39
- data/sub/eac_docker/lib/eac_docker/version.rb +0 -5
- data/sub/eac_docker/lib/eac_docker.rb +0 -9
- data/sub/eac_docker/spec/lib/eac_docker/executables_spec.rb +0 -7
- data/sub/eac_docker/spec/lib/eac_docker/images/coded_spec.rb +0 -10
- data/sub/eac_docker/spec/lib/eac_docker/images/coded_spec_files/image1/Dockerfile +0 -1
- data/sub/eac_docker/spec/lib/eac_docker/images/templatized_spec.rb +0 -15
- data/sub/eac_docker/spec/lib/eac_docker/images/templatized_spec_files/stub_docker_image/Dockerfile +0 -1
- data/sub/eac_docker/spec/rubocop_spec.rb +0 -3
- /data/sub/{avm-eac_ubuntu_base0 → eac_cli}/Gemfile +0 -0
- /data/sub/{avm-eac_ubuntu_base0 → eac_cli}/spec/rubocop_spec.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a14a2d3c04377c971fa57281231f46bc912e2a893273ffb2f81ec92077e02ca2
|
4
|
+
data.tar.gz: 1a82634e76a1bb0b9011211dc6496a13a75d0b25df803551f31aa057ef356bf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30619647c892d8a5a4c63e6ce78d4c27be9b279c78024e089e8aaefd2553910127647f593b458f24f453fabcfe403f14b45340f5f08a62765aa4e3d263211627
|
7
|
+
data.tar.gz: e83e15985cabd61f2a2f43faeeff25ca8303a0a0d83f15d05ae32e94e5675b3c176cdc6062301c922955ca00c472eca5ce5bd929495c2f914ef50c5609374345
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eac_tools (0.103.
|
4
|
+
eac_tools (0.103.1)
|
5
5
|
avm (~> 0.97, >= 0.97.1)
|
6
6
|
avm-eac_asciidoctor_base0 (~> 0.25)
|
7
7
|
avm-eac_generic_base0 (~> 0.15, >= 0.15.1)
|
@@ -13,7 +13,7 @@ PATH
|
|
13
13
|
avm-eac_python_base0 (~> 0.2, >= 0.2.2)
|
14
14
|
avm-eac_rails_base0 (~> 0.11, >= 0.11.1)
|
15
15
|
avm-eac_rails_base1 (~> 0.10, >= 0.10.2)
|
16
|
-
avm-eac_redmine_base0 (~> 0.23)
|
16
|
+
avm-eac_redmine_base0 (~> 0.23, >= 0.23.1)
|
17
17
|
avm-eac_redmine_plugin_base0 (~> 0.4, >= 0.4.1)
|
18
18
|
avm-eac_ruby_base0 (~> 0.1)
|
19
19
|
avm-eac_ruby_base1 (~> 0.38)
|
@@ -26,7 +26,7 @@ PATH
|
|
26
26
|
PATH
|
27
27
|
remote: sub/avm-eac_redmine_base0
|
28
28
|
specs:
|
29
|
-
avm-eac_redmine_base0 (0.23.
|
29
|
+
avm-eac_redmine_base0 (0.23.1)
|
30
30
|
avm (~> 0.97, >= 0.97.1)
|
31
31
|
avm-eac_generic_base0 (~> 0.15, >= 0.15.1)
|
32
32
|
avm-eac_rails_base1 (~> 0.10, >= 0.10.2)
|
@@ -36,19 +36,13 @@ PATH
|
|
36
36
|
eac_ruby_utils (~> 0.128, >= 0.128.3)
|
37
37
|
|
38
38
|
PATH
|
39
|
-
remote: sub/
|
39
|
+
remote: sub/eac_cli
|
40
40
|
specs:
|
41
|
-
|
42
|
-
|
41
|
+
eac_cli (0.44.1)
|
42
|
+
colorize (~> 0.8, >= 0.8.1)
|
43
|
+
eac_config (~> 0.15)
|
43
44
|
eac_ruby_utils (~> 0.128, >= 0.128.3)
|
44
|
-
|
45
|
-
|
46
|
-
PATH
|
47
|
-
remote: sub/eac_docker
|
48
|
-
specs:
|
49
|
-
eac_docker (0.8.0)
|
50
|
-
eac_ruby_utils (~> 0.128, >= 0.128.2)
|
51
|
-
eac_templates (~> 0.8, >= 0.8.1)
|
45
|
+
tty-table (~> 0.12)
|
52
46
|
|
53
47
|
GEM
|
54
48
|
remote: https://rubygems.org/
|
@@ -136,6 +130,10 @@ GEM
|
|
136
130
|
avm-eac_generic_base0 (~> 0.15, >= 0.15.1)
|
137
131
|
eac_envs-http (~> 0.7)
|
138
132
|
eac_ruby_utils (~> 0.128, >= 0.128.3)
|
133
|
+
avm-eac_ubuntu_base0 (0.6.0)
|
134
|
+
avm (~> 0.97)
|
135
|
+
eac_ruby_utils (~> 0.128, >= 0.128.3)
|
136
|
+
eac_templates (~> 0.8, >= 0.8.1)
|
139
137
|
avm-eac_webapp_base0 (0.21.1)
|
140
138
|
avm (~> 0.96, >= 0.96.1)
|
141
139
|
avm-eac_generic_base0 (~> 0.15, >= 0.15.1)
|
@@ -167,14 +165,12 @@ GEM
|
|
167
165
|
content-type (0.0.2)
|
168
166
|
parslet (~> 2.0)
|
169
167
|
diff-lcs (1.6.2)
|
170
|
-
eac_cli (0.44.0)
|
171
|
-
colorize (~> 0.8, >= 0.8.1)
|
172
|
-
eac_config (~> 0.15)
|
173
|
-
eac_ruby_utils (~> 0.128, >= 0.128.3)
|
174
|
-
tty-table (~> 0.12)
|
175
168
|
eac_config (0.15.0)
|
176
169
|
addressable (~> 2.8, >= 2.8.7)
|
177
170
|
eac_ruby_utils (~> 0.127)
|
171
|
+
eac_docker (0.8.0)
|
172
|
+
eac_ruby_utils (~> 0.128, >= 0.128.2)
|
173
|
+
eac_templates (~> 0.8, >= 0.8.1)
|
178
174
|
eac_envs-http (0.7.0)
|
179
175
|
eac_fs (~> 0.19)
|
180
176
|
eac_ruby_utils (~> 0.128, >= 0.128.3)
|
@@ -265,11 +261,11 @@ GEM
|
|
265
261
|
prism (1.4.0)
|
266
262
|
public_suffix (5.1.1)
|
267
263
|
racc (1.8.1)
|
268
|
-
rack (3.2.
|
264
|
+
rack (3.2.1)
|
269
265
|
rainbow (3.1.1)
|
270
266
|
random-port (0.7.1)
|
271
267
|
rchardet (1.8.0)
|
272
|
-
regexp_parser (2.11.
|
268
|
+
regexp_parser (2.11.2)
|
273
269
|
rouge (3.30.0)
|
274
270
|
rspec (3.13.1)
|
275
271
|
rspec-core (~> 3.13.0)
|
@@ -283,8 +279,8 @@ GEM
|
|
283
279
|
rspec-mocks (3.13.5)
|
284
280
|
diff-lcs (>= 1.2.0, < 2.0)
|
285
281
|
rspec-support (~> 3.13.0)
|
286
|
-
rspec-support (3.13.
|
287
|
-
rubocop (1.
|
282
|
+
rspec-support (3.13.5)
|
283
|
+
rubocop (1.80.2)
|
288
284
|
json (~> 2.3)
|
289
285
|
language_server-protocol (~> 3.17.0.2)
|
290
286
|
lint_roller (~> 1.1.0)
|
@@ -298,13 +294,13 @@ GEM
|
|
298
294
|
rubocop-ast (1.46.0)
|
299
295
|
parser (>= 3.3.7.2)
|
300
296
|
prism (~> 1.4)
|
301
|
-
rubocop-rails (2.
|
297
|
+
rubocop-rails (2.33.3)
|
302
298
|
activesupport (>= 4.2.0)
|
303
299
|
lint_roller (~> 1.1)
|
304
300
|
rack (>= 1.1)
|
305
301
|
rubocop (>= 1.75.0, < 2.0)
|
306
302
|
rubocop-ast (>= 1.44.0, < 2.0)
|
307
|
-
rubocop-rspec (3.
|
303
|
+
rubocop-rspec (3.7.0)
|
308
304
|
lint_roller (~> 1.1)
|
309
305
|
rubocop (~> 1.72, >= 1.72.1)
|
310
306
|
ruby-filemagic (0.7.3)
|
@@ -337,8 +333,7 @@ PLATFORMS
|
|
337
333
|
|
338
334
|
DEPENDENCIES
|
339
335
|
avm-eac_redmine_base0!
|
340
|
-
|
341
|
-
eac_docker!
|
336
|
+
eac_cli!
|
342
337
|
eac_ruby_gem_support (~> 0.12)
|
343
338
|
eac_tools!
|
344
339
|
|
data/lib/eac_tools/version.rb
CHANGED
@@ -22,5 +22,5 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.add_dependency 'eac_rest', '~> 0.12'
|
23
23
|
s.add_dependency 'eac_ruby_utils', '~> 0.128', '>= 0.128.3'
|
24
24
|
|
25
|
-
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.
|
25
|
+
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.12'
|
26
26
|
end
|
@@ -1,18 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'addressable/uri'
|
4
|
-
require 'avm/eac_redmine_base0/instances/apache_host'
|
5
|
-
require 'avm/eac_redmine_base0/instances/docker_image'
|
6
|
-
require 'avm/eac_redmine_base0/instances/runners'
|
7
|
-
require 'avm/eac_redmine_base0/instances/rest_api'
|
8
|
-
require 'avm/eac_rails_base1/instances/base'
|
9
|
-
require 'avm/eac_ruby_base1/instances/mixin'
|
10
4
|
|
11
5
|
module Avm
|
12
6
|
module EacRedmineBase0
|
13
7
|
module Instances
|
14
8
|
class Base < ::Avm::EacRailsBase1::Instances::Base
|
15
|
-
require_sub __FILE__, include_modules: true
|
9
|
+
require_sub __FILE__, include_modules: true
|
16
10
|
enable_simple_cache
|
17
11
|
|
18
12
|
include ::Avm::EacRubyBase1::Instances::Mixin
|
@@ -1,11 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'eac_ruby_utils/core_ext'
|
4
|
-
require 'avm/eac_redmine_base0/instances/deploy'
|
5
|
-
require 'avm/eac_ubuntu_base0/instances/base'
|
6
|
-
require 'avm/instances/docker_image'
|
7
|
-
require 'eac_templates/core_ext'
|
8
|
-
|
9
3
|
module Avm
|
10
4
|
module EacRedmineBase0
|
11
5
|
module Instances
|
@@ -1,10 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'avm/eac_redmine_base0/instances/rest_api/entity_base'
|
4
|
-
require 'avm/eac_redmine_base0/instances/rest_api/wiki_page'
|
5
|
-
require 'eac_rest/api'
|
6
|
-
require 'eac_ruby_utils/core_ext'
|
7
|
-
|
8
3
|
module Avm
|
9
4
|
module EacRedmineBase0
|
10
5
|
module Instances
|
data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project/wiki_page.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'eac_cli/core_ext'
|
4
|
-
|
5
3
|
module Avm
|
6
4
|
module EacRedmineBase0
|
7
5
|
module Instances
|
@@ -20,8 +18,6 @@ module Avm
|
|
20
18
|
def wiki_page_content
|
21
19
|
wiki_page.read
|
22
20
|
end
|
23
|
-
|
24
|
-
require_sub __FILE__
|
25
21
|
end
|
26
22
|
end
|
27
23
|
end
|
@@ -1,7 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'eac_cli/core_ext'
|
4
|
-
|
5
3
|
module Avm
|
6
4
|
module EacRedmineBase0
|
7
5
|
module Instances
|
@@ -17,8 +15,6 @@ module Avm
|
|
17
15
|
def project_uncached
|
18
16
|
runner_context.call(:instance).rest_api.root_entity.project(parsed.id_or_identifier)
|
19
17
|
end
|
20
|
-
|
21
|
-
require_sub __FILE__
|
22
18
|
end
|
23
19
|
end
|
24
20
|
end
|
@@ -1,11 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'avm/eac_redmine_base0/sources/core_update'
|
4
|
-
require 'avm/sources/base/configuration'
|
5
|
-
require 'avm/sync'
|
6
|
-
require 'eac_fs/cached_download'
|
7
|
-
require 'eac_ruby_utils/core_ext'
|
8
|
-
|
9
3
|
module Avm
|
10
4
|
module EacRedmineBase0
|
11
5
|
module Sources
|
@@ -31,6 +31,7 @@ USER root
|
|
31
31
|
COPY start.sh '%%start_path%%'
|
32
32
|
RUN /bin/chmod +x '%%start_path%%'
|
33
33
|
RUN /bin/chown '%%redmine_user%%:%%redmine_user%%' '%%start_path%%'
|
34
|
+
RUN chmod 755 '%%redmine_user_home%%'
|
34
35
|
USER '%%redmine_user%%'
|
35
36
|
WORKDIR '%%redmine_user_home%%'
|
36
37
|
CMD '%%start_path%%'
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path('lib', __dir__)
|
4
|
+
|
5
|
+
require 'eac_cli/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = 'eac_cli'
|
9
|
+
s.version = EacCli::VERSION
|
10
|
+
s.authors = ['Esquilo Azul Company']
|
11
|
+
s.summary = 'Utilities to build CLI applications with Ruby.'
|
12
|
+
|
13
|
+
s.files = Dir['{lib}/**/*', 'Gemfile']
|
14
|
+
|
15
|
+
s.required_ruby_version = '>= 2.7.0'
|
16
|
+
|
17
|
+
s.add_dependency 'colorize', '~> 0.8', '>= 0.8.1'
|
18
|
+
s.add_dependency 'eac_config', '~> 0.15'
|
19
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.128', '>= 0.128.3'
|
20
|
+
s.add_dependency 'tty-table', '~> 0.12'
|
21
|
+
|
22
|
+
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.12'
|
23
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EacCli
|
4
|
+
class Config < ::SimpleDelegator
|
5
|
+
class Entry < ::EacConfig::NodeEntry
|
6
|
+
class Options
|
7
|
+
enable_simple_cache
|
8
|
+
enable_listable
|
9
|
+
|
10
|
+
lists.add_symbol :type, :undefined
|
11
|
+
|
12
|
+
DEFAULT_VALUES = {
|
13
|
+
before_input: nil, bool: false, list: false, noecho: false, noenv: false, noinput: false,
|
14
|
+
required: true, store: true, type: TYPE_UNDEFINED, validator: nil
|
15
|
+
}.freeze
|
16
|
+
|
17
|
+
lists.add_symbol :option, *DEFAULT_VALUES.keys
|
18
|
+
|
19
|
+
common_constructor :options do
|
20
|
+
self.options = self.class.lists.option.hash_keys_validate!(options)
|
21
|
+
end
|
22
|
+
|
23
|
+
delegate :to_h, to: :options
|
24
|
+
|
25
|
+
def [](key)
|
26
|
+
values.fetch(key.to_sym)
|
27
|
+
end
|
28
|
+
|
29
|
+
def request_input_options
|
30
|
+
values.slice(:bool, :list, :noecho)
|
31
|
+
end
|
32
|
+
|
33
|
+
DEFAULT_VALUES.each do |attr, default_value|
|
34
|
+
define_method(attr.to_s + ([true, false].include?(default_value) ? '?' : '')) do
|
35
|
+
self[attr]
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
private
|
40
|
+
|
41
|
+
def values_uncached
|
42
|
+
consumer = options.to_options_consumer
|
43
|
+
r = {}
|
44
|
+
DEFAULT_VALUES.each do |key, default_value|
|
45
|
+
value = consumer.consume(key)
|
46
|
+
value = default_value if value.nil?
|
47
|
+
r[key] = value
|
48
|
+
end
|
49
|
+
consumer.validate
|
50
|
+
r
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EacCli
|
4
|
+
class Config < ::SimpleDelegator
|
5
|
+
class Entry < ::EacConfig::NodeEntry
|
6
|
+
module Undefined
|
7
|
+
private
|
8
|
+
|
9
|
+
def undefined_value
|
10
|
+
loop do
|
11
|
+
entry_value = undefined_value_no_loop
|
12
|
+
next unless options[:validator].if_present(true) { |v| v.call(entry_value) }
|
13
|
+
|
14
|
+
return entry_value
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def undefined_value_no_loop
|
19
|
+
input("Value for entry \"#{path}\"", options.request_input_options)
|
20
|
+
rescue ::EacCli::Speaker::InputRequested
|
21
|
+
raise ::EacConfig::Entry::NotFoundError, self
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EacCli
|
4
|
+
class Config < ::SimpleDelegator
|
5
|
+
class Entry < ::EacConfig::NodeEntry
|
6
|
+
require_sub __FILE__, include_modules: true
|
7
|
+
enable_listable
|
8
|
+
enable_simple_cache
|
9
|
+
enable_speaker
|
10
|
+
|
11
|
+
common_constructor :root_node, :path, :options, super_args: -> { [root_node, path] } do
|
12
|
+
self.options = ::EacCli::Config::Entry::Options.new(options)
|
13
|
+
end
|
14
|
+
|
15
|
+
# @return [EacCli::Config]
|
16
|
+
def config
|
17
|
+
root_node
|
18
|
+
end
|
19
|
+
|
20
|
+
# @return [Object, nil]
|
21
|
+
def value
|
22
|
+
sub_entry.found? ? sub_value_to_return : nil
|
23
|
+
end
|
24
|
+
|
25
|
+
def value!
|
26
|
+
return sub_value_to_return if sub_entry.found?
|
27
|
+
return nil unless options.required?
|
28
|
+
|
29
|
+
input_value
|
30
|
+
end
|
31
|
+
|
32
|
+
def secret_value
|
33
|
+
self.class.new(config, path, options.to_h.merge(noecho: true).to_h).value
|
34
|
+
end
|
35
|
+
|
36
|
+
delegate :found?, :value=, to: :sub_entry
|
37
|
+
|
38
|
+
private
|
39
|
+
|
40
|
+
def sub_value_to_return
|
41
|
+
sub_entry.value.presence || ::EacRubyUtils::BlankNotBlank.instance
|
42
|
+
end
|
43
|
+
|
44
|
+
def sub_entry_uncached
|
45
|
+
config.sub.entry(path)
|
46
|
+
end
|
47
|
+
|
48
|
+
def input_value_uncached
|
49
|
+
r = send("#{options.type}_value")
|
50
|
+
sub_entry.value = r if options.store?
|
51
|
+
r
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|