avm-tools 0.74.1 → 0.77.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avm/eac_rails_base1/runner/bundle.rb +2 -2
  3. data/lib/avm/eac_rails_base1/runner/code_runner.rb +3 -3
  4. data/lib/avm/eac_webapp_base0/deploy.rb +17 -40
  5. data/lib/avm/eac_webapp_base0/deploy/build.rb +48 -0
  6. data/lib/avm/eac_webapp_base0/deploy/git_info.rb +13 -0
  7. data/lib/avm/eac_webapp_base0/deploy/version.rb +4 -0
  8. data/lib/avm/eac_webapp_base0/deploy/write_on_target.rb +18 -0
  9. data/lib/avm/eac_webapp_base0/runner/deploy.rb +1 -0
  10. data/lib/avm/eac_writings_base0/apache_host.rb +17 -0
  11. data/lib/avm/eac_writings_base0/deploy.rb +36 -0
  12. data/lib/avm/eac_writings_base0/instance.rb +11 -0
  13. data/lib/avm/files/appendable.rb +55 -0
  14. data/lib/avm/files/appendable/file_content.rb +24 -0
  15. data/lib/avm/files/appendable/plain_directory.rb +25 -0
  16. data/lib/avm/files/appendable/resource_base.rb +13 -0
  17. data/lib/avm/files/appendable/tar_output_command.rb +26 -0
  18. data/lib/avm/files/appendable/templatized_directory.rb +28 -0
  19. data/lib/avm/files/appender.rb +11 -0
  20. data/lib/avm/files/deploy.rb +72 -0
  21. data/lib/avm/files/formatter.rb +8 -4
  22. data/lib/avm/git/auto_commit_path.rb +2 -4
  23. data/lib/avm/git/auto_commit_path/ruby.rb +20 -0
  24. data/lib/avm/git/commit/deploy.rb +8 -61
  25. data/lib/avm/tools/runner/eac_rails_base0/rails_server.rb +1 -0
  26. data/lib/avm/tools/runner/eac_redmine_base0/project_rename.rb +7 -16
  27. data/lib/avm/tools/runner/eac_writings_base0.rb +15 -0
  28. data/lib/avm/tools/runner/files/format.rb +3 -2
  29. data/lib/avm/tools/runner/git/auto_commit.rb +11 -0
  30. data/lib/avm/tools/runner/git/deploy.rb +1 -1
  31. data/lib/avm/tools/version.rb +1 -1
  32. data/template/avm/eac_redmine_base0/deploy/config/install.sh.template +12 -0
  33. data/template/avm/{stereotypes/eac_ubuntu_base0 → eac_ubuntu_base0}/docker_image/Dockerfile +0 -0
  34. data/template/avm/{stereotypes/eac_wordpress_base0 → eac_wordpress_base0}/deploy/wp-config.php.template +0 -0
  35. data/template/avm/eac_writings_base0/deploy/index.html.template +9 -0
  36. data/vendor/eac_cli/eac_cli.gemspec +1 -1
  37. data/vendor/eac_cli/lib/eac_cli/definition.rb +49 -22
  38. data/vendor/eac_cli/lib/eac_cli/definition/alternative.rb +83 -0
  39. data/vendor/eac_cli/lib/eac_cli/definition/base_option.rb +17 -1
  40. data/vendor/eac_cli/lib/eac_cli/{parser/options_collection.rb → definition/help_formatter.rb} +20 -49
  41. data/vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb +21 -4
  42. data/vendor/eac_cli/lib/eac_cli/docopt/doc_builder.rb +18 -40
  43. data/vendor/eac_cli/lib/eac_cli/docopt/doc_builder/alternative.rb +50 -0
  44. data/vendor/eac_cli/lib/eac_cli/docopt/runner_extension.rb +1 -0
  45. data/vendor/eac_cli/lib/eac_cli/parser.rb +21 -3
  46. data/vendor/eac_cli/lib/eac_cli/parser/alternative.rb +88 -0
  47. data/vendor/eac_cli/lib/eac_cli/parser/alternative/argv.rb +17 -0
  48. data/vendor/eac_cli/lib/eac_cli/parser/alternative/double_dash.rb +24 -0
  49. data/vendor/eac_cli/lib/eac_cli/parser/alternative/options.rb +58 -0
  50. data/vendor/eac_cli/lib/eac_cli/parser/alternative/positionals.rb +30 -0
  51. data/vendor/eac_cli/lib/eac_cli/parser/collector.rb +4 -0
  52. data/vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb +2 -1
  53. data/vendor/eac_cli/lib/eac_cli/runner.rb +6 -2
  54. data/vendor/eac_cli/lib/eac_cli/runner_with/help.rb +1 -1
  55. data/vendor/eac_cli/lib/eac_cli/runner_with/subcommands.rb +96 -0
  56. data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
  57. data/vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb +14 -0
  58. data/vendor/eac_cli/spec/lib/eac_cli/docopt/runner_extension_spec.rb +35 -0
  59. data/vendor/eac_cli/spec/lib/eac_cli/parser/alternative_spec.rb +140 -0
  60. data/vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb +57 -40
  61. data/vendor/eac_cli/spec/lib/eac_cli/runner_with/subcommands_spec.rb +57 -0
  62. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb +32 -1
  63. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +1 -1
  64. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
  65. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/abstract_methods.rb +59 -0
  66. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs.rb +7 -107
  67. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/entry_reader.rb +81 -0
  68. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/password_entry_reader.rb +18 -0
  69. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/read_entry_options.rb +46 -0
  70. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/store_passwords_entry_reader.rb +27 -0
  71. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator.rb +4 -0
  72. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator/current.rb +9 -0
  73. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator/stopped.rb +14 -0
  74. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb +17 -0
  75. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  76. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/yaml.rb +3 -2
  77. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/abstract_methods_spec.rb +28 -0
  78. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerator/current_spec.rb +26 -0
  79. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerator/stopped_spec.rb +32 -0
  80. metadata +45 -12
  81. data/lib/avm/git/commit/deploy/appended.rb +0 -37
  82. data/lib/avm/git/commit/deploy/appended/base.rb +0 -17
  83. data/lib/avm/git/commit/deploy/appended/directory.rb +0 -32
  84. data/lib/avm/git/commit/deploy/appended/file_content.rb +0 -28
  85. data/lib/avm/tools/runner/eac_rails_base0/bundle.rb +0 -14
  86. data/vendor/eac_cli/lib/eac_cli/parser/parse_result.rb +0 -21
  87. data/vendor/eac_cli/lib/eac_cli/parser/positional_collection.rb +0 -49
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/abstract_methods'
4
+
5
+ RSpec.describe(::EacRubyUtils::AbstractMethods) do
6
+ let(:base_class) do
7
+ the_module = described_class
8
+ ::Class.new do
9
+ include the_module
10
+
11
+ abstract_methods :method1, :method2
12
+ end
13
+ end
14
+ let(:base_instance) { base_class.new }
15
+ let(:sub_class) do
16
+ ::Class.new(base_class) do
17
+ def method1
18
+ 'a result'
19
+ end
20
+ end
21
+ end
22
+ let(:sub_instance) { sub_class.new }
23
+
24
+ it { expect { base_instance.method1 }.to raise_error(::NoMethodError) }
25
+ it { expect { base_instance.method2 }.to raise_error(::NoMethodError) }
26
+ it { expect(sub_instance.method1).to eq('a result') }
27
+ it { expect { sub_instance.method2 }.to raise_error(::NoMethodError) }
28
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/patches/enumerator/current'
4
+
5
+ RSpec.describe ::Enumerator do
6
+ let(:list) { %w[a b] }
7
+ let(:instance) { list.each }
8
+
9
+ it { expect(instance).to be_a(described_class) }
10
+ it { expect(instance.current).to eq('a') }
11
+
12
+ context 'with first next' do
13
+ before { instance.next }
14
+
15
+ it { expect(instance.current).to eq('b') }
16
+ end
17
+
18
+ context 'with last next' do
19
+ before do
20
+ instance.next
21
+ instance.next
22
+ end
23
+
24
+ it { expect(instance.current).to eq(nil) }
25
+ end
26
+ end
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/patches/enumerator/stopped'
4
+
5
+ RSpec.describe ::Enumerator do
6
+ let(:list) { %w[a b] }
7
+ let(:instance) { list.each }
8
+
9
+ it { expect(instance).to be_a(described_class) }
10
+ it { expect(instance.peek).to eq('a') }
11
+ it { expect(instance).to be_ongoing }
12
+ it { expect(instance).not_to be_stopped }
13
+
14
+ context 'with first next' do
15
+ before { instance.next }
16
+
17
+ it { expect(instance.peek).to eq('b') }
18
+ it { expect(instance).to be_ongoing }
19
+ it { expect(instance).not_to be_stopped }
20
+ end
21
+
22
+ context 'with last next' do
23
+ before do
24
+ instance.next
25
+ instance.next
26
+ end
27
+
28
+ it { expect { instance.peek }.to raise_error(::StopIteration) }
29
+ it { expect(instance).not_to be_ongoing }
30
+ it { expect(instance).to be_stopped }
31
+ end
32
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.74.1
4
+ version: 0.77.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-30 00:00:00.000000000 Z
11
+ date: 2020-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -314,9 +314,11 @@ files:
314
314
  - lib/avm/eac_webapp_base0/apache_host.rb
