avm-tools 0.73.0 → 0.76.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avm/{stereotypes/eac_rails_base0.rb → eac_rails_base0.rb} +1 -3
  3. data/lib/avm/eac_rails_base0/instance.rb +2 -5
  4. data/lib/avm/{rails/runners.rb → eac_rails_base1.rb} +2 -4
  5. data/lib/avm/{rails → eac_rails_base1}/instance.rb +8 -3
  6. data/lib/avm/eac_rails_base1/runner.rb +12 -0
  7. data/lib/avm/eac_rails_base1/runner/bundle.rb +28 -0
  8. data/lib/avm/eac_rails_base1/runner/code_runner.rb +28 -0
  9. data/lib/avm/eac_rails_base1/runner_with/bundle.rb +57 -0
  10. data/lib/avm/{stereotypes/rails.rb → eac_redmine_base0.rb} +2 -4
  11. data/lib/avm/eac_redmine_base0/instance.rb +2 -4
  12. data/lib/avm/{stereotypes/eac_ubuntu_base0.rb → eac_ubuntu_base0.rb} +1 -3
  13. data/lib/avm/{stereotypes/eac_webapp_base0.rb → eac_webapp_base0.rb} +1 -3
  14. data/lib/avm/eac_webapp_base0/deploy.rb +17 -40
  15. data/lib/avm/eac_webapp_base0/deploy/build.rb +48 -0
  16. data/lib/avm/eac_webapp_base0/deploy/git_info.rb +13 -0
  17. data/lib/avm/eac_webapp_base0/deploy/version.rb +4 -0
  18. data/lib/avm/eac_webapp_base0/deploy/write_on_target.rb +18 -0
  19. data/lib/avm/eac_webapp_base0/instance.rb +2 -2
  20. data/lib/avm/eac_webapp_base0/runner.rb +12 -0
  21. data/lib/avm/eac_webapp_base0/runner/apache_host.rb +2 -3
  22. data/lib/avm/eac_webapp_base0/runner/data.rb +1 -1
  23. data/lib/avm/eac_webapp_base0/runner/data/dump.rb +1 -1
  24. data/lib/avm/eac_webapp_base0/runner/data/load.rb +1 -1
  25. data/lib/avm/eac_webapp_base0/runner/deploy.rb +4 -16
  26. data/lib/avm/eac_wordpress_base0.rb +9 -0
  27. data/lib/avm/eac_wordpress_base0/apache_host.rb +25 -0
  28. data/lib/avm/eac_wordpress_base0/deploy.rb +10 -0
  29. data/lib/avm/eac_wordpress_base0/instance.rb +24 -0
  30. data/lib/avm/eac_writings_base0.rb +9 -0
  31. data/lib/avm/eac_writings_base0/apache_host.rb +17 -0
  32. data/lib/avm/eac_writings_base0/commons.rb +12 -0
  33. data/lib/avm/eac_writings_base0/deploy.rb +36 -0
  34. data/lib/avm/eac_writings_base0/file_build.rb +45 -0
  35. data/lib/avm/eac_writings_base0/file_build/base_stereotype.rb +19 -0
  36. data/lib/avm/eac_writings_base0/file_build/chapter_index.rb +23 -0
  37. data/lib/avm/eac_writings_base0/file_build/tex_source.rb +33 -0
  38. data/lib/avm/eac_writings_base0/instance.rb +11 -0
  39. data/lib/avm/eac_writings_base0/project.rb +33 -0
  40. data/lib/avm/eac_writings_base0/project_build.rb +117 -0
  41. data/lib/avm/eac_writings_base0/project_build/chapters_content.rb +47 -0
  42. data/lib/avm/eac_writings_base0/project_build/copy_files.rb +42 -0
  43. data/lib/avm/executables.rb +1 -1
  44. data/lib/avm/files/appendable.rb +55 -0
  45. data/lib/avm/files/appendable/file_content.rb +24 -0
  46. data/lib/avm/files/appendable/plain_directory.rb +25 -0
  47. data/lib/avm/files/appendable/resource_base.rb +13 -0
  48. data/lib/avm/files/appendable/tar_output_command.rb +26 -0
  49. data/lib/avm/files/appendable/templatized_directory.rb +28 -0
  50. data/lib/avm/files/appender.rb +11 -0
  51. data/lib/avm/files/deploy.rb +72 -0
  52. data/lib/avm/files/formatter.rb +8 -4
  53. data/lib/avm/git/auto_commit_path.rb +2 -4
  54. data/lib/avm/git/auto_commit_path/ruby.rb +20 -0
  55. data/lib/avm/git/commit/deploy.rb +8 -61
  56. data/lib/avm/instances/runner.rb +40 -0
  57. data/lib/avm/{stereotypes/postgresql.rb → postgresql.rb} +1 -3
  58. data/lib/avm/postgresql/instance.rb +63 -0
  59. data/lib/avm/postgresql/instance/data_unit.rb +39 -0
  60. data/lib/avm/postgresql/instance_with.rb +18 -0
  61. data/lib/avm/projects/stereotypes/git_subtree/publish.rb +2 -0
  62. data/lib/avm/projects/stereotypes/git_subtree/warp.rb +3 -0
  63. data/lib/avm/tools/runner.rb +3 -3
  64. data/lib/avm/tools/runner/eac_rails_base0.rb +5 -18
  65. data/lib/avm/tools/runner/eac_rails_base0/apache_path.rb +1 -1
  66. data/lib/avm/tools/runner/eac_rails_base0/rails_server.rb +7 -12
  67. data/lib/avm/tools/runner/eac_rails_base0/runner.rb +3 -3
  68. data/lib/avm/tools/runner/eac_redmine_base0.rb +5 -23
  69. data/lib/avm/tools/runner/eac_redmine_base0/core_update.rb +1 -1
  70. data/lib/avm/tools/runner/eac_redmine_base0/docker.rb +1 -1
  71. data/lib/avm/tools/runner/eac_redmine_base0/project_rename.rb +3 -3
  72. data/lib/avm/tools/runner/eac_wordpress_base0.rb +5 -24
  73. data/lib/avm/tools/runner/{eac_rails_base0/data.rb → eac_writings_base0.rb} +4 -4
  74. data/lib/avm/tools/runner/files/format.rb +3 -2
  75. data/lib/avm/tools/runner/git/auto_commit.rb +11 -0
  76. data/lib/avm/tools/runner/git/deploy.rb +1 -1
  77. data/lib/avm/tools/runner/local_project/eac_writings_base0.rb +35 -0
  78. data/lib/avm/tools/runner/local_project/eac_writings_base0/build_chapters.rb +48 -0
  79. data/lib/avm/tools/runner/local_project/eac_writings_base0/build_single.rb +37 -0
  80. data/lib/avm/tools/runner/local_project/eac_writings_base0/info.rb +36 -0
  81. data/lib/avm/tools/version.rb +1 -1
  82. data/template/avm/{stereotypes/eac_ubuntu_base0 → eac_ubuntu_base0}/docker_image/Dockerfile +0 -0
  83. data/template/avm/{stereotypes/eac_wordpress_base0 → eac_wordpress_base0}/deploy/wp-config.php.template +0 -0
  84. data/template/avm/eac_writings_base0/commons/all.tex +5 -0
  85. data/template/avm/eac_writings_base0/commons/ebook.tex +11 -0
  86. data/template/avm/eac_writings_base0/commons/images.tex +11 -0
  87. data/template/avm/eac_writings_base0/commons/links.tex +2 -0
  88. data/template/avm/eac_writings_base0/commons/portuguese.tex +8 -0
  89. data/template/avm/eac_writings_base0/commons/source_code.tex +21 -0
  90. data/template/avm/eac_writings_base0/commons/source_code/java.tex +15 -0
  91. data/template/avm/eac_writings_base0/commons/utils.tex +6 -0
  92. data/template/avm/eac_writings_base0/deploy/index.html.template +9 -0
  93. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs.rb +4 -39
  94. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/read_entry_options.rb +41 -0
  95. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/clearable_directory.rb +57 -0
  96. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/struct.rb +4 -0
  97. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  98. metadata +64 -36
  99. data/lib/avm/git/commit/deploy/appended.rb +0 -37
  100. data/lib/avm/git/commit/deploy/appended/base.rb +0 -17
  101. data/lib/avm/git/commit/deploy/appended/directory.rb +0 -32
  102. data/lib/avm/git/commit/deploy/appended/file_content.rb +0 -28
  103. data/lib/avm/rails/runners/bundle.rb +0 -35
  104. data/lib/avm/rails/runners/runner.rb +0 -48
  105. data/lib/avm/stereotypes/eac_redmine_base0.rb +0 -11
  106. data/lib/avm/stereotypes/eac_wordpress_base0/apache_host.rb +0 -27
  107. data/lib/avm/stereotypes/eac_wordpress_base0/deploy.rb +0 -12
  108. data/lib/avm/stereotypes/eac_wordpress_base0/instance.rb +0 -26
  109. data/lib/avm/stereotypes/postgresql/instance.rb +0 -65
  110. data/lib/avm/stereotypes/postgresql/instance/data_unit.rb +0 -41
  111. data/lib/avm/stereotypes/postgresql/instance_with.rb +0 -20
  112. data/lib/avm/tools/runner/eac_rails_base0/apache_host.rb +0 -16
  113. data/lib/avm/tools/runner/eac_rails_base0/bundle.rb +0 -14
  114. data/lib/avm/tools/runner/eac_rails_base0/deploy.rb +0 -15
  115. data/lib/avm/tools/runner/eac_redmine_base0/bundle.rb +0 -14
  116. data/lib/avm/tools/runner/eac_redmine_base0/data.rb +0 -27
  117. data/lib/avm/tools/runner/eac_redmine_base0/data/dump.rb +0 -16
  118. data/lib/avm/tools/runner/eac_redmine_base0/deploy.rb +0 -15
  119. data/lib/avm/tools/runner/eac_redmine_base0/runner.rb +0 -14
  120. data/lib/avm/tools/runner/eac_wordpress_base0/apache_host.rb +0 -17
  121. data/lib/avm/tools/runner/eac_wordpress_base0/data.rb +0 -15
  122. data/lib/avm/tools/runner/eac_wordpress_base0/deploy.rb +0 -15
