avm-tools 0.92.0 → 0.94.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avm/eac_asciidoctor_base0/apache_path.rb +10 -0
  3. data/lib/avm/eac_rails_base0/apache_path.rb +6 -38
  4. data/lib/avm/eac_webapp_base0/apache_host.rb +7 -31
  5. data/lib/avm/eac_webapp_base0/apache_path.rb +51 -0
  6. data/lib/avm/eac_webapp_base0/deploy.rb +12 -30
  7. data/lib/avm/eac_webapp_base0/instance.rb +5 -2
  8. data/lib/avm/eac_webapp_base0/instance/subcommand_parent.rb +24 -0
  9. data/lib/avm/eac_webapp_base0/runner/apache_host.rb +7 -10
  10. data/lib/avm/eac_webapp_base0/runner/apache_path.rb +40 -0
  11. data/lib/avm/eac_webapp_base0/runner/data.rb +7 -15
  12. data/lib/avm/eac_webapp_base0/runner/data/dump.rb +18 -24
  13. data/lib/avm/eac_webapp_base0/runner/data/load.rb +12 -23
  14. data/lib/avm/git/auto_commit/commit_info.rb +2 -1
  15. data/lib/avm/git/auto_commit/rules.rb +4 -4
  16. data/lib/avm/git/auto_commit/rules/new.rb +24 -0
  17. data/lib/avm/git/auto_commit/rules/nth.rb +8 -0
  18. data/lib/avm/git/auto_commit_path.rb +0 -21
  19. data/lib/avm/git/file_auto_fixup.rb +19 -3
  20. data/lib/avm/tools/runner/eac_redmine_base0/core_update.rb +7 -11
  21. data/lib/avm/tools/runner/git/auto_commit.rb +28 -28
  22. data/lib/avm/tools/runner/git/subrepo/fix.rb +1 -1
  23. data/lib/avm/tools/runner/local_project/ruby.rb +3 -7
  24. data/lib/avm/tools/runner/local_project/ruby/bundler.rb +4 -8
  25. data/lib/avm/tools/runner/local_project/ruby/bundler/gemfile_lock.rb +11 -14
  26. data/lib/avm/tools/runner/ruby.rb +6 -14
  27. data/lib/avm/tools/runner/ruby/gems.rb +4 -7
  28. data/lib/avm/tools/runner/ruby/gems/generate.rb +12 -23
  29. data/lib/avm/tools/runner/ruby/rubocop.rb +1 -1
  30. data/lib/avm/tools/version.rb +1 -1
  31. data/template/avm/eac_rails_base0/apache_path/extra_content.conf +5 -0
  32. data/template/avm/eac_webapp_base0/apache_path/default.conf +9 -0
  33. data/vendor/avm-apps/Gemfile +5 -0
  34. data/vendor/avm-apps/avm-apps.gemspec +18 -0
  35. data/vendor/avm-apps/lib/avm/apps.rb +9 -0
  36. data/vendor/avm-apps/lib/avm/apps/jobs.rb +11 -0
  37. data/vendor/avm-apps/lib/avm/apps/jobs/base.rb +64 -0
  38. data/vendor/avm-apps/lib/avm/apps/jobs/variables_source.rb +24 -0
  39. data/vendor/avm-apps/lib/avm/apps/version.rb +7 -0
  40. data/vendor/avm-apps/spec/rubocop_spec.rb +7 -0
  41. data/vendor/avm-apps/spec/spec_helper.rb +100 -0
  42. data/vendor/eac_cli/lib/eac_cli/core_ext.rb +2 -0
  43. data/vendor/eac_cli/lib/eac_cli/definition/alternative.rb +4 -7
  44. data/vendor/eac_cli/lib/eac_cli/definition/base_option.rb +20 -9
  45. data/vendor/eac_cli/lib/eac_cli/definition/base_option/initialize_args_parser.rb +47 -0
  46. data/vendor/eac_cli/lib/eac_cli/docopt/doc_builder.rb +15 -1
  47. data/vendor/eac_cli/lib/eac_cli/parser/alternative/short_options.rb +4 -2
  48. data/vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb +2 -1
  49. data/vendor/eac_cli/lib/eac_cli/runner/context.rb +2 -1
  50. data/vendor/eac_cli/lib/eac_cli/runner/instance_methods.rb +8 -1
  51. data/vendor/eac_cli/lib/eac_cli/runner_with_set.rb +50 -0
  52. data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
  53. data/vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb +4 -0
  54. data/vendor/eac_git/eac_git.gemspec +1 -0
  55. data/vendor/eac_git/lib/eac_git/local.rb +4 -0
  56. data/vendor/eac_git/lib/eac_git/local/commit.rb +53 -0
  57. data/vendor/eac_git/lib/eac_git/local/commit/changed_file.rb +46 -0
  58. data/vendor/eac_git/lib/eac_git/local/commit/diff_tree_line.rb +32 -0
  59. data/vendor/eac_git/lib/eac_git/local/dirty_files.rb +2 -3
  60. data/vendor/eac_git/lib/eac_git/rspec.rb +6 -1
  61. data/{lib/avm/git/spec_helper.rb → vendor/eac_git/lib/eac_git/rspec/stubbed_git_local_repo.rb} +16 -13
  62. data/vendor/eac_git/lib/eac_git/version.rb +1 -1
  63. data/vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec.rb +13 -0
  64. data/vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/add.source.out +1 -0
  65. data/vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/add.target.yaml +7 -0
  66. data/vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/modify.source.out +1 -0
  67. data/vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/modify.target.yaml +7 -0
  68. data/vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/remove.source.out +1 -0
  69. data/vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/remove.target.yaml +7 -0
  70. data/vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/rename.source.out +2 -0
  71. data/vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/rename.target.yaml +13 -0
  72. data/vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/rename_modify.source.out +2 -0
  73. data/vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/rename_modify.target.yaml +13 -0
  74. data/vendor/eac_git/spec/lib/eac_git/local/commit_spec.rb +58 -0
  75. data/vendor/eac_git/spec/spec_helper.rb +1 -0
  76. data/vendor/eac_ruby_base0/eac_ruby_base0.gemspec +3 -3
  77. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/core_ext.rb +4 -0
  78. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/jobs_runner.rb +31 -0
  79. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches.rb +4 -0
  80. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/class.rb +4 -0
  81. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/class/jobs_runner.rb +10 -0
  82. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/object.rb +5 -0
  83. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/object/runner_with.rb +5 -0
  84. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with.rb +9 -0
  85. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with/confirmation.rb +36 -0
  86. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with/filesystem_traverser.rb +52 -0
  87. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with/output.rb +58 -0
  88. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
  89. data/vendor/eac_ruby_base0/spec/lib/eac_ruby_base0/runner_with/confirmation_spec.rb +42 -0
  90. data/vendor/eac_ruby_base0/spec/lib/eac_ruby_base0/runner_with/output_spec.rb +81 -0
  91. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/base.rb +7 -10
  92. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple.rb +9 -2
  93. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +1 -1
  94. data/vendor/eac_ruby_utils/eac_ruby_utils.gemspec +1 -0
  95. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/logs.rb +63 -0
  96. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/inflector.rb +9 -1
  97. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/list.rb +3 -2
  98. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/local_time_zone.rb +8 -2
  99. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/settings_provider.rb +10 -0
  100. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel/nyi.rb +4 -2
  101. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_nil.rb +17 -0
  102. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb +4 -2
  103. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb +11 -0
  104. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/settings_provider.rb +10 -29
  105. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/settings_provider/setting_value.rb +69 -0
  106. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  107. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/settings_provider_spec.rb +8 -0
  108. metadata +55 -9
  109. data/lib/avm/tools/runner/eac_rails_base0/apache_path.rb +0 -38
  110. data/lib/avm/tools/runner/git/auto_fixup.rb +0 -53
  111. data/template/avm/eac_rails_base0/apache_path/default.conf +0 -13
  112. data/vendor/eac_cli/lib/eac_cli/runner_with/output_file.rb +0 -30
  113. data/vendor/eac_cli/spec/lib/eac_cli/runner_with/output_file_spec.rb +0 -53
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_support/core_ext/string/inflections'
4
+ require 'eac_ruby_utils/listable'
5
+ require 'eac_ruby_utils/simple_cache'
6
+ require 'eac_ruby_utils/struct'
7
+
8
+ module EacRubyUtils
9
+ module SettingsProvider
10
+ class SettingValue
11
+ include ::EacRubyUtils::Listable
12
+ include ::EacRubyUtils::SimpleCache
13
+
14
+ attr_reader :source, :key, :options
15
+ lists.add_symbol :option, :default, :order, :required
16
+
17
+ def initialize(source, key, options)
18
+ @source = source
19
+ @key = key
20
+ @options = options
21
+ end
22
+
23
+ def constant_name(fullname = false)
24
+ name = key.to_s.underscore.upcase
25
+ name = "#{source.class.name}::#{name}" if fullname
26
+ name
27
+ end
28
+
29
+ def value
30
+ parsed_options.order.each do |method|
31
+ value = send("value_by_#{method}")
32
+ return value if value
33
+ end
34
+ return parsed_options.default if parsed_options.respond_to?(OPTION_DEFAULT)
35
+ return nil unless parsed_options.required
36
+
37
+ raise_key_not_found
38
+ end
39
+
40
+ def value_by_constant
41
+ source.class.const_get(constant_name)
42
+ rescue NameError
43
+ nil
44
+ end
45
+
46
+ def value_by_method
47
+ source.respond_to?(key, true) ? source.send(key) : nil
48
+ end
49
+
50
+ def value_by_settings_object
51
+ source.settings_object[key.to_s] || source.settings_object[key.to_sym]
52
+ end
53
+
54
+ private
55
+
56
+ def parsed_options_uncached
57
+ r = self.class.lists.option.hash_keys_validate!(options.symbolize_keys)
58
+ r[:required] = true unless r.key?(OPTION_REQUIRED)
59
+ r[:order] = source.setting_search_order if r[OPTION_ORDER].nil?
60
+ ::EacRubyUtils::Struct.new(r)
61
+ end
62
+
63
+ def raise_key_not_found
64
+ raise "Setting \"#{key}\" not found. Supply in #{source.settings_object_name}, implement "\
65
+ "a \"#{key}\" method or declare a #{constant_name(true)} constant."
66
+ end
67
+ end
68
+ end
69
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.58.1'
4
+ VERSION = '0.62.0'
5
5
  end
