avm-tools 0.70.1 → 0.74.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avm/data/instance/files_unit.rb +1 -0
  3. data/lib/avm/{stereotypes/eac_rails_base0.rb → eac_rails_base0.rb} +1 -3
  4. data/lib/avm/eac_rails_base0/instance.rb +2 -2
  5. data/lib/avm/eac_redmine_base0.rb +9 -0
  6. data/lib/avm/eac_redmine_base0/instance.rb +2 -2
  7. data/lib/avm/{stereotypes/eac_webapp_base0.rb → eac_webapp_base0.rb} +1 -3
  8. data/lib/avm/eac_writings_base0.rb +9 -0
  9. data/lib/avm/eac_writings_base0/commons.rb +12 -0
  10. data/lib/avm/eac_writings_base0/file_build.rb +45 -0
  11. data/lib/avm/eac_writings_base0/file_build/base_stereotype.rb +19 -0
  12. data/lib/avm/eac_writings_base0/file_build/chapter_index.rb +23 -0
  13. data/lib/avm/eac_writings_base0/file_build/tex_source.rb +33 -0
  14. data/lib/avm/eac_writings_base0/project.rb +33 -0
  15. data/lib/avm/eac_writings_base0/project_build.rb +117 -0
  16. data/lib/avm/eac_writings_base0/project_build/chapters_content.rb +47 -0
  17. data/lib/avm/eac_writings_base0/project_build/copy_files.rb +42 -0
  18. data/lib/avm/executables.rb +1 -1
  19. data/lib/avm/instances/application.rb +4 -0
  20. data/lib/avm/instances/base.rb +2 -1
  21. data/lib/avm/instances/base/auto_values.rb +2 -1
  22. data/lib/avm/instances/base/auto_values/access.rb +5 -4
  23. data/lib/avm/instances/base/auto_values/admin.rb +2 -2
  24. data/lib/avm/instances/base/auto_values/database.rb +1 -1
  25. data/lib/avm/instances/base/auto_values/filesystem.rb +6 -2
  26. data/lib/avm/instances/base/auto_values/mailer.rb +34 -0
  27. data/lib/avm/instances/base/auto_values/ruby.rb +1 -1
  28. data/lib/avm/instances/base/auto_values/system.rb +2 -2
  29. data/lib/avm/instances/entry.rb +7 -1
  30. data/lib/avm/instances/entry_keys.rb +42 -7
  31. data/lib/avm/projects/stereotypes/git_subtree/publish.rb +2 -0
  32. data/lib/avm/projects/stereotypes/git_subtree/warp.rb +3 -0
  33. data/lib/avm/rails/instance.rb +19 -0
  34. data/lib/avm/tools/runner/eac_rails_base0/rails_server.rb +41 -0
  35. data/lib/avm/tools/runner/instance.rb +28 -0
  36. data/lib/avm/tools/runner/instance/info.rb +44 -0
  37. data/lib/avm/tools/runner/local_project/eac_writings_base0.rb +35 -0
  38. data/lib/avm/tools/runner/local_project/eac_writings_base0/build_chapters.rb +48 -0
  39. data/lib/avm/tools/runner/local_project/eac_writings_base0/build_single.rb +37 -0
  40. data/lib/avm/tools/runner/local_project/eac_writings_base0/info.rb +36 -0
  41. data/lib/avm/tools/version.rb +1 -1
  42. data/template/avm/eac_rails_base0/deploy/config/envvars.d/email.yml.template +11 -0
  43. data/template/avm/eac_writings_base0/commons/all.tex +5 -0
  44. data/template/avm/eac_writings_base0/commons/ebook.tex +11 -0
  45. data/template/avm/eac_writings_base0/commons/images.tex +11 -0
  46. data/template/avm/eac_writings_base0/commons/links.tex +2 -0
  47. data/template/avm/eac_writings_base0/commons/portuguese.tex +8 -0
  48. data/template/avm/eac_writings_base0/commons/source_code.tex +21 -0
  49. data/template/avm/eac_writings_base0/commons/source_code/java.tex +15 -0
  50. data/template/avm/eac_writings_base0/commons/utils.tex +6 -0
  51. data/vendor/eac_cli/lib/eac_cli/runner.rb +1 -1
  52. data/vendor/eac_cli/lib/eac_cli/runner/context.rb +19 -2
  53. data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
  54. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +12 -0
  55. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
  56. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem.rb +2 -1
  57. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem/command.rb +1 -1
  58. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/decorated_gem.rb +10 -6
  59. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +1 -1
  60. data/vendor/eac_ruby_gems_utils/spec/{rubocop_check_spec.rb → code/rubocop_check_spec.rb} +0 -0
  61. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb +19 -0
  62. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/configs/base.rb +43 -0
  63. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/configs/file.rb +12 -31
  64. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs.rb +4 -1
  65. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/clearable_directory.rb +57 -0
  66. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash.rb +21 -58
  67. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/entry_key_error.rb +8 -0
  68. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/node.rb +67 -0
  69. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/path_search.rb +39 -0
  70. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/ruby/command.rb +2 -1
  71. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/struct.rb +4 -0
  72. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  73. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/blank_not_blank_spec.rb +16 -0
  74. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/configs_spec.rb +15 -0
  75. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/paths_hash_spec.rb +52 -13
  76. metadata +41 -7
  77. data/lib/avm/stereotypes/eac_redmine_base0.rb +0 -11
  78. data/lib/avm/stereotypes/rails/instance.rb +0 -20
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.70.1
4
+ version: 0.74.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-09 00:00:00.000000000 Z
11
+ date: 2020-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -290,10 +290,12 @@ files:
290
290
  - lib/avm/docker/image.rb
