avm-tools 0.86.0 → 0.90.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avm/{eac_writings_base1.rb → eac_asciidoctor_base0.rb} +1 -1
  3. data/lib/avm/{eac_writings_base1 → eac_asciidoctor_base0}/apache_host.rb +1 -1
  4. data/lib/avm/{eac_writings_base1 → eac_asciidoctor_base0}/build.rb +2 -2
  5. data/lib/avm/{eac_writings_base1 → eac_asciidoctor_base0}/build/file.rb +1 -1
  6. data/lib/avm/{eac_writings_base1 → eac_asciidoctor_base0}/deploy.rb +6 -6
  7. data/lib/avm/{eac_writings_base1 → eac_asciidoctor_base0}/instance.rb +1 -1
  8. data/lib/avm/{eac_writings_base1 → eac_asciidoctor_base0}/project.rb +1 -1
  9. data/lib/avm/eac_rails_base1/runner/log.rb +43 -0
  10. data/lib/avm/eac_rails_base1/runner_with/bundle.rb +2 -32
  11. data/lib/avm/eac_rails_base1/runner_with/rails_environment.rb +47 -0
  12. data/lib/avm/eac_webapp_base0/deploy.rb +16 -4
  13. data/lib/avm/eac_webapp_base0/deploy/appended_directories.rb +1 -1
  14. data/lib/avm/eac_webapp_base0/deploy/git_info.rb +1 -1
  15. data/lib/avm/eac_webapp_base0/instance.rb +2 -0
  16. data/lib/avm/eac_webapp_base0/runner/deploy.rb +13 -21
  17. data/lib/avm/git/file_auto_fixup.rb +22 -3
  18. data/lib/avm/instances/base/auto_values/filesystem.rb +12 -0
  19. data/lib/avm/instances/runner.rb +3 -5
  20. data/lib/avm/tools/runner.rb +2 -4
  21. data/lib/avm/tools/runner/{eac_writings_base1.rb → eac_asciidoctor_base0.rb} +3 -3
  22. data/lib/avm/tools/runner/eac_rails_base0.rb +1 -1
  23. data/lib/avm/tools/runner/eac_rails_base0/apache_path.rb +1 -1
  24. data/lib/avm/tools/runner/eac_redmine_base0.rb +1 -1
  25. data/lib/avm/tools/runner/eac_redmine_base0/core_update.rb +1 -1
  26. data/lib/avm/tools/runner/eac_redmine_base0/docker.rb +1 -1
  27. data/lib/avm/tools/runner/eac_redmine_base0/project_rename.rb +1 -1
  28. data/lib/avm/tools/runner/eac_webapp_base0.rb +14 -0
  29. data/lib/avm/tools/runner/eac_wordpress_base0.rb +1 -1
  30. data/lib/avm/tools/runner/eac_writings_base0.rb +1 -1
  31. data/lib/avm/tools/runner/files.rb +7 -15
  32. data/lib/avm/tools/runner/files/format.rb +18 -27
  33. data/lib/avm/tools/runner/files/rotate.rb +11 -21
  34. data/lib/avm/tools/runner/git.rb +10 -15
  35. data/lib/avm/tools/runner/git/auto_commit.rb +2 -2
  36. data/lib/avm/tools/runner/git/auto_fixup.rb +23 -16
  37. data/lib/avm/tools/runner/git/commit.rb +2 -2
  38. data/lib/avm/tools/runner/git/deploy.rb +18 -28
  39. data/lib/avm/tools/runner/git/dirty_files.rb +2 -2
  40. data/lib/avm/tools/runner/git/issue.rb +2 -2
  41. data/lib/avm/tools/runner/git/organize.rb +2 -2
  42. data/lib/avm/tools/runner/git/revisions_test.rb +2 -2
  43. data/lib/avm/tools/runner/git/subrepo.rb +2 -2
  44. data/lib/avm/tools/runner/git/subrepo/check.rb +2 -2
  45. data/lib/avm/tools/runner/git/subrepo/clone.rb +2 -2
  46. data/lib/avm/tools/runner/git/subrepo/fix.rb +4 -3
  47. data/lib/avm/tools/runner/instance.rb +4 -7
  48. data/lib/avm/tools/runner/instance/info.rb +5 -8
  49. data/lib/avm/tools/runner/launcher.rb +1 -1
  50. data/lib/avm/tools/runner/launcher/instances.rb +1 -1
  51. data/lib/avm/tools/runner/launcher/projects.rb +1 -1
  52. data/lib/avm/tools/runner/launcher/publish.rb +1 -1
  53. data/lib/avm/tools/runner/local_project.rb +5 -8
  54. data/lib/avm/tools/runner/local_project/{eac_writings_base1.rb → eac_asciidoctor_base0.rb} +4 -4
  55. data/lib/avm/tools/runner/local_project/{eac_writings_base1 → eac_asciidoctor_base0}/build.rb +7 -11
  56. data/lib/avm/tools/runner/local_project/eac_writings_base0.rb +2 -2
  57. data/lib/avm/tools/runner/local_project/eac_writings_base0/build_chapters.rb +2 -2
  58. data/lib/avm/tools/runner/local_project/eac_writings_base0/build_single.rb +2 -2
  59. data/lib/avm/tools/runner/local_project/eac_writings_base0/info.rb +2 -2
  60. data/lib/avm/tools/runner/local_project/info.rb +2 -2
  61. data/lib/avm/tools/runner/local_project/ruby.rb +2 -2
  62. data/lib/avm/tools/runner/local_project/ruby/bundler.rb +2 -2
  63. data/lib/avm/tools/runner/local_project/ruby/bundler/gemfile_lock.rb +2 -2
  64. data/lib/avm/tools/runner/local_project/test.rb +2 -2
  65. data/lib/avm/tools/runner/local_project/update.rb +2 -2
  66. data/lib/avm/tools/runner/local_project/version_bump.rb +10 -13
  67. data/lib/avm/tools/runner/ruby.rb +1 -1
  68. data/lib/avm/tools/runner/ruby/gems.rb +1 -1
  69. data/lib/avm/tools/runner/ruby/gems/generate.rb +1 -1
  70. data/lib/avm/tools/runner/ruby/rubocop.rb +1 -1
  71. data/lib/avm/tools/runner/self.rb +1 -1
  72. data/lib/avm/tools/runner/self/docker.rb +1 -1
  73. data/lib/avm/tools/version.rb +1 -1
  74. data/vendor/eac_cli/lib/eac_cli/docopt/runner_context_replacement.rb +15 -0
  75. data/vendor/eac_cli/lib/eac_cli/docopt/runner_extension.rb +5 -0
  76. data/vendor/eac_cli/lib/eac_cli/parser/alternative.rb +4 -4
  77. data/vendor/eac_cli/lib/eac_cli/parser/alternative/long_options.rb +37 -0
  78. data/vendor/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb +29 -0
  79. data/vendor/eac_cli/lib/eac_cli/parser/alternative/options.rb +7 -36
  80. data/vendor/eac_cli/lib/eac_cli/parser/alternative/short_options.rb +45 -0
  81. data/vendor/eac_cli/lib/eac_cli/runner.rb +0 -48
  82. data/vendor/eac_cli/lib/eac_cli/runner/after_class_methods.rb +29 -0
  83. data/vendor/eac_cli/lib/eac_cli/runner/instance_methods.rb +31 -0
  84. data/vendor/eac_cli/lib/eac_cli/runner_with/subcommands.rb +15 -3
  85. data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
  86. data/vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb +22 -1
  87. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb +1 -0
  88. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +9 -6
  89. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner/test_all.rb +4 -9
  90. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
  91. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/traverser.rb +0 -2
  92. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/inflector.rb +4 -1
  93. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/local_time_zone.rb +42 -0
  94. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel.rb +4 -0
  95. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel/nyi.rb +8 -0
  96. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/template.rb +10 -0
  97. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb +1 -8
  98. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  99. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/yaml.rb +8 -0
  100. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/inflector_spec.rb +2 -1
  101. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/local_time_zone_spec.rb +17 -0
  102. metadata +26 -14
  103. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/default_time_zone_set.rb +0 -5
  104. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/local_time_zone.rb +0 -25
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/patches/time/local_time_zone'
4
-
5
- ::Time.zone = ::Time.local_time_zone
@@ -1,25 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'active_support/core_ext/time/zones'
4
- require 'eac_ruby_utils/envs'
5
-
6
- class Time
7
- class << self
8
- TIMEDATECTL_TIMEZONE_LINE_PATTERN = %r{\s*Time zone:\s*(\S+/\S+)\s}.freeze
9
-
10
- def local_time_zone
11
- local_time_zone_by_timedatectl || local_time_zone_by_offset
12
- end
13
-
14
- def local_time_zone_by_timedatectl
15
- executable = ::EacRubyUtils::Envs.local.executable('timedatectl', '--version')
16
- return nil unless executable.exist?
17
-
18
- TIMEDATECTL_TIMEZONE_LINE_PATTERN.if_match(executable.command.execute!) { |m| m[1] }
19
- end
20
-
21
- def local_time_zone_by_offset
22
- ::ActiveSupport::TimeZone[::Time.now.getlocal.gmt_offset].name
23
- end
24
- end
25
- end