@@ -42,5 +42,13 @@ RSpec.describe ::EacRubyUtils::SettingsProvider do
42
42
  it do
43
43
  expect(stub.setting_value('key_e', required: false)).to eq(nil)
44
44
  end
45
+
46
+ it do
47
+ expect(stub.setting_value('key_e', default: nil)).to eq(nil)
48
+ end
49
+
50
+ it do
51
+ expect(stub.setting_value('key_e', default: 'default_e')).to eq('default_e')
52
+ end
45
53
  end
46
54
  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.92.0
4
+ version: 0.94.3
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: 2021-02-13 00:00:00.000000000 Z
11
+ date: 2021-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -312,6 +312,7 @@ files:
312
312
  - lib/avm/docker/runner.rb
313
313
  - lib/avm/eac_asciidoctor_base0.rb
314
314
  - lib/avm/eac_asciidoctor_base0/apache_host.rb
315
+ - lib/avm/eac_asciidoctor_base0/apache_path.rb
315
316
  - lib/avm/eac_asciidoctor_base0/build.rb
316
317
  - lib/avm/eac_asciidoctor_base0/build/file.rb
317
318
  - lib/avm/eac_asciidoctor_base0/deploy.rb
@@ -344,6 +345,7 @@ files:
344
345
  - lib/avm/eac_ubuntu_base0/docker_image.rb