315
315
  - lib/avm/eac_webapp_base0/deploy.rb
316
316
  - lib/avm/eac_webapp_base0/deploy/appended_directories.rb
317
+ - lib/avm/eac_webapp_base0/deploy/build.rb
317
318
  - lib/avm/eac_webapp_base0/deploy/file_unit.rb
318
319
  - lib/avm/eac_webapp_base0/deploy/git_info.rb
319
320
  - lib/avm/eac_webapp_base0/deploy/version.rb
321
+ - lib/avm/eac_webapp_base0/deploy/write_on_target.rb
320
322
  - lib/avm/eac_webapp_base0/instance.rb
321
323
  - lib/avm/eac_webapp_base0/runner.rb
322
324
  - lib/avm/eac_webapp_base0/runner/apache_host.rb
@@ -329,17 +331,28 @@ files:
329
331
  - lib/avm/eac_wordpress_base0/deploy.rb
330
332
  - lib/avm/eac_wordpress_base0/instance.rb
331
333
  - lib/avm/eac_writings_base0.rb
334
+ - lib/avm/eac_writings_base0/apache_host.rb
332
335
  - lib/avm/eac_writings_base0/commons.rb
336
+ - lib/avm/eac_writings_base0/deploy.rb
333
337
  - lib/avm/eac_writings_base0/file_build.rb