291
291
  - lib/avm/docker/registry.rb
292
292
  - lib/avm/docker/runner.rb
293
+ - lib/avm/eac_rails_base0.rb
293
294
  - lib/avm/eac_rails_base0/apache_host.rb
294
295
  - lib/avm/eac_rails_base0/apache_path.rb
295
296
  - lib/avm/eac_rails_base0/deploy.rb
296
297
  - lib/avm/eac_rails_base0/instance.rb
298
+ - lib/avm/eac_redmine_base0.rb
297
299
  - lib/avm/eac_redmine_base0/core_update.rb
298
300
  - lib/avm/eac_redmine_base0/data_unit.rb
299
301
  - lib/avm/eac_redmine_base0/deploy.rb
@@ -301,6 +303,7 @@ files:
301
303
  - lib/avm/eac_ubuntu_base0/apache.rb
302
304
  - lib/avm/eac_ubuntu_base0/apache/resource.rb
303
305
  - lib/avm/eac_ubuntu_base0/docker_image.rb
306
+ - lib/avm/eac_webapp_base0.rb
304
307
  - lib/avm/eac_webapp_base0/apache_host.rb
305
308
  - lib/avm/eac_webapp_base0/deploy.rb
306
309
  - lib/avm/eac_webapp_base0/deploy/appended_directories.rb
@@ -313,6 +316,16 @@ files:
313
316
  - lib/avm/eac_webapp_base0/runner/data/dump.rb
314
317
  - lib/avm/eac_webapp_base0/runner/data/load.rb
315
318
  - lib/avm/eac_webapp_base0/runner/deploy.rb
319
+ - lib/avm/eac_writings_base0.rb
320
+ - lib/avm/eac_writings_base0/commons.rb
321
+ - lib/avm/eac_writings_base0/file_build.rb
322
+ - lib/avm/eac_writings_base0/file_build/base_stereotype.rb
323
+ - lib/avm/eac_writings_base0/file_build/chapter_index.rb
324
+ - lib/avm/eac_writings_base0/file_build/tex_source.rb
325
+ - lib/avm/eac_writings_base0/project.rb
326
+ - lib/avm/eac_writings_base0/project_build.rb
327
+ - lib/avm/eac_writings_base0/project_build/chapters_content.rb
328
+ - lib/avm/eac_writings_base0/project_build/copy_files.rb
316
329
  - lib/avm/executables.rb
317
330
  - lib/avm/files.rb
318
331
  - lib/avm/files/formatter.rb
@@ -374,6 +387,7 @@ files:
374
387
  - lib/avm/instances/base/auto_values/data.rb
375
388
  - lib/avm/instances/base/auto_values/database.rb
376
389
  - lib/avm/instances/base/auto_values/filesystem.rb