345
346
  - lib/avm/eac_webapp_base0.rb
346
347
  - lib/avm/eac_webapp_base0/apache_host.rb
348
+ - lib/avm/eac_webapp_base0/apache_path.rb
347
349
  - lib/avm/eac_webapp_base0/deploy.rb
348
350
  - lib/avm/eac_webapp_base0/deploy/appended_directories.rb
349
351
  - lib/avm/eac_webapp_base0/deploy/build.rb
@@ -352,8 +354,10 @@ files:
352
354
  - lib/avm/eac_webapp_base0/deploy/version.rb
353
355
  - lib/avm/eac_webapp_base0/deploy/write_on_target.rb
354
356
  - lib/avm/eac_webapp_base0/instance.rb
357
+ - lib/avm/eac_webapp_base0/instance/subcommand_parent.rb
355
358
  - lib/avm/eac_webapp_base0/runner.rb
356
359
  - lib/avm/eac_webapp_base0/runner/apache_host.rb
360
+ - lib/avm/eac_webapp_base0/runner/apache_path.rb
357
361
  - lib/avm/eac_webapp_base0/runner/data.rb
358
362
  - lib/avm/eac_webapp_base0/runner/data/dump.rb
359
363
  - lib/avm/eac_webapp_base0/runner/data/load.rb