334
338
  - lib/avm/eac_writings_base0/file_build/base_stereotype.rb
335
339
  - lib/avm/eac_writings_base0/file_build/chapter_index.rb
336
340
  - lib/avm/eac_writings_base0/file_build/tex_source.rb
341
+ - lib/avm/eac_writings_base0/instance.rb
337
342
  - lib/avm/eac_writings_base0/project.rb
338
343
  - lib/avm/eac_writings_base0/project_build.rb
339
344
  - lib/avm/eac_writings_base0/project_build/chapters_content.rb
340
345
  - lib/avm/eac_writings_base0/project_build/copy_files.rb
341
346
  - lib/avm/executables.rb
342
347
  - lib/avm/files.rb
348
+ - lib/avm/files/appendable.rb
349
+ - lib/avm/files/appendable/file_content.rb
350
+ - lib/avm/files/appendable/plain_directory.rb
351
+ - lib/avm/files/appendable/resource_base.rb
352
+ - lib/avm/files/appendable/tar_output_command.rb
353
+ - lib/avm/files/appendable/templatized_directory.rb
354
+ - lib/avm/files/appender.rb
355
+ - lib/avm/files/deploy.rb
343
356
  - lib/avm/files/formatter.rb
344
357
  - lib/avm/files/formatter/formats.rb
345
358
  - lib/avm/files/formatter/formats/base.rb
@@ -356,13 +369,10 @@ files:
356
369
  - lib/avm/fs_cache.rb
357
370
  - lib/avm/git.rb
358
371
  - lib/avm/git/auto_commit_path.rb
372
+ - lib/avm/git/auto_commit_path/ruby.rb
359
373
  - lib/avm/git/commit.rb