390
+ - lib/avm/instances/base/auto_values/mailer.rb
377
391
  - lib/avm/instances/base/auto_values/ruby.rb
378
392
  - lib/avm/instances/base/auto_values/source.rb
379
393
  - lib/avm/instances/base/auto_values/system.rb
@@ -425,6 +439,7 @@ files:
425
439
  - lib/avm/projects/stereotypes/ruby_gem/update.rb
426
440
  - lib/avm/projects/stereotypes/ruby_gem/version_bump.rb
427
441
  - lib/avm/rails.rb
442
+ - lib/avm/rails/instance.rb
428
443
  - lib/avm/rails/runners.rb
429
444
  - lib/avm/rails/runners/bundle.rb
430
445
  - lib/avm/rails/runners/runner.rb
@@ -442,10 +457,7 @@ files:
442
457
  - lib/avm/self/instance/entry_keys.rb
443
458
  - lib/avm/self/root.rb
444
459
  - lib/avm/stereotypes.rb
445
- - lib/avm/stereotypes/eac_rails_base0.rb
446
- - lib/avm/stereotypes/eac_redmine_base0.rb
447
460
  - lib/avm/stereotypes/eac_ubuntu_base0.rb
448
- - lib/avm/stereotypes/eac_webapp_base0.rb
449
461
  - lib/avm/stereotypes/eac_wordpress_base0/apache_host.rb
450
462
  - lib/avm/stereotypes/eac_wordpress_base0/deploy.rb
451
463
  - lib/avm/stereotypes/eac_wordpress_base0/instance.rb
@@ -454,7 +466,6 @@ files:
454
466
  - lib/avm/stereotypes/postgresql/instance/data_unit.rb
455
467
  - lib/avm/stereotypes/postgresql/instance_with.rb
456
468
  - lib/avm/stereotypes/rails.rb
457
- - lib/avm/stereotypes/rails/instance.rb
458
469
  - lib/avm/sync.rb
459
470
  - lib/avm/tools.rb
460
471
  - lib/avm/tools/runner.rb
@@ -464,6 +475,7 @@ files:
464
475
  - lib/avm/tools/runner/eac_rails_base0/bundle.rb
465
476
  - lib/avm/tools/runner/eac_rails_base0/data.rb
466
477
  - lib/avm/tools/runner/eac_rails_base0/deploy.rb
478
+ - lib/avm/tools/runner/eac_rails_base0/rails_server.rb
467
479
  - lib/avm/tools/runner/eac_rails_base0/runner.rb
468
480
  - lib/avm/tools/runner/eac_redmine_base0.rb
469
481
  - lib/avm/tools/runner/eac_redmine_base0/bundle.rb
@@ -492,11 +504,17 @@ files:
492
504
  - lib/avm/tools/runner/git/revisions_test.rb
493
505
  - lib/avm/tools/runner/git/subrepo.rb
494
506
  - lib/avm/tools/runner/git/subrepo/check.rb
507
+ - lib/avm/tools/runner/instance.rb
508
+ - lib/avm/tools/runner/instance/info.rb
495
509
  - lib/avm/tools/runner/launcher.rb
496
510
  - lib/avm/tools/runner/launcher/instances.rb
497
511
  - lib/avm/tools/runner/launcher/projects.rb
498
512
  - lib/avm/tools/runner/launcher/publish.rb
499
513
  - lib/avm/tools/runner/local_project.rb
514
+ - lib/avm/tools/runner/local_project/eac_writings_base0.rb
515
+ - lib/avm/tools/runner/local_project/eac_writings_base0/build_chapters.rb
516
+ - lib/avm/tools/runner/local_project/eac_writings_base0/build_single.rb
517
+ - lib/avm/tools/runner/local_project/eac_writings_base0/info.rb
500
518
  - lib/avm/tools/runner/local_project/info.rb
501
519
  - lib/avm/tools/runner/local_project/ruby.rb
502
520
  - lib/avm/tools/runner/local_project/ruby/bundler.rb
@@ -548,9 +566,18 @@ files:
548
566
  - lib/eac_launcher/version.rb
549
567
  - template/avm/eac_rails_base0/apache_path/default.conf
550
568
  - template/avm/eac_rails_base0/deploy/config/database.yml.template