@@ -405,6 +409,7 @@ files:
405
409
  - lib/avm/git/auto_commit/rules/base.rb
406
410
  - lib/avm/git/auto_commit/rules/last.rb
407
411
  - lib/avm/git/auto_commit/rules/manual.rb
412
+ - lib/avm/git/auto_commit/rules/new.rb
408
413
  - lib/avm/git/auto_commit/rules/nth.rb
409
414
  - lib/avm/git/auto_commit/rules/unique.rb
410
415
  - lib/avm/git/auto_commit_path.rb
@@ -433,7 +438,6 @@ files:
433
438
  - lib/avm/git/organize/reference_update.rb
434
439
  - lib/avm/git/organize/repository.rb
435
440
  - lib/avm/git/revision_test.rb
436
- - lib/avm/git/spec_helper.rb
437
441
  - lib/avm/git/subrepo_check.rb
438
442
  - lib/avm/git/subrepo_check/parent.rb
439
443
  - lib/avm/git/subrepo_check/remote.rb
@@ -527,7 +531,6 @@ files:
527
531
  - lib/avm/tools/runner.rb
528
532
  - lib/avm/tools/runner/eac_asciidoctor_base0.rb
529
533
  - lib/avm/tools/runner/eac_rails_base0.rb
530
- - lib/avm/tools/runner/eac_rails_base0/apache_path.rb
531
534
  - lib/avm/tools/runner/eac_redmine_base0.rb
532
535
  - lib/avm/tools/runner/eac_redmine_base0/core_update.rb
533
536
  - lib/avm/tools/runner/eac_redmine_base0/docker.rb
@@ -540,7 +543,6 @@ files:
540
543
  - lib/avm/tools/runner/files/rotate.rb
541
544
  - lib/avm/tools/runner/git.rb
542
545
  - lib/avm/tools/runner/git/auto_commit.rb
543
- - lib/avm/tools/runner/git/auto_fixup.rb
544
546
  - lib/avm/tools/runner/git/commit.rb
545
547
  - lib/avm/tools/runner/git/deploy.rb
546
548
  - lib/avm/tools/runner/git/dirty_files.rb
@@ -613,13 +615,14 @@ files:
613
615
  - lib/eac_launcher/vendor.rb
614
616
  - lib/eac_launcher/vendor/github.rb
615
617
  - lib/eac_launcher/version.rb
616
- - template/avm/eac_rails_base0/apache_path/default.conf
618
+ - template/avm/eac_rails_base0/apache_path/extra_content.conf
617
619
  - template/avm/eac_rails_base0/deploy/config/database.yml.template
618
620
  - template/avm/eac_rails_base0/deploy/config/envvars.d/email.yml.template
619
621
  - template/avm/eac_redmine_base0/deploy/config/install.sh.template
620
622
  - template/avm/eac_redmine_base0/deploy/config/secrets.yml
621
623
  - template/avm/eac_ubuntu_base0/docker_image/Dockerfile
622
624
  - template/avm/eac_webapp_base0/apache_host/no_ssl.conf
625
+ - template/avm/eac_webapp_base0/apache_path/default.conf
623
626
  - template/avm/eac_wordpress_base0/deploy/wp-config.php.template