360
374
  - lib/avm/git/commit/class_methods.rb
361
375
  - lib/avm/git/commit/deploy.rb
362
- - lib/avm/git/commit/deploy/appended.rb
363
- - lib/avm/git/commit/deploy/appended/base.rb
364
- - lib/avm/git/commit/deploy/appended/directory.rb
365
- - lib/avm/git/commit/deploy/appended/file_content.rb
366
376
  - lib/avm/git/commit/deploy_methods.rb
367
377
  - lib/avm/git/commit/diff_tree_line.rb
368
378
  - lib/avm/git/commit/file.rb
@@ -475,7 +485,6 @@ files:
475
485
  - lib/avm/tools/runner.rb
476
486
  - lib/avm/tools/runner/eac_rails_base0.rb
477
487
  - lib/avm/tools/runner/eac_rails_base0/apache_path.rb
478
- - lib/avm/tools/runner/eac_rails_base0/bundle.rb
479
488
  - lib/avm/tools/runner/eac_rails_base0/rails_server.rb
480
489
  - lib/avm/tools/runner/eac_rails_base0/runner.rb
481
490
  - lib/avm/tools/runner/eac_redmine_base0.rb
@@ -483,6 +492,7 @@ files:
483
492
  - lib/avm/tools/runner/eac_redmine_base0/docker.rb
484
493
  - lib/avm/tools/runner/eac_redmine_base0/project_rename.rb
485
494
  - lib/avm/tools/runner/eac_wordpress_base0.rb
495
+ - lib/avm/tools/runner/eac_writings_base0.rb
486
496
  - lib/avm/tools/runner/files.rb
487
497
  - lib/avm/tools/runner/files/format.rb
488
498
  - lib/avm/tools/runner/files/rotate.rb
@@ -562,7 +572,9 @@ files:
562
572
  - template/avm/eac_rails_base0/deploy/config/envvars.d/email.yml.template
563
573
  - template/avm/eac_redmine_base0/deploy/config/install.sh.template
564
574
  - template/avm/eac_redmine_base0/deploy/config/secrets.yml
575
+ - template/avm/eac_ubuntu_base0/docker_image/Dockerfile
565
576
  - template/avm/eac_webapp_base0/apache_host/no_ssl.conf
577
+ - template/avm/eac_wordpress_base0/deploy/wp-config.php.template
566
578
  - template/avm/eac_writings_base0/commons/all.tex
567
579
  - template/avm/eac_writings_base0/commons/ebook.tex
568
580
  - template/avm/eac_writings_base0/commons/images.tex
@@ -571,6 +583,7 @@ files:
571
583
  - template/avm/eac_writings_base0/commons/source_code.tex
572
584
  - template/avm/eac_writings_base0/commons/source_code/java.tex
573
585
  - template/avm/eac_writings_base0/commons/utils.tex
586
+ - template/avm/eac_writings_base0/deploy/index.html.template
574
587
  - template/avm/ruby/gems/generator/gemspec.template
575
588
  - template/avm/ruby/gems/generator/root_lib.template
576
589
  - template/avm/ruby/gems/generator/static/Gemfile
@@ -579,26 +592,29 @@ files:
579
592
  - template/avm/ruby/gems/generator/version.template
580
593
  - template/avm/self/docker_image/Dockerfile
581
594
  - template/avm/self/docker_image/entrypoint.sh
582
- - template/avm/stereotypes/eac_ubuntu_base0/docker_image/Dockerfile
583
- - template/avm/stereotypes/eac_wordpress_base0/deploy/wp-config.php.template
584
595
  - vendor/eac_cli/Gemfile
585
596
  - vendor/eac_cli/eac_cli.gemspec
586
597
  - vendor/eac_cli/lib/eac_cli.rb
587
598
  - vendor/eac_cli/lib/eac_cli/core_ext.rb
588
599
  - vendor/eac_cli/lib/eac_cli/default_runner.rb
589
600
  - vendor/eac_cli/lib/eac_cli/definition.rb
601
+ - vendor/eac_cli/lib/eac_cli/definition/alternative.rb
590
602
  - vendor/eac_cli/lib/eac_cli/definition/argument_option.rb