@@ -0,0 +1,15 @@
1
+ \lstloadlanguages{Java}
2
+ \newcommand{\java}[1] {
3
+ \lstinline[language=Java]{#1}
4
+ }
5
+ \newcommand{\javafile}[1] {
6
+ \begin{minipage}{\linewidth}
7
+ \lstinputlisting[language=Java,caption=$#1$]{#1}
8
+ \end{minipage}
9
+ }
10
+ \lstnewenvironment{javaenv} {
11
+ \lstset{language=Java}
12
+ \minipage\linewidth
13
+ } {
14
+ \endminipage
15
+ }
@@ -0,0 +1,6 @@
1
+ \newcommand{\todo}[0] {
2
+ \textcolor{red}{\textbf{TO-DO}}
3
+ }
4
+ \newcommand{\dq}[1] {
5
+ ``#1''
6
+ }
@@ -0,0 +1,9 @@
1
+ <html>
2
+ <head>
3
+ <title>%%title%%</title>
4
+ </head>
5
+ <body>
6
+ <h1>%%title%%</h1>
7
+ <a href="%%pdf_path%%">PDF</a>
8
+ </body>
9
+ </html>
@@ -1,16 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'eac_ruby_utils/common_constructor'
4
3
  require 'eac_ruby_utils/configs'
5
- require 'eac_ruby_utils/console/speaker'
6
- require 'eac_ruby_utils/options_consumer'
7
- require 'eac_ruby_utils/patches/object/asserts'
8
- require 'eac_ruby_utils/simple_cache'
4
+ require 'eac_ruby_utils/core_ext'
9
5
 
10
6
  module EacRubyUtils
11
7
  module Console
12
8
  class Configs
13
- include ::EacRubyUtils::Console::Speaker
9
+ require_sub __FILE__
10
+ enable_console_speaker
14
11
 
15
12
  class << self
16
13
  def entry_key_to_envvar_name(entry_key)
@@ -34,7 +31,7 @@ module EacRubyUtils
34
31
  end
35
32
 
36
33
  def read_password(entry_key, options = {})
37
- options = options.merge(noecho: true)
34
+ options = ReadEntryOptions.new(options.merge(noecho: true))
38
35
  if store_passwords?
39
36
  read_entry(entry_key, options)
40
37
  else
@@ -101,38 +98,6 @@ module EacRubyUtils
101
98
  warn('Entered value is blank') if entry_value.blank?
102
99
  entry_value
103
100
  end
104
-
105
- class ReadEntryOptions
106
- include ::EacRubyUtils::SimpleCache
107
- ::EacRubyUtils::CommonConstructor.new(:options).setup_class(self)
108
-
109
- DEFAULT_VALUES = {
110
- before_input: nil, bool: false, list: false, noecho: false, noenv: false, noinput: false,
111
- required: true, validator: nil
112
- }.freeze
113
-
114
- def [](key)
115
- values.fetch(key.to_sym)
116
- end
117
-
118
- def request_input_options
119
- values.slice(:bool, :list, :noecho)
120
- end
121
-
122
- private
123
-
124
- def values_uncached
125
- consumer = ::EacRubyUtils::OptionsConsumer.new(options)
126
- r = {}
127
- DEFAULT_VALUES.each do |key, default_value|
128
- value = consumer.consume(key)
129
- value = default_value if value.nil?
130
- r[key] = value
131
- end
132
- consumer.validate
133
- r
134
- end
135
- end
136
101
  end
137
102
  end
138
103
  end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module EacRubyUtils
6
+ module Console
7
+ class Configs
8
+ class ReadEntryOptions
9
+ enable_simple_cache
10
+ common_constructor :options
11
+
12
+ DEFAULT_VALUES = {
13
+ before_input: nil, bool: false, list: false, noecho: false, noenv: false, noinput: false,
14
+ required: true, validator: nil
15
+ }.freeze
16
+
17
+ def [](key)
18
+ values.fetch(key.to_sym)
19
+ end
20
+
21
+ def request_input_options
22
+ values.slice(:bool, :list, :noecho)
23
+ end
24
+
25
+ private
26
+
27
+ def values_uncached
28
+ consumer = options.to_options_consumer
29
+ r = {}
30
+ DEFAULT_VALUES.each do |key, default_value|
31
+ value = consumer.consume(key)
32
+ value = default_value if value.nil?
33
+ r[key] = value
34
+ end
35
+ consumer.validate
36
+ r
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'fileutils'
4
+ require 'pathname'
5
+
6
+ module EacRubyUtils
7
+ module Fs
8
+ class ClearableDirectory < ::Pathname
9
+ CLEARABLE_BASENAME = '.clearable_directory'
10
+
11
+ def clear
12
+ validate_clearable
13
+ directory? ? clear_directory : clear_no_directory
14
+ mkpath
15
+ ::FileUtils.touch(clearable_note_file.to_path)
16
+ self
17
+ end
18
+
19
+ def clearable?
20
+ clearable_negate_message ? true : false
21
+ end
22
+
23
+ def clearable_negate_message
24
+ return if !exist? || empty?
25
+ return "Path \"#{self}\" exists, is not empty and is not a directory" unless directory?
26
+ return if clearable_note_file.exist?
27
+
28
+ "Directory \"#{self}\" is not empty and does not have a #{CLEARABLE_BASENAME} file"
29
+ end
30
+
31
+ def clearable_note_file
32
+ join(CLEARABLE_BASENAME)
33
+ end
34
+
35
+ def validate_clearable
36
+ message = clearable_negate_message
37
+ raise message if message
38
+ end
39
+
40
+ private
41
+
42
+ def clear_directory
43
+ children.each do |child|
44
+ if child.directory?
45
+ child.rmtree
46
+ elsif child.file?
47
+ child.unlink
48
+ end
49
+ end
50
+ end
51
+
52
+ def clear_no_directory
53
+ ::FileUtils.rm_rf(to_path)
54
+ end
55
+ end
56
+ end
57
+ end
@@ -27,6 +27,10 @@ module EacRubyUtils
27
27
  property_method?(method_name) || super
28
28
  end
29
29
 
30
+ def slice_fetch(*keys)
31
+ self.class.new(keys.map { |key| [key, fetch(key)] }.to_h)
32
+ end
33
+
30
34
  def to_h
31
35
  data.dup
32
36
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.48.0'
4
+ VERSION = '0.49.1'
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.73.0
4
+ version: 0.76.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-20 00:00:00.000000000 Z
11
+ date: 2020-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -290,31 +290,69 @@ 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_rails_base1.rb
299
+ - lib/avm/eac_rails_base1/instance.rb
300
+ - lib/avm/eac_rails_base1/runner.rb
301
+ - lib/avm/eac_rails_base1/runner/bundle.rb
302
+ - lib/avm/eac_rails_base1/runner/code_runner.rb
303
+ - lib/avm/eac_rails_base1/runner_with/bundle.rb
304
+ - lib/avm/eac_redmine_base0.rb
297
305
  - lib/avm/eac_redmine_base0/core_update.rb
298
306
  - lib/avm/eac_redmine_base0/data_unit.rb
299
307
  - lib/avm/eac_redmine_base0/deploy.rb
300
308
  - lib/avm/eac_redmine_base0/instance.rb
309
+ - lib/avm/eac_ubuntu_base0.rb
301
310
  - lib/avm/eac_ubuntu_base0/apache.rb
302
311
  - lib/avm/eac_ubuntu_base0/apache/resource.rb
303
312
  - lib/avm/eac_ubuntu_base0/docker_image.rb
313
+ - lib/avm/eac_webapp_base0.rb
304
314
  - lib/avm/eac_webapp_base0/apache_host.rb
305
315
  - lib/avm/eac_webapp_base0/deploy.rb
306
316
  - lib/avm/eac_webapp_base0/deploy/appended_directories.rb
317
+ - lib/avm/eac_webapp_base0/deploy/build.rb
307
318
  - lib/avm/eac_webapp_base0/deploy/file_unit.rb
308
319
  - lib/avm/eac_webapp_base0/deploy/git_info.rb
309
320
  - lib/avm/eac_webapp_base0/deploy/version.rb
321
+ - lib/avm/eac_webapp_base0/deploy/write_on_target.rb
310
322
  - lib/avm/eac_webapp_base0/instance.rb
323
+ - lib/avm/eac_webapp_base0/runner.rb
311
324
  - lib/avm/eac_webapp_base0/runner/apache_host.rb
312
325
  - lib/avm/eac_webapp_base0/runner/data.rb
313
326
  - lib/avm/eac_webapp_base0/runner/data/dump.rb
314
327
  - lib/avm/eac_webapp_base0/runner/data/load.rb
315
328
  - lib/avm/eac_webapp_base0/runner/deploy.rb
329
+ - lib/avm/eac_wordpress_base0.rb
330
+ - lib/avm/eac_wordpress_base0/apache_host.rb
331
+ - lib/avm/eac_wordpress_base0/deploy.rb
332
+ - lib/avm/eac_wordpress_base0/instance.rb
333
+ - lib/avm/eac_writings_base0.rb
334
+ - lib/avm/eac_writings_base0/apache_host.rb
335
+ - lib/avm/eac_writings_base0/commons.rb
336
+ - lib/avm/eac_writings_base0/deploy.rb
337
+ - lib/avm/eac_writings_base0/file_build.rb
338
+ - lib/avm/eac_writings_base0/file_build/base_stereotype.rb
339
+ - lib/avm/eac_writings_base0/file_build/chapter_index.rb
340
+ - lib/avm/eac_writings_base0/file_build/tex_source.rb
341
+ - lib/avm/eac_writings_base0/instance.rb
342
+ - lib/avm/eac_writings_base0/project.rb
343
+ - lib/avm/eac_writings_base0/project_build.rb
344
+ - lib/avm/eac_writings_base0/project_build/chapters_content.rb
345
+ - lib/avm/eac_writings_base0/project_build/copy_files.rb
316
346
  - lib/avm/executables.rb
317
347
  - lib/avm/files.rb
348
+ - lib/avm/files/appendable.rb
349
+ - lib/avm/files/appendable/file_content.rb
350
+ - lib/avm/files/appendable/plain_directory.rb
351
+ - lib/avm/files/appendable/resource_base.rb
352
+ - lib/avm/files/appendable/tar_output_command.rb
353
+ - lib/avm/files/appendable/templatized_directory.rb
354
+ - lib/avm/files/appender.rb
355
+ - lib/avm/files/deploy.rb
318
356
  - lib/avm/files/formatter.rb
319
357
  - lib/avm/files/formatter/formats.rb
320
358
  - lib/avm/files/formatter/formats/base.rb
@@ -331,13 +369,10 @@ files:
331
369
  - lib/avm/fs_cache.rb
332
370
  - lib/avm/git.rb
333
371
  - lib/avm/git/auto_commit_path.rb
372
+ - lib/avm/git/auto_commit_path/ruby.rb
334
373
  - lib/avm/git/commit.rb
335
374
  - lib/avm/git/commit/class_methods.rb
336
375
  - lib/avm/git/commit/deploy.rb
337
- - lib/avm/git/commit/deploy/appended.rb
338
- - lib/avm/git/commit/deploy/appended/base.rb
339
- - lib/avm/git/commit/deploy/appended/directory.rb
340
- - lib/avm/git/commit/deploy/appended/file_content.rb
341
376
  - lib/avm/git/commit/deploy_methods.rb
342
377
  - lib/avm/git/commit/diff_tree_line.rb
343
378
  - lib/avm/git/commit/file.rb
@@ -387,6 +422,7 @@ files:
387
422
  - lib/avm/instances/entries.rb
388
423
  - lib/avm/instances/entry.rb
389
424
  - lib/avm/instances/entry_keys.rb
425
+ - lib/avm/instances/runner.rb
390
426
  - lib/avm/launcher/context/instance_manager.rb
391
427
  - lib/avm/launcher/context/instance_manager/cached_instance.rb
392
428
  - lib/avm/launcher/context/instance_manager/cached_instances.rb
@@ -403,6 +439,10 @@ files:
403
439
  - lib/avm/patches/object/i18n.rb
404
440
  - lib/avm/patches/object/template.rb
405
441
  - lib/avm/path_string.rb
442
+ - lib/avm/postgresql.rb
443
+ - lib/avm/postgresql/instance.rb
444
+ - lib/avm/postgresql/instance/data_unit.rb
445
+ - lib/avm/postgresql/instance_with.rb
406
446
  - lib/avm/projects.rb
407
447
  - lib/avm/projects/stereotype.rb
408
448
  - lib/avm/projects/stereotypes.rb
@@ -426,10 +466,6 @@ files:
426
466
  - lib/avm/projects/stereotypes/ruby_gem/update.rb
427
467
  - lib/avm/projects/stereotypes/ruby_gem/version_bump.rb
428
468
  - lib/avm/rails.rb
429
- - lib/avm/rails/instance.rb
430
- - lib/avm/rails/runners.rb
431
- - lib/avm/rails/runners/bundle.rb
432
- - lib/avm/rails/runners/runner.rb
433
469
  - lib/avm/result.rb
434
470
  - lib/avm/ruby.rb
435
471
  - lib/avm/ruby/gems.rb
@@ -444,42 +480,19 @@ files:
444
480
  - lib/avm/self/instance/entry_keys.rb
445
481
  - lib/avm/self/root.rb
446
482
  - lib/avm/stereotypes.rb
447
- - lib/avm/stereotypes/eac_rails_base0.rb
448
- - lib/avm/stereotypes/eac_redmine_base0.rb
449
- - lib/avm/stereotypes/eac_ubuntu_base0.rb
450
- - lib/avm/stereotypes/eac_webapp_base0.rb
451
- - lib/avm/stereotypes/eac_wordpress_base0/apache_host.rb
452
- - lib/avm/stereotypes/eac_wordpress_base0/deploy.rb
453
- - lib/avm/stereotypes/eac_wordpress_base0/instance.rb
454
- - lib/avm/stereotypes/postgresql.rb
455
- - lib/avm/stereotypes/postgresql/instance.rb
456
- - lib/avm/stereotypes/postgresql/instance/data_unit.rb
457
- - lib/avm/stereotypes/postgresql/instance_with.rb
458
- - lib/avm/stereotypes/rails.rb
459
483
  - lib/avm/sync.rb
460
484
  - lib/avm/tools.rb
461
485
  - lib/avm/tools/runner.rb
462
486
  - lib/avm/tools/runner/eac_rails_base0.rb
463
- - lib/avm/tools/runner/eac_rails_base0/apache_host.rb
464
487
  - lib/avm/tools/runner/eac_rails_base0/apache_path.rb
465
- - lib/avm/tools/runner/eac_rails_base0/bundle.rb
466
- - lib/avm/tools/runner/eac_rails_base0/data.rb
467
- - lib/avm/tools/runner/eac_rails_base0/deploy.rb
468
488
  - lib/avm/tools/runner/eac_rails_base0/rails_server.rb
469
489
  - lib/avm/tools/runner/eac_rails_base0/runner.rb
470
490
  - lib/avm/tools/runner/eac_redmine_base0.rb
471
- - lib/avm/tools/runner/eac_redmine_base0/bundle.rb
472
491
  - lib/avm/tools/runner/eac_redmine_base0/core_update.rb
473
- - lib/avm/tools/runner/eac_redmine_base0/data.rb
474
- - lib/avm/tools/runner/eac_redmine_base0/data/dump.rb
475
- - lib/avm/tools/runner/eac_redmine_base0/deploy.rb
476
492
  - lib/avm/tools/runner/eac_redmine_base0/docker.rb
477
493
  - lib/avm/tools/runner/eac_redmine_base0/project_rename.rb
478
- - lib/avm/tools/runner/eac_redmine_base0/runner.rb
479
494
  - lib/avm/tools/runner/eac_wordpress_base0.rb
480
- - lib/avm/tools/runner/eac_wordpress_base0/apache_host.rb
481
- - lib/avm/tools/runner/eac_wordpress_base0/data.rb
482
- - lib/avm/tools/runner/eac_wordpress_base0/deploy.rb
495
+ - lib/avm/tools/runner/eac_writings_base0.rb
483
496
  - lib/avm/tools/runner/files.rb
484
497
  - lib/avm/tools/runner/files/format.rb
485
498
  - lib/avm/tools/runner/files/rotate.rb
@@ -501,6 +514,10 @@ files:
501
514
  - lib/avm/tools/runner/launcher/projects.rb
502
515
  - lib/avm/tools/runner/launcher/publish.rb
503
516
  - lib/avm/tools/runner/local_project.rb
517
+ - lib/avm/tools/runner/local_project/eac_writings_base0.rb
518
+ - lib/avm/tools/runner/local_project/eac_writings_base0/build_chapters.rb
519
+ - lib/avm/tools/runner/local_project/eac_writings_base0/build_single.rb
520
+ - lib/avm/tools/runner/local_project/eac_writings_base0/info.rb
504
521
  - lib/avm/tools/runner/local_project/info.rb
505
522
  - lib/avm/tools/runner/local_project/ruby.rb
506
523
  - lib/avm/tools/runner/local_project/ruby/bundler.rb
@@ -555,7 +572,18 @@ files:
555
572
  - template/avm/eac_rails_base0/deploy/config/envvars.d/email.yml.template
556
573
  - template/avm/eac_redmine_base0/deploy/config/install.sh.template
557
574
  - template/avm/eac_redmine_base0/deploy/config/secrets.yml
575
+ - template/avm/eac_ubuntu_base0/docker_image/Dockerfile
558
576
  - template/avm/eac_webapp_base0/apache_host/no_ssl.conf
577
+ - template/avm/eac_wordpress_base0/deploy/wp-config.php.template
578
+ - template/avm/eac_writings_base0/commons/all.tex
579
+ - template/avm/eac_writings_base0/commons/ebook.tex
580
+ - template/avm/eac_writings_base0/commons/images.tex
581
+ - template/avm/eac_writings_base0/commons/links.tex
582
+ - template/avm/eac_writings_base0/commons/portuguese.tex
583
+ - template/avm/eac_writings_base0/commons/source_code.tex
584
+ - template/avm/eac_writings_base0/commons/source_code/java.tex
585
+ - template/avm/eac_writings_base0/commons/utils.tex
586
+ - template/avm/eac_writings_base0/deploy/index.html.template
559
587
  - template/avm/ruby/gems/generator/gemspec.template
560
588
  - template/avm/ruby/gems/generator/root_lib.template
561
589
  - template/avm/ruby/gems/generator/static/Gemfile
@@ -564,8 +592,6 @@ files:
564
592
  - template/avm/ruby/gems/generator/version.template
565
593
  - template/avm/self/docker_image/Dockerfile
566
594
  - template/avm/self/docker_image/entrypoint.sh
567
- - template/avm/stereotypes/eac_ubuntu_base0/docker_image/Dockerfile
568
- - template/avm/stereotypes/eac_wordpress_base0/deploy/wp-config.php.template
569
595
  - vendor/eac_cli/Gemfile
570
596
  - vendor/eac_cli/eac_cli.gemspec
571
597
  - vendor/eac_cli/lib/eac_cli.rb
@@ -869,6 +895,7 @@ files:
869
895
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/configs/file.rb
870
896
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/console.rb
871
897
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs.rb
898
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/read_entry_options.rb
872
899
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner.rb
873
900
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
874
901
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_doc.rb
@@ -898,6 +925,7 @@ files:
898
925
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/terminal.rb
899
926
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/filesystem_cache.rb
900
927
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs.rb
928
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/clearable_directory.rb
901
929
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/extname.rb
902
930
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/temp.rb
903
931
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/temp/directory.rb
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Avm
4
- module Git
5
- class Commit
6
- class Deploy
7
- module Appended
8
- require_sub __FILE__
9
-
10
- def appended
11
- @appended ||= []
12
- end
13
-
14
- def append_directory(directory)
15
- appended << ::Avm::Git::Commit::Deploy::Appended::Directory.new(self, directory)
16
- self
17
- end
18
-
19
- def append_directories(directories)
20
- directories.each { |directory| append_directory(directory) }
21
- self
22
- end
23
-
24
- def append_file_content(target_path, content)
25
- appended << ::Avm::Git::Commit::Deploy::Appended::FileContent
26
- .new(self, target_path, content)
27
- self
28
- end
29
-
30
- def copy_appended_content
31
- appended.each(&:copy_to_build_dir)
32
- end
33
- end
34
- end
35
- end
36
- end
37
- end