624
627
  - template/avm/eac_writings_base0/commons/all.tex
625
628
  - template/avm/eac_writings_base0/commons/ebook.tex
@@ -638,6 +641,15 @@ files:
638
641
  - template/avm/ruby/gems/generator/version.template
639
642
  - template/avm/self/docker_image/Dockerfile
640
643
  - template/avm/self/docker_image/entrypoint.sh
644
+ - vendor/avm-apps/Gemfile
645
+ - vendor/avm-apps/avm-apps.gemspec
646
+ - vendor/avm-apps/lib/avm/apps.rb
647
+ - vendor/avm-apps/lib/avm/apps/jobs.rb
648
+ - vendor/avm-apps/lib/avm/apps/jobs/base.rb
649
+ - vendor/avm-apps/lib/avm/apps/jobs/variables_source.rb
650
+ - vendor/avm-apps/lib/avm/apps/version.rb
651
+ - vendor/avm-apps/spec/rubocop_spec.rb
652
+ - vendor/avm-apps/spec/spec_helper.rb
641
653
  - vendor/eac_cli/Gemfile
642
654
  - vendor/eac_cli/eac_cli.gemspec
643
655
  - vendor/eac_cli/lib/eac_cli.rb
@@ -647,6 +659,7 @@ files:
647
659
  - vendor/eac_cli/lib/eac_cli/definition/alternative.rb
648
660
  - vendor/eac_cli/lib/eac_cli/definition/argument_option.rb
649
661
  - vendor/eac_cli/lib/eac_cli/definition/base_option.rb
662
+ - vendor/eac_cli/lib/eac_cli/definition/base_option/initialize_args_parser.rb
650
663
  - vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb
651
664
  - vendor/eac_cli/lib/eac_cli/definition/help_formatter.rb
652
665
  - vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb
@@ -675,15 +688,14 @@ files:
675
688
  - vendor/eac_cli/lib/eac_cli/runner/instance_methods.rb
676
689
  - vendor/eac_cli/lib/eac_cli/runner_with.rb
677
690
  - vendor/eac_cli/lib/eac_cli/runner_with/help.rb
678
- - vendor/eac_cli/lib/eac_cli/runner_with/output_file.rb
679
691
  - vendor/eac_cli/lib/eac_cli/runner_with/subcommands.rb
692
+ - vendor/eac_cli/lib/eac_cli/runner_with_set.rb
680
693
  - vendor/eac_cli/lib/eac_cli/version.rb
681
694
  - vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
682
695
  - vendor/eac_cli/spec/lib/eac_cli/docopt/runner_extension_spec.rb
683
696
  - vendor/eac_cli/spec/lib/eac_cli/parser/alternative_spec.rb
684
697
  - vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb
685
698
  - vendor/eac_cli/spec/lib/eac_cli/runner_with/help_spec.rb
686
- - vendor/eac_cli/spec/lib/eac_cli/runner_with/output_file_spec.rb
687
699
  - vendor/eac_cli/spec/lib/eac_cli/runner_with/subcommands_spec.rb
688
700
  - vendor/eac_cli/spec/rubocop_spec.rb
689
701
  - vendor/eac_cli/spec/spec_helper.rb
@@ -712,14 +724,30 @@ files:
712
724
  - vendor/eac_git/lib/eac_git.rb
713
725
  - vendor/eac_git/lib/eac_git/executables.rb
714
726
  - vendor/eac_git/lib/eac_git/local.rb
727
+ - vendor/eac_git/lib/eac_git/local/commit.rb
728
+ - vendor/eac_git/lib/eac_git/local/commit/changed_file.rb
729
+ - vendor/eac_git/lib/eac_git/local/commit/diff_tree_line.rb
715
730
  - vendor/eac_git/lib/eac_git/local/dirty_files.rb
716
731
  - vendor/eac_git/lib/eac_git/local/subrepo.rb
717
732
  - vendor/eac_git/lib/eac_git/local/subrepo/config.rb
718
733
  - vendor/eac_git/lib/eac_git/remote.rb
719
734
  - vendor/eac_git/lib/eac_git/remote/ls_result.rb