591
603
  - vendor/eac_cli/lib/eac_cli/definition/base_option.rb
592
604
  - vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb
605
+ - vendor/eac_cli/lib/eac_cli/definition/help_formatter.rb
593
606
  - vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb
594
607
  - vendor/eac_cli/lib/eac_cli/docopt/doc_builder.rb
608
+ - vendor/eac_cli/lib/eac_cli/docopt/doc_builder/alternative.rb
595
609
  - vendor/eac_cli/lib/eac_cli/docopt/runner_extension.rb
596
610
  - vendor/eac_cli/lib/eac_cli/parser.rb
611
+ - vendor/eac_cli/lib/eac_cli/parser/alternative.rb
612
+ - vendor/eac_cli/lib/eac_cli/parser/alternative/argv.rb
613
+ - vendor/eac_cli/lib/eac_cli/parser/alternative/double_dash.rb
614
+ - vendor/eac_cli/lib/eac_cli/parser/alternative/options.rb
615
+ - vendor/eac_cli/lib/eac_cli/parser/alternative/positionals.rb
597
616
  - vendor/eac_cli/lib/eac_cli/parser/collector.rb
598
617
  - vendor/eac_cli/lib/eac_cli/parser/error.rb
599
- - vendor/eac_cli/lib/eac_cli/parser/options_collection.rb
600
- - vendor/eac_cli/lib/eac_cli/parser/parse_result.rb
601
- - vendor/eac_cli/lib/eac_cli/parser/positional_collection.rb
602
618
  - vendor/eac_cli/lib/eac_cli/patches.rb
603
619
  - vendor/eac_cli/lib/eac_cli/patches/object.rb
604
620
  - vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb
@@ -607,8 +623,13 @@ files:
607
623
  - vendor/eac_cli/lib/eac_cli/runner_with.rb
608
624
  - vendor/eac_cli/lib/eac_cli/runner_with/help.rb
609
625
  - vendor/eac_cli/lib/eac_cli/runner_with/output_file.rb
626
+ - vendor/eac_cli/lib/eac_cli/runner_with/subcommands.rb
610
627
  - vendor/eac_cli/lib/eac_cli/version.rb
628
+ - vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
629
+ - vendor/eac_cli/spec/lib/eac_cli/docopt/runner_extension_spec.rb
630
+ - vendor/eac_cli/spec/lib/eac_cli/parser/alternative_spec.rb
611
631
  - vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb
632
+ - vendor/eac_cli/spec/lib/eac_cli/runner_with/subcommands_spec.rb
612
633
  - vendor/eac_cli/spec/rubocop_spec.rb
613
634
  - vendor/eac_cli/spec/spec_helper.rb
614
635
  - vendor/eac_docker/Gemfile
@@ -873,6 +894,7 @@ files:
873
894
  - vendor/eac_ruby_utils/README.rdoc
874
895
  - vendor/eac_ruby_utils/eac_ruby_utils.gemspec
875
896
  - vendor/eac_ruby_utils/lib/eac_ruby_utils.rb