569
+ - template/avm/eac_rails_base0/deploy/config/envvars.d/email.yml.template
551
570
  - template/avm/eac_redmine_base0/deploy/config/install.sh.template
552
571
  - template/avm/eac_redmine_base0/deploy/config/secrets.yml
553
572
  - template/avm/eac_webapp_base0/apache_host/no_ssl.conf
573
+ - template/avm/eac_writings_base0/commons/all.tex
574
+ - template/avm/eac_writings_base0/commons/ebook.tex
575
+ - template/avm/eac_writings_base0/commons/images.tex
576
+ - template/avm/eac_writings_base0/commons/links.tex
577
+ - template/avm/eac_writings_base0/commons/portuguese.tex
578
+ - template/avm/eac_writings_base0/commons/source_code.tex
579
+ - template/avm/eac_writings_base0/commons/source_code/java.tex
580
+ - template/avm/eac_writings_base0/commons/utils.tex
554
581
  - template/avm/ruby/gems/generator/gemspec.template
555
582
  - template/avm/ruby/gems/generator/root_lib.template
556
583
  - template/avm/ruby/gems/generator/static/Gemfile
@@ -836,10 +863,10 @@ files:
836
863
  - vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
837
864
  - vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/rspec.rb
838
865
  - vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb
866
+ - vendor/eac_ruby_gems_utils/spec/code/rubocop_check_spec.rb
839
867
  - vendor/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem/version_file_spec.rb
840
868
  - vendor/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem/version_file_spec_files/a_version_file.rb
841
869
  - vendor/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem_spec.rb
842
- - vendor/eac_ruby_gems_utils/spec/rubocop_check_spec.rb
843
870
  - vendor/eac_ruby_gems_utils/spec/spec_helper.rb
844
871
  - vendor/eac_ruby_gems_utils/spec/support/mygem/Gemfile
845
872
  - vendor/eac_ruby_gems_utils/spec/support/mygem/Gemfile.lock
@@ -854,11 +881,13 @@ files:
854
881
  - vendor/eac_ruby_utils/eac_ruby_utils.gemspec
855
882
  - vendor/eac_ruby_utils/lib/eac_ruby_utils.rb
856
883
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/arguments_consumer.rb
884
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb
857
885
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/boolean.rb
858
886
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/by_reference.rb
859
887
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/common_concern.rb
860
888
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/common_constructor.rb
861
889
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/configs.rb
890
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/configs/base.rb
862
891
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/configs/file.rb
863
892
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/console.rb
864
893
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs.rb
@@ -891,6 +920,7 @@ files:
891
920
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/terminal.rb
892
921
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/filesystem_cache.rb
893
922
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs.rb
923
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/clearable_directory.rb
894
924
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/extname.rb
895
925
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/temp.rb
896
926
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/temp/directory.rb
@@ -951,6 +981,9 @@ files:
951
981
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/default_time_zone_set.rb
952
982
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/local_time_zone.rb
953
983
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash.rb
984
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/entry_key_error.rb
985
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/node.rb
986
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/path_search.rb
954
987
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb
955
988
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec.rb
956
989
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/conditional.rb
@@ -974,6 +1007,7 @@ files:
974
1007
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb
975
1008
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/yaml.rb
976
1009
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/arguments_consumer_spec.rb
1010
+ - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/blank_not_blank_spec.rb
977
1011
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/common_concern_spec.rb
978
1012
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/common_constructor_spec.rb
979
1013
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/configs_spec.rb
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/require_sub'
4
-
5
- module Avm
6
- module Stereotypes
7
- module EacRedmineBase0
8
- ::EacRubyUtils.require_sub(__FILE__)
9
- end
10
- end
11
- end
@@ -1,20 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Avm
4
- module Stereotypes
5
- module Rails
6
- module Instance
7
- def bundle(*args)
8
- host_env.command('bundle', *args)
9
- .envvar('BUNDLE_GEMFILE', ::File.join(read_entry('fs_path'), 'Gemfile'))
10
- .envvar('RAILS_ENV', 'production')
11
- .chdir(read_entry('fs_path'))
12
- end
13
-
14
- def rake(*args)
15
- bundle('exec', 'rake', *args)
16
- end
17
- end
18
- end
19
- end
20
- end