720
735
  - vendor/eac_git/lib/eac_git/rspec.rb
736
+ - vendor/eac_git/lib/eac_git/rspec/stubbed_git_local_repo.rb
721
737
  - vendor/eac_git/lib/eac_git/version.rb
722
738
  - vendor/eac_git/spec/lib/eac_git/executables_spec.rb
739
+ - vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec.rb
740
+ - vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/add.source.out
741
+ - vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/add.target.yaml
742
+ - vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/modify.source.out
743
+ - vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/modify.target.yaml
744
+ - vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/remove.source.out
745
+ - vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/remove.target.yaml
746
+ - vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/rename.source.out
747
+ - vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/rename.target.yaml
748
+ - vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/rename_modify.source.out
749
+ - vendor/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/rename_modify.target.yaml
750
+ - vendor/eac_git/spec/lib/eac_git/local/commit_spec.rb
723
751
  - vendor/eac_git/spec/rubocop_spec.rb
724
752
  - vendor/eac_git/spec/spec_helper.rb
725
753
  - vendor/eac_git/vendor/git-subrepo/Changes
@@ -911,9 +939,22 @@ files:
911
939
  - vendor/eac_ruby_base0/eac_ruby_base0.gemspec
912
940
  - vendor/eac_ruby_base0/lib/eac_ruby_base0.rb
913
941
  - vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
942
+ - vendor/eac_ruby_base0/lib/eac_ruby_base0/core_ext.rb
943
+ - vendor/eac_ruby_base0/lib/eac_ruby_base0/jobs_runner.rb
944
+ - vendor/eac_ruby_base0/lib/eac_ruby_base0/patches.rb
945
+ - vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/class.rb
946
+ - vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/class/jobs_runner.rb
947
+ - vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/object.rb
948
+ - vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/object/runner_with.rb
914
949
  - vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb
915
950
  - vendor/eac_ruby_base0/lib/eac_ruby_base0/runner/test_all.rb
951
+ - vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with.rb
952
+ - vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with/confirmation.rb
953
+ - vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with/filesystem_traverser.rb
954
+ - vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with/output.rb
916
955
  - vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb
956
+ - vendor/eac_ruby_base0/spec/lib/eac_ruby_base0/runner_with/confirmation_spec.rb
957
+ - vendor/eac_ruby_base0/spec/lib/eac_ruby_base0/runner_with/output_spec.rb
917
958
  - vendor/eac_ruby_base0/spec/rubocop_spec.rb
918
959
  - vendor/eac_ruby_base0/spec/spec_helper.rb
919
960
  - vendor/eac_ruby_gems_utils/Gemfile
@@ -1003,6 +1044,7 @@ files:
1003
1044
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs.rb
1004
1045
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/clearable_directory.rb
1005
1046
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/extname.rb
1047
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/logs.rb
1006
1048
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/temp.rb
1007
1049
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/temp/directory.rb
1008
1050
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/temp/file.rb
@@ -1034,6 +1076,7 @@ files:
1034
1076
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches.rb
1035
1077
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class.rb
1036
1078
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/common_constructor.rb
1079
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/settings_provider.rb
1037
1080
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable.rb
1038
1081
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable/boolean_combinations.rb
1039
1082
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator.rb
@@ -1057,6 +1100,7 @@ files:
1057
1100
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object.rb
1058
1101
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/asserts.rb
1059
1102
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
1103
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_nil.rb
1060
1104
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_present.rb
1061
1105
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_respond.rb
1062
1106
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
@@ -1068,6 +1112,7 @@ files:
1068
1112
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string.rb
1069
1113
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb
1070
1114
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time.rb
1115
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb
1071
1116
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash.rb
1072
1117
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/entry_key_error.rb
1073
1118
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/node.rb
@@ -1080,6 +1125,7 @@ files:
1080
1125
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/ruby/command.rb
1081
1126
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_clean_environment.rb
1082
1127
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/settings_provider.rb
1128
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/settings_provider/setting_value.rb
1083
1129
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb
1084
1130
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/struct.rb
1085
1131
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/templates.rb
@@ -1163,7 +1209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1163
1209
  - !ruby/object:Gem::Version
