avm-tools 0.90.0 → 0.94.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avm/eac_asciidoctor_base0/apache_path.rb +10 -0
  3. data/lib/avm/eac_asciidoctor_base0/build.rb +3 -1
  4. data/lib/avm/eac_asciidoctor_base0/build/file.rb +3 -3
  5. data/lib/avm/eac_rails_base0/apache_path.rb +6 -38
  6. data/lib/avm/eac_webapp_base0/apache_host.rb +7 -31
  7. data/lib/avm/eac_webapp_base0/apache_path.rb +51 -0
  8. data/lib/avm/eac_webapp_base0/deploy.rb +12 -30
  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 +6 -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/executables.rb +1 -1
  15. data/lib/avm/git/auto_commit/commit_info.rb +23 -0
  16. data/lib/avm/git/auto_commit/rules.rb +31 -0
  17. data/lib/avm/git/auto_commit/rules/base.rb +39 -0
  18. data/lib/avm/git/auto_commit/rules/last.rb +19 -0
  19. data/lib/avm/git/auto_commit/rules/manual.rb +45 -0
  20. data/lib/avm/git/auto_commit/rules/new.rb +24 -0
  21. data/lib/avm/git/auto_commit/rules/nth.rb +31 -0
  22. data/lib/avm/git/auto_commit/rules/unique.rb +21 -0
  23. data/lib/avm/git/auto_commit_path.rb +0 -21
  24. data/lib/avm/git/file_auto_fixup.rb +26 -57
  25. data/lib/avm/tools/runner/eac_redmine_base0/core_update.rb +7 -11
  26. data/lib/avm/tools/runner/git/auto_commit.rb +30 -31
  27. data/lib/avm/tools/runner/git/commit.rb +11 -20
  28. data/lib/avm/tools/runner/git/subrepo/fix.rb +1 -1
  29. data/lib/avm/tools/runner/local_project/ruby.rb +3 -7
  30. data/lib/avm/tools/runner/local_project/ruby/bundler.rb +1 -1
  31. data/lib/avm/tools/runner/local_project/ruby/bundler/gemfile_lock.rb +1 -1
  32. data/lib/avm/tools/runner/ruby.rb +6 -14
  33. data/lib/avm/tools/runner/ruby/gems.rb +4 -7
  34. data/lib/avm/tools/runner/ruby/gems/generate.rb +12 -23
  35. data/lib/avm/tools/runner/ruby/rubocop.rb +1 -1
  36. data/lib/avm/tools/version.rb +1 -1
  37. data/template/avm/eac_rails_base0/apache_path/extra_content.conf +5 -0
  38. data/template/avm/eac_webapp_base0/apache_path/default.conf +9 -0
  39. data/vendor/avm-apps/Gemfile +5 -0
  40. data/vendor/avm-apps/avm-apps.gemspec +18 -0
  41. data/vendor/avm-apps/lib/avm/apps.rb +9 -0
  42. data/vendor/avm-apps/lib/avm/apps/jobs.rb +11 -0
  43. data/vendor/avm-apps/lib/avm/apps/jobs/base.rb +64 -0
  44. data/vendor/avm-apps/lib/avm/apps/jobs/variables_source.rb +24 -0
  45. data/vendor/avm-apps/lib/avm/apps/version.rb +7 -0
  46. data/vendor/avm-apps/spec/rubocop_spec.rb +7 -0
  47. data/vendor/avm-apps/spec/spec_helper.rb +100 -0
  48. data/vendor/eac_cli/lib/eac_cli/core_ext.rb +2 -0
  49. data/vendor/eac_cli/lib/eac_cli/definition/alternative.rb +4 -7
  50. data/vendor/eac_cli/lib/eac_cli/definition/argument_option.rb +8 -0
  51. data/vendor/eac_cli/lib/eac_cli/definition/base_option.rb +21 -9
  52. data/vendor/eac_cli/lib/eac_cli/definition/base_option/initialize_args_parser.rb +47 -0
  53. data/vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb +8 -0
  54. data/vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb +12 -0
  55. data/vendor/eac_cli/lib/eac_cli/docopt/doc_builder.rb +15 -1
  56. data/vendor/eac_cli/lib/eac_cli/parser/alternative/short_options.rb +4 -2
  57. data/vendor/eac_cli/lib/eac_cli/parser/collector.rb +3 -17
  58. data/vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb +2 -1
  59. data/vendor/eac_cli/lib/eac_cli/runner_with_set.rb +50 -0
  60. data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
  61. data/vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb +4 -0
  62. data/vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb +21 -3
  63. data/vendor/eac_git/lib/eac_git/local/dirty_files.rb +2 -3
  64. data/vendor/eac_git/lib/eac_git/version.rb +1 -1
  65. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/core_ext.rb +4 -0
  66. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/jobs_runner.rb +31 -0
  67. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches.rb +4 -0
  68. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/class.rb +4 -0
  69. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/class/jobs_runner.rb +10 -0
  70. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/object.rb +5 -0
  71. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/object/runner_with.rb +5 -0
  72. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with.rb +9 -0
  73. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with/confirmation.rb +36 -0
  74. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with/filesystem_traverser.rb +52 -0
  75. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
  76. data/vendor/eac_ruby_base0/spec/lib/eac_ruby_base0/runner_with/confirmation_spec.rb +42 -0
  77. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/local_time_zone.rb +8 -2
  78. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/settings_provider.rb +10 -0
  79. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_nil.rb +17 -0
  80. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb +11 -0
  81. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  82. metadata +60 -5
  83. data/lib/avm/tools/runner/eac_rails_base0/apache_path.rb +0 -38
  84. data/lib/avm/tools/runner/git/auto_fixup.rb +0 -53
  85. data/template/avm/eac_rails_base0/apache_path/default.conf +0 -13
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/patch'
4
+ require 'eac_ruby_utils/settings_provider'
5
+
6
+ class Class
7
+ def enable_settings_provider
8
+ ::EacRubyUtils.patch(self, ::EacRubyUtils::SettingsProvider)
9
+ end
10
+ 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
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/local_time_zone'
4
+
5
+ class Time
6
+ class << self
7
+ def required_zone
8
+ zone || ::EacRubyUtils::LocalTimeZone.auto || raise('No zone set or discovered')
9
+ end
10
+ end
11
+ 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.59.0'
5
5
  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.90.0
