avm-tools 0.91.0 → 0.94.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/eac_asciidoctor_base0/apache_path.rb +10 -0
- data/lib/avm/eac_rails_base0/apache_path.rb +6 -38
- data/lib/avm/eac_webapp_base0/apache_host.rb +7 -31
- data/lib/avm/eac_webapp_base0/apache_path.rb +51 -0
- data/lib/avm/eac_webapp_base0/deploy.rb +12 -30
- data/lib/avm/eac_webapp_base0/runner/apache_host.rb +7 -10
- data/lib/avm/eac_webapp_base0/runner/apache_path.rb +40 -0
- data/lib/avm/eac_webapp_base0/runner/data.rb +6 -15
- data/lib/avm/eac_webapp_base0/runner/data/dump.rb +18 -24
- data/lib/avm/eac_webapp_base0/runner/data/load.rb +12 -23
- data/lib/avm/git/auto_commit/commit_info.rb +23 -0
- data/lib/avm/git/auto_commit/rules.rb +31 -0
- data/lib/avm/git/auto_commit/rules/base.rb +39 -0
- data/lib/avm/git/auto_commit/rules/last.rb +19 -0
- data/lib/avm/git/auto_commit/rules/manual.rb +45 -0
- data/lib/avm/git/auto_commit/rules/new.rb +24 -0
- data/lib/avm/git/auto_commit/rules/nth.rb +31 -0
- data/lib/avm/git/auto_commit/rules/unique.rb +21 -0
- data/lib/avm/git/auto_commit_path.rb +0 -21
- data/lib/avm/git/file_auto_fixup.rb +26 -57
- data/lib/avm/tools/runner/eac_redmine_base0/core_update.rb +7 -11
- data/lib/avm/tools/runner/git/auto_commit.rb +30 -31
- data/lib/avm/tools/runner/git/commit.rb +11 -20
- data/lib/avm/tools/runner/git/subrepo/fix.rb +1 -1
- data/lib/avm/tools/runner/local_project/ruby.rb +3 -7
- data/lib/avm/tools/runner/local_project/ruby/bundler.rb +4 -8
- data/lib/avm/tools/runner/local_project/ruby/bundler/gemfile_lock.rb +11 -14
- data/lib/avm/tools/runner/ruby.rb +6 -14
- data/lib/avm/tools/runner/ruby/gems.rb +4 -7
- data/lib/avm/tools/runner/ruby/gems/generate.rb +12 -23
- data/lib/avm/tools/runner/ruby/rubocop.rb +1 -1
- data/lib/avm/tools/version.rb +1 -1
- data/template/avm/eac_rails_base0/apache_path/extra_content.conf +5 -0
- data/template/avm/eac_webapp_base0/apache_path/default.conf +9 -0
- data/vendor/avm-apps/Gemfile +5 -0
- data/vendor/avm-apps/avm-apps.gemspec +18 -0
- data/vendor/avm-apps/lib/avm/apps.rb +9 -0
- data/vendor/avm-apps/lib/avm/apps/jobs.rb +11 -0
- data/vendor/avm-apps/lib/avm/apps/jobs/base.rb +64 -0
- data/vendor/avm-apps/lib/avm/apps/jobs/variables_source.rb +24 -0
- data/vendor/avm-apps/lib/avm/apps/version.rb +7 -0
- data/vendor/avm-apps/spec/rubocop_spec.rb +7 -0
- data/vendor/avm-apps/spec/spec_helper.rb +100 -0
- data/vendor/eac_cli/lib/eac_cli/core_ext.rb +2 -0
- data/vendor/eac_cli/lib/eac_cli/definition/alternative.rb +4 -7
- data/vendor/eac_cli/lib/eac_cli/definition/argument_option.rb +8 -0
- data/vendor/eac_cli/lib/eac_cli/definition/base_option.rb +21 -9
- data/vendor/eac_cli/lib/eac_cli/definition/base_option/initialize_args_parser.rb +47 -0
- data/vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb +8 -0
- data/vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb +12 -0
- data/vendor/eac_cli/lib/eac_cli/docopt/doc_builder.rb +15 -1
- data/vendor/eac_cli/lib/eac_cli/parser/alternative/short_options.rb +4 -2
- data/vendor/eac_cli/lib/eac_cli/parser/collector.rb +3 -17
- data/vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb +2 -1
- data/vendor/eac_cli/lib/eac_cli/runner_with_set.rb +50 -0
- data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
- data/vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb +4 -0
- data/vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb +21 -3
- data/vendor/eac_git/lib/eac_git/local/dirty_files.rb +2 -3
- data/vendor/eac_git/lib/eac_git/version.rb +1 -1
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/core_ext.rb +4 -0
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/jobs_runner.rb +31 -0
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches.rb +4 -0
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/class.rb +4 -0
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/class/jobs_runner.rb +10 -0
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/object.rb +5 -0
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/object/runner_with.rb +5 -0
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with.rb +9 -0
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with/confirmation.rb +36 -0
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with/filesystem_traverser.rb +52 -0
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
- data/vendor/eac_ruby_base0/spec/lib/eac_ruby_base0/runner_with/confirmation_spec.rb +42 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/local_time_zone.rb +8 -2
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/settings_provider.rb +10 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_nil.rb +17 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb +11 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- metadata +40 -5
- data/lib/avm/tools/runner/eac_rails_base0/apache_path.rb +0 -38
- data/lib/avm/tools/runner/git/auto_fixup.rb +0 -53
- data/template/avm/eac_rails_base0/apache_path/default.conf +0 -13
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_base0/runner_with/confirmation'
|
4
|
+
|
5
|
+
::RSpec.describe ::EacRubyBase0::RunnerWith::Confirmation do
|
6
|
+
let(:runner) do
|
7
|
+
the_module = described_class
|
8
|
+
Class.new do
|
9
|
+
include the_module
|
10
|
+
|
11
|
+
runner_definition do
|
12
|
+
desc 'A stub runner.'
|
13
|
+
end
|
14
|
+
|
15
|
+
def run
|
16
|
+
if confirm?
|
17
|
+
::Kernel.puts 'Accepted'
|
18
|
+
else
|
19
|
+
::Kernel.puts 'Denied'
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
let(:instance) { runner.create(argv: runner_argv) }
|
26
|
+
|
27
|
+
context 'without --no option' do
|
28
|
+
let(:runner_argv) { %w[--no] }
|
29
|
+
|
30
|
+
it do
|
31
|
+
expect { instance.run }.to output("Denied\n").to_stdout_from_any_process
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
context 'without --yes option' do
|
36
|
+
let(:runner_argv) { %w[--yes] }
|
37
|
+
|
38
|
+
it do
|
39
|
+
expect { instance.run }.to output("Accepted\n").to_stdout_from_any_process
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -10,6 +10,7 @@ module EacRubyUtils
|
|
10
10
|
class << self
|
11
11
|
TIMEDATECTL_TIMEZONE_LINE_PATTERN = %r{\s*Time zone:\s*(\S+/\S+)\s}.freeze
|
12
12
|
|
13
|
+
# @return [ActiveSupport::TimeZone]
|
13
14
|
def auto
|
14
15
|
%w[tz_env debian_config offset].lazy.map { |s| send("by_#{s}") }.find(&:present?)
|
15
16
|
end
|
@@ -18,22 +19,27 @@ module EacRubyUtils
|
|
18
19
|
::Time.zone = auto
|
19
20
|
end
|
20
21
|
|
22
|
+
# @return [ActiveSupport::TimeZone]
|
21
23
|
def by_debian_config
|
22
24
|
path = ::Pathname.new(DEBIAN_CONFIG_PATH)
|
23
|
-
path.exist? ? path.read.strip.
|
25
|
+
path.exist? ? path.read.strip.if_present { |v| ::ActiveSupport::TimeZone[v] } : nil
|
24
26
|
end
|
25
27
|
|
28
|
+
# @return [ActiveSupport::TimeZone]
|
26
29
|
def by_offset
|
27
|
-
::ActiveSupport::TimeZone[::Time.now.getlocal.gmt_offset]
|
30
|
+
::ActiveSupport::TimeZone[::Time.now.getlocal.gmt_offset]
|
28
31
|
end
|
29
32
|
|
33
|
+
# @return [ActiveSupport::TimeZone]
|
30
34
|
def by_timedatectl
|
31
35
|
executable = ::EacRubyUtils::Envs.local.executable('timedatectl', '--version')
|
32
36
|
return nil unless executable.exist?
|
33
37
|
|
34
38
|
TIMEDATECTL_TIMEZONE_LINE_PATTERN.if_match(executable.command.execute!) { |m| m[1] }
|
39
|
+
.if_present { |v| ::ActiveSupport::TimeZone[v] }
|
35
40
|
end
|
36
41
|
|
42
|
+
# @return [ActiveSupport::TimeZone]
|
37
43
|
def by_tz_env
|
38
44
|
ENV['TZ'].presence
|
39
45
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class Object
|
4
|
+
# @return +block.call(self)+ if +self+ is not nil, +default_value+ otherwise.
|
5
|
+
def if_not_nil(default_value = nil)
|
6
|
+
return default_value if nil?
|
7
|
+
|
8
|
+
block_given? ? yield(self) : self
|
9
|
+
end
|
10
|
+
|
11
|
+
# @return +yield+ if +self+ is nil, +self+ otherwise.
|
12
|
+
def if_nil
|
13
|
+
return yield if nil? && block_given?
|
14
|
+
|
15
|
+
self
|
16
|
+
end
|
17
|
+
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.
|
4
|
+
version: 0.94.2
|
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-
|
11
|
+
date: 2021-02-25 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
|
@@ -354,6 +356,7 @@ files:
|
|
354
356
|
- lib/avm/eac_webapp_base0/instance.rb
|
355
357
|
- lib/avm/eac_webapp_base0/runner.rb
|
356
358
|
- lib/avm/eac_webapp_base0/runner/apache_host.rb
|
359
|
+
- lib/avm/eac_webapp_base0/runner/apache_path.rb
|
357
360
|
- lib/avm/eac_webapp_base0/runner/data.rb
|
358
361
|
- lib/avm/eac_webapp_base0/runner/data/dump.rb
|
359
362
|
- lib/avm/eac_webapp_base0/runner/data/load.rb
|
@@ -400,6 +403,14 @@ files:
|
|
400
403
|
- lib/avm/files/rotate.rb
|
401
404
|
- lib/avm/fs_cache.rb
|
402
405
|
- lib/avm/git.rb
|
406
|
+
- lib/avm/git/auto_commit/commit_info.rb
|
407
|
+
- lib/avm/git/auto_commit/rules.rb
|
408
|
+
- lib/avm/git/auto_commit/rules/base.rb
|
409
|
+
- lib/avm/git/auto_commit/rules/last.rb
|
410
|
+
- lib/avm/git/auto_commit/rules/manual.rb
|
411
|
+
- lib/avm/git/auto_commit/rules/new.rb
|
412
|
+
- lib/avm/git/auto_commit/rules/nth.rb
|
413
|
+
- lib/avm/git/auto_commit/rules/unique.rb
|
403
414
|
- lib/avm/git/auto_commit_path.rb
|
404
415
|
- lib/avm/git/auto_commit_path/ruby.rb
|
405
416
|
- lib/avm/git/commit.rb
|
@@ -520,7 +531,6 @@ files:
|
|
520
531
|
- lib/avm/tools/runner.rb
|
521
532
|
- lib/avm/tools/runner/eac_asciidoctor_base0.rb
|
522
533
|
- lib/avm/tools/runner/eac_rails_base0.rb
|
523
|
-
- lib/avm/tools/runner/eac_rails_base0/apache_path.rb
|
524
534
|
- lib/avm/tools/runner/eac_redmine_base0.rb
|
525
535
|
- lib/avm/tools/runner/eac_redmine_base0/core_update.rb
|
526
536
|
- lib/avm/tools/runner/eac_redmine_base0/docker.rb
|
@@ -533,7 +543,6 @@ files:
|
|
533
543
|
- lib/avm/tools/runner/files/rotate.rb
|
534
544
|
- lib/avm/tools/runner/git.rb
|
535
545
|
- lib/avm/tools/runner/git/auto_commit.rb
|
536
|
-
- lib/avm/tools/runner/git/auto_fixup.rb
|
537
546
|
- lib/avm/tools/runner/git/commit.rb
|
538
547
|
- lib/avm/tools/runner/git/deploy.rb
|
539
548
|
- lib/avm/tools/runner/git/dirty_files.rb
|
@@ -606,13 +615,14 @@ files:
|
|
606
615
|
- lib/eac_launcher/vendor.rb
|
607
616
|
- lib/eac_launcher/vendor/github.rb
|
608
617
|
- lib/eac_launcher/version.rb
|
609
|
-
- template/avm/eac_rails_base0/apache_path/
|
618
|
+
- template/avm/eac_rails_base0/apache_path/extra_content.conf
|
610
619
|
- template/avm/eac_rails_base0/deploy/config/database.yml.template
|
611
620
|
- template/avm/eac_rails_base0/deploy/config/envvars.d/email.yml.template
|
612
621
|
- template/avm/eac_redmine_base0/deploy/config/install.sh.template
|
613
622
|
- template/avm/eac_redmine_base0/deploy/config/secrets.yml
|
614
623
|
- template/avm/eac_ubuntu_base0/docker_image/Dockerfile
|
615
624
|
- template/avm/eac_webapp_base0/apache_host/no_ssl.conf
|
625
|
+
- template/avm/eac_webapp_base0/apache_path/default.conf
|
616
626
|
- template/avm/eac_wordpress_base0/deploy/wp-config.php.template
|
617
627
|
- template/avm/eac_writings_base0/commons/all.tex
|
618
628
|
- template/avm/eac_writings_base0/commons/ebook.tex
|
@@ -631,6 +641,15 @@ files:
|
|
631
641
|
- template/avm/ruby/gems/generator/version.template
|
632
642
|
- template/avm/self/docker_image/Dockerfile
|
633
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
|
634
653
|
- vendor/eac_cli/Gemfile
|
635
654
|
- vendor/eac_cli/eac_cli.gemspec
|
636
655
|
- vendor/eac_cli/lib/eac_cli.rb
|
@@ -640,6 +659,7 @@ files:
|
|
640
659
|
- vendor/eac_cli/lib/eac_cli/definition/alternative.rb
|
641
660
|
- vendor/eac_cli/lib/eac_cli/definition/argument_option.rb
|
642
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
|
643
663
|
- vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb
|
644
664
|
- vendor/eac_cli/lib/eac_cli/definition/help_formatter.rb
|
645
665
|
- vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb
|
@@ -670,6 +690,7 @@ files:
|
|
670
690
|
- vendor/eac_cli/lib/eac_cli/runner_with/help.rb
|
671
691
|
- vendor/eac_cli/lib/eac_cli/runner_with/output_file.rb
|
672
692
|
- vendor/eac_cli/lib/eac_cli/runner_with/subcommands.rb
|
693
|
+
- vendor/eac_cli/lib/eac_cli/runner_with_set.rb
|
673
694
|
- vendor/eac_cli/lib/eac_cli/version.rb
|
674
695
|
- vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
|
675
696
|
- vendor/eac_cli/spec/lib/eac_cli/docopt/runner_extension_spec.rb
|
@@ -904,9 +925,20 @@ files:
|
|
904
925
|
- vendor/eac_ruby_base0/eac_ruby_base0.gemspec
|
905
926
|
- vendor/eac_ruby_base0/lib/eac_ruby_base0.rb
|
906
927
|
- vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
|
928
|
+
- vendor/eac_ruby_base0/lib/eac_ruby_base0/core_ext.rb
|
929
|
+
- vendor/eac_ruby_base0/lib/eac_ruby_base0/jobs_runner.rb
|
930
|
+
- vendor/eac_ruby_base0/lib/eac_ruby_base0/patches.rb
|
931
|
+
- vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/class.rb
|
932
|
+
- vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/class/jobs_runner.rb
|
933
|
+
- vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/object.rb
|
934
|
+
- vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/object/runner_with.rb
|
907
935
|
- vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb
|
908
936
|
- vendor/eac_ruby_base0/lib/eac_ruby_base0/runner/test_all.rb
|
937
|
+
- vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with.rb
|
938
|
+
- vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with/confirmation.rb
|
939
|
+
- vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with/filesystem_traverser.rb
|
909
940
|
- vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb
|
941
|
+
- vendor/eac_ruby_base0/spec/lib/eac_ruby_base0/runner_with/confirmation_spec.rb
|
910
942
|
- vendor/eac_ruby_base0/spec/rubocop_spec.rb
|
911
943
|
- vendor/eac_ruby_base0/spec/spec_helper.rb
|
912
944
|
- vendor/eac_ruby_gems_utils/Gemfile
|
@@ -1027,6 +1059,7 @@ files:
|
|
1027
1059
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches.rb
|
1028
1060
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class.rb
|
1029
1061
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/common_constructor.rb
|
1062
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/settings_provider.rb
|
1030
1063
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable.rb
|
1031
1064
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable/boolean_combinations.rb
|
1032
1065
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator.rb
|
@@ -1050,6 +1083,7 @@ files:
|
|
1050
1083
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object.rb
|
1051
1084
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/asserts.rb
|
1052
1085
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
|
1086
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_nil.rb
|
1053
1087
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_present.rb
|
1054
1088
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_respond.rb
|
1055
1089
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
|
@@ -1061,6 +1095,7 @@ files:
|
|
1061
1095
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string.rb
|
1062
1096
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb
|
1063
1097
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time.rb
|
1098
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb
|
1064
1099
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash.rb
|
1065
1100
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/entry_key_error.rb
|
1066
1101
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/node.rb
|
@@ -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
|
-
|
7
|
-
module Avm
|
8
|
-
module Tools
|
9
|
-
class Runner
|
10
|
-
class Git
|
11
|
-
class AutoFixup
|
12
|
-
runner_with :help do
|
13
|
-
desc 'Auto fixup files.'
|
14
|
-
bool_opt '-l', '--last', 'Equivalent to "--select=1".'
|
15
|
-
arg_opt '-s', '--select', 'Automatically select de <value>-th commit.'
|
16
|
-
bool_opt '-u', '--unique', 'Automatically select the first commit if it is unique.'
|
17
|
-
pos_arg :files, repeat: true, optional: true
|
18
|
-
end
|
19
|
-
|
20
|
-
def run
|
21
|
-
files.each do |file|
|
22
|
-
::Avm::Git::FileAutoFixup.new(runner_context.call(:git), file, file_options).run
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
private
|
27
|
-
|
28
|
-
def file_options
|
29
|
-
{ Avm::Git::FileAutoFixup::OPTION_SELECT => select,
|
30
|
-
Avm::Git::FileAutoFixup::OPTION_UNIQUE => parsed.unique? }
|
31
|
-
end
|
32
|
-
|
33
|
-
def files
|
34
|
-
files_from_option || dirty_files
|
35
|
-
end
|
36
|
-
|
37
|
-
def files_from_option
|
38
|
-
r = parsed.files
|
39
|
-
r.any? ? r.map { |p| p.to_pathname.expand_path } : nil
|
40
|
-
end
|
41
|
-
|
42
|
-
def dirty_files
|
43
|
-
runner_context.call(:git).dirty_files.map(&:path)
|
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>
|