1164
1210
  version: '0'
1165
1211
  requirements: []
1166
- rubygems_version: 3.0.8
1212
+ rubygems_version: 3.0.9
1167
1213
  signing_key:
1168
1214
  specification_version: 4
1169
1215
  summary: Tools for AVM.
@@ -1,38 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/core_ext'
4
- require 'avm/eac_webapp_base0/runner/apache_host'
5
- require 'eac_ruby_utils/console/docopt_runner'
6
- require 'avm/eac_rails_base0/apache_path'
7
-
8
- module Avm
9
- module Tools
10
- class Runner
11
- class EacRailsBase0 < ::Avm::EacRailsBase1::Runner
12
- class ApachePath < ::EacRubyUtils::Console::DocoptRunner
13
- runner_with
14
-
15
- runner_definition do
16
- desc 'Configure Apache path configuration for instance.'
17
- end
18
-
19
- def run
20
- if result.error?
21
- fatal_error result.to_s
22
- else
23
- infov 'Result', result.label
24
- end
25
- end
26
-
27
- def apache_path_uncached
28
- ::Avm::EacRailsBase0::ApachePath.new(context(:instance))
29
- end
30
-
31
- def result_uncached
32
- apache_path.run
33
- end
34
- end
35
- end
36
- end
37
- end
38
- end
@@ -1,53 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/core_ext'
4
- require 'eac_ruby_utils/console/docopt_runner'
5
- require 'avm/git/file_auto_fixup'
6
- require 'avm/git/auto_commit/rules'
7
-
8
- module Avm
9
- module Tools
10
- class Runner
11
- class Git
12
- class AutoFixup
13
- runner_with :help do
14
- desc 'Auto fixup files.'
15
- arg_opt '-r', '--rule', 'Apply a rule in the specified order.', repeat: true
16
- pos_arg :files, repeat: true, optional: true
17
- end
18
-
19
- def run
20
- files.each do |file|
21
- ::Avm::Git::FileAutoFixup.new(runner_context.call(:git), file, rules).run
22
- end
23
- end
24
-
25
- private
26
-
27
- def files
28
- files_from_option || dirty_files
29
- end
30
-
31
- def files_from_option
32
- r = parsed.files
33
- r.any? ? r.map { |p| p.to_pathname.expand_path } : nil
34
- end
35
-
36
- def dirty_files
37
- runner_context.call(:git).dirty_files.map(&:path)
38
- end
39
-
40
- def rules
41
- parsed.rule.map do |rule_string|
42
- ::Avm::Git::AutoCommit::Rules.parse(rule_string)
43
- end
44
- end
45
-
46
- def select
47
- parsed.last? ? 1 : parsed.select
48
- end
49
- end
50
- end
51
- end
52
- end
53
- end
@@ -1,13 +0,0 @@
1
- <IfModule mod_passenger.c>
2
- Alias "%%WEB.PATH%%" "%%FS_PATH%%/public"
3
- <Location "%%WEB.PATH%%">
4
- PassengerBaseURI "%%WEB.PATH%%"
5
- PassengerAppRoot "%%FS_PATH%%"
6
- PassengerAppEnv production
7
- </Location>
8
- <Directory "%%FS_PATH%%/public">
9
- Allow from all
10
- Options -MultiViews
11
- Require all granted
12
- </Directory>
13
- </IfModule>
@@ -1,30 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/runner'
4
- require 'eac_ruby_utils/core_ext'
5
- require 'eac_ruby_utils/abstract_methods'
6
-
7
- module EacCli
8
- module RunnerWith
9
- module OutputFile
10
- common_concern do
11
- include ::EacCli::Runner
12
- include ::EacRubyUtils::AbstractMethods
13
-
14
- abstract_methods :output_content
15
-
16
- runner_definition do
17
- arg_opt '-o', '--output-file', 'Output to file.'
18
- end
19
- end
20
-
21
- def run_output
22
- if parsed.output_file.present?
23
- ::File.write(parsed.output_file, output_content)
24
- else
25
- $stdout.write(output_content)
26
- end
27
- end
28
- end
29
- end
30
- end