4
+ version: 0.94.1
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-10 00:00:00.000000000 Z
11
+ date: 2021-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -24,6 +24,26 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: asciidoctor
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 2.0.12
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '2.0'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 2.0.12
27
47
  - !ruby/object:Gem::Dependency
28
48
  name: clipboard
29
49
  requirement: !ruby/object:Gem::Requirement
@@ -292,6 +312,7 @@ files:
292
312
  - lib/avm/docker/runner.rb
293
313
  - lib/avm/eac_asciidoctor_base0.rb
294
314
  - lib/avm/eac_asciidoctor_base0/apache_host.rb
315
+ - lib/avm/eac_asciidoctor_base0/apache_path.rb
295
316
  - lib/avm/eac_asciidoctor_base0/build.rb
296
317
  - lib/avm/eac_asciidoctor_base0/build/file.rb
297
318
  - lib/avm/eac_asciidoctor_base0/deploy.rb
@@ -324,6 +345,7 @@ files:
324
345
  - lib/avm/eac_ubuntu_base0/docker_image.rb
325
346
  - lib/avm/eac_webapp_base0.rb
326
347
  - lib/avm/eac_webapp_base0/apache_host.rb
348
+ - lib/avm/eac_webapp_base0/apache_path.rb
327
349
  - lib/avm/eac_webapp_base0/deploy.rb
328
350
  - lib/avm/eac_webapp_base0/deploy/appended_directories.rb
329
351
  - lib/avm/eac_webapp_base0/deploy/build.rb
@@ -334,6 +356,7 @@ files:
334
356
  - lib/avm/eac_webapp_base0/instance.rb
335
357
  - lib/avm/eac_webapp_base0/runner.rb
336
358
  - lib/avm/eac_webapp_base0/runner/apache_host.rb
359
+ - lib/avm/eac_webapp_base0/runner/apache_path.rb
337
360
  - lib/avm/eac_webapp_base0/runner/data.rb
338
361
  - lib/avm/eac_webapp_base0/runner/data/dump.rb
339
362
  - lib/avm/eac_webapp_base0/runner/data/load.rb
@@ -380,6 +403,14 @@ files:
380
403
  - lib/avm/files/rotate.rb
381
404
  - lib/avm/fs_cache.rb
382
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
383
414
  - lib/avm/git/auto_commit_path.rb
384
415
  - lib/avm/git/auto_commit_path/ruby.rb
385
416
  - lib/avm/git/commit.rb
@@ -500,7 +531,6 @@ files:
500
531
  - lib/avm/tools/runner.rb
501
532
  - lib/avm/tools/runner/eac_asciidoctor_base0.rb
502
533
  - lib/avm/tools/runner/eac_rails_base0.rb