897
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/abstract_methods.rb
876
898
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/arguments_consumer.rb
877
899
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb
878
900
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/boolean.rb
@@ -884,6 +906,10 @@ files:
884
906
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/configs/file.rb
885
907
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/console.rb
886
908
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs.rb
909
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/entry_reader.rb
910
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/password_entry_reader.rb
911
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/read_entry_options.rb
912
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/store_passwords_entry_reader.rb
887
913
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner.rb
888
914
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
889
915
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_doc.rb
@@ -947,6 +973,9 @@ files:
947
973
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/common_constructor.rb
948
974
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable.rb
949
975
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable/boolean_combinations.rb
976
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator.rb
977
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator/current.rb
978
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator/stopped.rb
950
979
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/hash.rb
951
980
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/options_consumer.rb
952
981
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/sym_keys_hash.rb
@@ -960,6 +989,7 @@ files:
960
989
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/simple_cache.rb
961
990
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object.rb
962
991
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/asserts.rb
992
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
963
993
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_present.rb
964
994
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_respond.rb
965
995
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
@@ -999,6 +1029,7 @@ files:
999
1029
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb
1000
1030
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb
1001
1031
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/yaml.rb
1032
+ - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/abstract_methods_spec.rb
1002
1033
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/arguments_consumer_spec.rb
1003
1034
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/blank_not_blank_spec.rb
1004
1035
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/common_concern_spec.rb
@@ -1018,6 +1049,8 @@ files:
1018
1049
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/listable_spec.rb
1019
1050
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/options_consumer_spec.rb
1020
1051
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerable/boolean_combinations_spec.rb
1052
+ - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerator/current_spec.rb
1053
+ - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerator/stopped_spec.rb
1021
1054
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/hash/options_consumer_spec.rb
1022
1055
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/hash/sym_keys_hash_spec.rb
1023
1056
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/console_speaker_spec.rb
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Avm
4
- module Git
5
- class Commit
6
- class Deploy
7
- module Appended
8
- require_sub __FILE__
9
-
10
- def appended
11
- @appended ||= []
12
- end
13
-
14
- def append_directory(directory)
15
- appended << ::Avm::Git::Commit::Deploy::Appended::Directory.new(self, directory)
16
- self
17
- end
18
-
19
- def append_directories(directories)
20
- directories.each { |directory| append_directory(directory) }
21
- self
22
- end
23
-
24
- def append_file_content(target_path, content)
25
- appended << ::Avm::Git::Commit::Deploy::Appended::FileContent
26
- .new(self, target_path, content)
27
- self
28
- end
29
-
30
- def copy_appended_content
31
- appended.each(&:copy_to_build_dir)
32
- end
33
- end
34
- end
35
- end
36
- end
37
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Avm
6
- module Git
7
- class Commit
8
- class Deploy
9
- module Appended
10
- class Base
11
- common_constructor :deploy
12
- end
13
- end
14
- end
15
- end
16
- end
17
- end
@@ -1,32 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
- require 'avm/git/commit/deploy/appended/base'
5
-
6
- module Avm
7
- module Git
8
- class Commit
9
- class Deploy
10
- module Appended
11
- class Directory < ::Avm::Git::Commit::Deploy::Appended::Base
12
- attr_reader :source_path
13
-
14
- def initialize(deploy, source_path)
15
- super(deploy)
16
- @source_path = source_path
17
- end
18
-
19
- def copy_to_build_dir
20
- raise 'Variables source not set' if deploy.variables_source.blank?
21
-
22
- ::EacRubyUtils::Templates::Directory.new(source_path).apply(
23
- deploy.variables_source,
24
- deploy.build_dir
25
- )
26
- end
27
- end
28
- end
29
- end
30
- end
31
- end
32
- end
@@ -1,28 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
- require 'avm/git/commit/deploy/appended/base'
5
-
6
- module Avm
7
- module Git
8
- class Commit
9
- class Deploy
10
- module Appended
11
- class FileContent < ::Avm::Git::Commit::Deploy::Appended::Base
12
- attr_reader :target_path, :content
13
-
14
- def initialize(deploy, target_path, content)
15
- super(deploy)
16
- @target_path = target_path
17
- @content = content
18
- end
19
-
20
- def copy_to_build_dir
21
- deploy.build_dir.to_pathname.join(target_path).write(content)
22
- end
23
- end
24
- end
25
- end
26
- end
27
- end
28
- end
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_rails_base1/runner/bundle'
4
-
5
- module Avm
6
- module Tools
7
- class Runner < ::EacRubyUtils::Console::DocoptRunner
8
- class EacRailsBase0 < ::Avm::EacRailsBase1::Runner
9
- class Bundle < ::Avm::EacRailsBase1::Runner::Bundle
10
- end
11
- end
12
- end
13
- end
14
- end
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module EacCli
6
- class Parser
7
- class ParseResult
8
- common_constructor :definition, :argv
9
-
10
- def result
11
- ::EacCli::Parser::Collector.to_data(definition) do |collector|
12
- ::EacCli::Parser::PositionalCollection.new(
13
- definition,
14
- ::EacCli::Parser::OptionsCollection.new(definition, argv, collector).arguments,
15
- collector
16
- )
17
- end
18
- end
19
- end
20
- end
21
- end