503
- - lib/avm/tools/runner/eac_rails_base0/apache_path.rb
504
534
  - lib/avm/tools/runner/eac_redmine_base0.rb
505
535
  - lib/avm/tools/runner/eac_redmine_base0/core_update.rb
506
536
  - lib/avm/tools/runner/eac_redmine_base0/docker.rb
@@ -513,7 +543,6 @@ files:
513
543
  - lib/avm/tools/runner/files/rotate.rb
514
544
  - lib/avm/tools/runner/git.rb
515
545
  - lib/avm/tools/runner/git/auto_commit.rb
516
- - lib/avm/tools/runner/git/auto_fixup.rb
517
546
  - lib/avm/tools/runner/git/commit.rb
518
547
  - lib/avm/tools/runner/git/deploy.rb
519
548
  - lib/avm/tools/runner/git/dirty_files.rb
@@ -586,13 +615,14 @@ files:
586
615
  - lib/eac_launcher/vendor.rb
587
616
  - lib/eac_launcher/vendor/github.rb
588
617
  - lib/eac_launcher/version.rb
589
- - template/avm/eac_rails_base0/apache_path/default.conf
618
+ - template/avm/eac_rails_base0/apache_path/extra_content.conf
590
619
  - template/avm/eac_rails_base0/deploy/config/database.yml.template
591
620
  - template/avm/eac_rails_base0/deploy/config/envvars.d/email.yml.template
592
621
  - template/avm/eac_redmine_base0/deploy/config/install.sh.template
593
622
  - template/avm/eac_redmine_base0/deploy/config/secrets.yml
594
623
  - template/avm/eac_ubuntu_base0/docker_image/Dockerfile
595
624
  - template/avm/eac_webapp_base0/apache_host/no_ssl.conf
625
+ - template/avm/eac_webapp_base0/apache_path/default.conf
596
626
  - template/avm/eac_wordpress_base0/deploy/wp-config.php.template
597
627
  - template/avm/eac_writings_base0/commons/all.tex
598
628
  - template/avm/eac_writings_base0/commons/ebook.tex
@@ -611,6 +641,15 @@ files:
611
641
  - template/avm/ruby/gems/generator/version.template
612
642
  - template/avm/self/docker_image/Dockerfile
613
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
614
653
  - vendor/eac_cli/Gemfile
615
654
  - vendor/eac_cli/eac_cli.gemspec
616
655
  - vendor/eac_cli/lib/eac_cli.rb
@@ -620,6 +659,7 @@ files:
620
659
  - vendor/eac_cli/lib/eac_cli/definition/alternative.rb
621
660
  - vendor/eac_cli/lib/eac_cli/definition/argument_option.rb
622
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
623
663
  - vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb
624
664
  - vendor/eac_cli/lib/eac_cli/definition/help_formatter.rb
625
665
  - vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb
@@ -650,6 +690,7 @@ files:
650
690
  - vendor/eac_cli/lib/eac_cli/runner_with/help.rb
651
691
  - vendor/eac_cli/lib/eac_cli/runner_with/output_file.rb
652
692
  - vendor/eac_cli/lib/eac_cli/runner_with/subcommands.rb
693
+ - vendor/eac_cli/lib/eac_cli/runner_with_set.rb
653
694
  - vendor/eac_cli/lib/eac_cli/version.rb
654
695
  - vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
655
696
  - vendor/eac_cli/spec/lib/eac_cli/docopt/runner_extension_spec.rb
@@ -884,9 +925,20 @@ files:
884
925
  - vendor/eac_ruby_base0/eac_ruby_base0.gemspec
885
926
  - vendor/eac_ruby_base0/lib/eac_ruby_base0.rb
886
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
887
935
  - vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb
888
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
889
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
890
942
  - vendor/eac_ruby_base0/spec/rubocop_spec.rb
891
943
  - vendor/eac_ruby_base0/spec/spec_helper.rb
892
944
  - vendor/eac_ruby_gems_utils/Gemfile
@@ -1007,6 +1059,7 @@ files:
1007
1059
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches.rb
1008
1060
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class.rb
1009
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
1010
1063
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable.rb
1011
1064
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable/boolean_combinations.rb
1012
1065
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator.rb
@@ -1030,6 +1083,7 @@ files:
1030
1083
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object.rb
1031
1084
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/asserts.rb
1032
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
1033
1087
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_present.rb
1034
1088
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_respond.rb
1035
1089
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
@@ -1041,6 +1095,7 @@ files:
1041
1095
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string.rb
1042
1096
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb
1043
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
1044
1099
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash.rb
1045
1100
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/entry_key_error.rb
1046
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>