avm-tools 0.56.0 → 0.60.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avm/local_projects.rb +9 -0
  3. data/lib/avm/local_projects/instance.rb +35 -0
  4. data/lib/avm/local_projects/jobs/update.rb +29 -0
  5. data/lib/avm/projects.rb +9 -0
  6. data/lib/avm/projects/stereotype.rb +62 -0
  7. data/lib/avm/projects/stereotypes.rb +20 -0
  8. data/lib/avm/projects/stereotypes/git.rb +25 -0
  9. data/lib/avm/projects/stereotypes/git/local_project_mixin.rb +19 -0
  10. data/lib/avm/projects/stereotypes/git/publish.rb +15 -0
  11. data/lib/avm/projects/stereotypes/git/warp.rb +27 -0
  12. data/lib/avm/projects/stereotypes/git_subrepo.rb +34 -0
  13. data/lib/avm/projects/stereotypes/git_subrepo/publish.rb +14 -0
  14. data/lib/avm/projects/stereotypes/git_subrepo/warp.rb +87 -0
  15. data/lib/avm/projects/stereotypes/git_subtree.rb +51 -0
  16. data/lib/avm/projects/stereotypes/git_subtree/publish.rb +12 -0
  17. data/lib/avm/projects/stereotypes/git_subtree/warp.rb +29 -0
  18. data/lib/avm/projects/stereotypes/rails_application.rb +23 -0
  19. data/lib/avm/projects/stereotypes/redmine_plugin.rb +23 -0
  20. data/lib/avm/projects/stereotypes/ruby_gem.rb +30 -0
  21. data/lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb +19 -0
  22. data/lib/avm/projects/stereotypes/ruby_gem/publish.rb +129 -0
  23. data/lib/avm/projects/stereotypes/ruby_gem/update.rb +59 -0
  24. data/lib/avm/tools/runner/eac_redmine_base0/project_rename.rb +64 -0
  25. data/lib/avm/tools/runner/launcher.rb +10 -2
  26. data/lib/avm/tools/runner/launcher/instances.rb +45 -0
  27. data/lib/avm/tools/runner/launcher/projects.rb +50 -0
  28. data/lib/avm/tools/runner/launcher/publish.rb +65 -0
  29. data/lib/avm/tools/runner/local_project.rb +32 -0
  30. data/lib/avm/tools/runner/local_project/info.rb +25 -0
  31. data/lib/avm/tools/runner/local_project/update.rb +26 -0
  32. data/lib/avm/tools/version.rb +1 -1
  33. data/lib/eac_launcher.rb +1 -2
  34. data/lib/eac_launcher/context/instance_manager.rb +1 -0
  35. data/lib/eac_launcher/git/base/dirty_files.rb +5 -14
  36. data/lib/eac_launcher/git/publish_base.rb +1 -0
  37. data/lib/eac_launcher/git/sub_warp_base.rb +1 -1
  38. data/lib/eac_launcher/git/warp_base.rb +2 -2
  39. data/lib/eac_launcher/instances/base.rb +2 -2
  40. data/lib/eac_launcher/instances/runner_helper.rb +1 -1
  41. data/lib/eac_launcher/paths/logical.rb +2 -2
  42. data/vendor/eac_docker/Gemfile +5 -0
  43. data/vendor/eac_docker/eac_docker.gemspec +18 -0
  44. data/vendor/eac_docker/lib/eac_docker.rb +7 -0
  45. data/vendor/eac_docker/lib/eac_docker/container.rb +74 -0
  46. data/vendor/eac_docker/lib/eac_docker/executables.rb +18 -0
  47. data/vendor/eac_docker/lib/eac_docker/images.rb +9 -0
  48. data/vendor/eac_docker/lib/eac_docker/images/base.rb +14 -0
  49. data/vendor/eac_docker/lib/eac_docker/images/coded.rb +39 -0
  50. data/vendor/eac_docker/lib/eac_docker/images/named.rb +30 -0
  51. data/vendor/eac_docker/lib/eac_docker/images/templatized.rb +26 -0
  52. data/vendor/eac_docker/lib/eac_docker/registry.rb +17 -0
  53. data/vendor/eac_docker/lib/eac_docker/rspec.rb +17 -0
  54. data/vendor/eac_docker/lib/eac_docker/version.rb +5 -0
  55. data/vendor/eac_docker/spec/lib/eac_docker/executables_spec.rb +9 -0
  56. data/vendor/eac_docker/spec/lib/eac_docker/images/coded_spec.rb +12 -0
  57. data/vendor/eac_docker/spec/lib/eac_docker/images/coded_spec_files/image1/Dockerfile +1 -0
  58. data/vendor/eac_docker/spec/lib/eac_docker/images/templatized_spec.rb +17 -0
  59. data/vendor/eac_docker/spec/lib/eac_docker/images/templatized_spec_files/stub_docker_image/Dockerfile +1 -0
  60. data/vendor/eac_docker/spec/rubocop_spec.rb +7 -0
  61. data/vendor/eac_docker/spec/spec_helper.rb +103 -0
  62. data/vendor/eac_git/lib/eac_git/local.rb +1 -1
  63. data/vendor/eac_git/lib/eac_git/local/dirty_files.rb +38 -0
  64. data/vendor/eac_git/lib/eac_git/version.rb +1 -1
  65. data/vendor/eac_git/vendor/git-subrepo/lib/git-subrepo.d/bash+.bash +1 -1
  66. data/vendor/eac_ruby_gems_utils/LICENCE +16 -674
  67. data/vendor/eac_ruby_gems_utils/eac_ruby_gems_utils.gemspec +10 -2
  68. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem.rb +2 -1
  69. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +1 -1
  70. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/boolean.rb +31 -0
  71. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb +1 -1
  72. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env.rb +12 -9
  73. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/dasho_options.rb +53 -0
  74. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/identity_file.rb +25 -0
  75. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb +24 -0
  76. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/terminal.rb +34 -0
  77. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs_cache.rb +1 -0
  78. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable.rb +15 -0
  79. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/array_accessor.rb +32 -0
  80. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/base_accessor.rb +23 -0
  81. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/boolean_accessor.rb +16 -0
  82. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/class_methods.rb +20 -0
  83. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/common_accessor.rb +30 -0
  84. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/hash_accessor.rb +46 -0
  85. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/instance_methods.rb +21 -0
  86. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/list.rb +5 -0
  87. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/immutable.rb +10 -0
  88. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb +8 -8
  89. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  90. metadata +91 -27
  91. data/lib/eac_launcher/runner.rb +0 -21
  92. data/lib/eac_launcher/runner/instances.rb +0 -41
  93. data/lib/eac_launcher/runner/projects.rb +0 -46
  94. data/lib/eac_launcher/runner/publish.rb +0 -59
  95. data/lib/eac_launcher/stereotype.rb +0 -52
  96. data/lib/eac_launcher/stereotypes.rb +0 -14
  97. data/lib/eac_launcher/stereotypes/git.rb +0 -21
  98. data/lib/eac_launcher/stereotypes/git/publish.rb +0 -13
  99. data/lib/eac_launcher/stereotypes/git/warp.rb +0 -25
  100. data/lib/eac_launcher/stereotypes/git_subrepo.rb +0 -30
  101. data/lib/eac_launcher/stereotypes/git_subrepo/publish.rb +0 -12
  102. data/lib/eac_launcher/stereotypes/git_subrepo/warp.rb +0 -85
  103. data/lib/eac_launcher/stereotypes/git_subtree.rb +0 -47
  104. data/lib/eac_launcher/stereotypes/git_subtree/publish.rb +0 -10
  105. data/lib/eac_launcher/stereotypes/git_subtree/warp.rb +0 -27
  106. data/lib/eac_launcher/stereotypes/rails.rb +0 -21
  107. data/lib/eac_launcher/stereotypes/redmine_plugin.rb +0 -21
  108. data/lib/eac_launcher/stereotypes/ruby_gem.rb +0 -27
  109. data/lib/eac_launcher/stereotypes/ruby_gem/publish.rb +0 -127
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EacRubyUtils
4
+ module Immutable
5
+ module InstanceMethods
6
+ def immutable_constructor_args
7
+ []
8
+ end
9
+
10
+ private
11
+
12
+ def immutable_values_get
13
+ @immutable_values || {}
14
+ end
15
+
16
+ def immutable_values_set(new_values)
17
+ @immutable_values = new_values
18
+ end
19
+ end
20
+ end
21
+ end
@@ -33,6 +33,11 @@ module EacRubyUtils
33
33
  find_list_by_method(name) || super
34
34
  end
35
35
 
36
+ def hash_keys_validate!(hash, error_class = ::StandardError)
37
+ hash.keys.each { |key| value_validate!(key, error_class) }
38
+ hash
39
+ end
40
+
36
41
  def i18n_key
37
42
  "eac_ruby_utils.listable.#{class_i18n_key}.#{item}"
38
43
  end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/patch'
4
+ require 'eac_ruby_utils/immutable'
5
+
6
+ class Module
7
+ def enable_immutable
8
+ ::EacRubyUtils.patch(self, ::EacRubyUtils::Immutable)
9
+ end
10
+ end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'active_support/inflector'
4
+ require 'eac_ruby_utils/listable'
4
5
 
5
6
  module EacRubyUtils
6
7
  class << self
@@ -10,15 +11,14 @@ module EacRubyUtils
10
11
  end
11
12
 
12
13
  class RequireSub
13
- BASE_OPTION_KEY = :base
14
- INCLUDE_MODULES_OPTION_KEY = :include_modules
15
- REQUIRE_DEPENDENCY_OPTION_KEY = :require_dependency
14
+ include ::EacRubyUtils::Listable
15
+ lists.add_symbol :option, :base, :include_modules, :require_dependency
16
16
 
17
17
  attr_reader :file, :options
18
18
 
19
19
  def initialize(file, options = {})
20
20
  @file = file
21
- @options = options
21
+ @options = self.class.lists.option.hash_keys_validate!(options)
22
22
  end
23
23
 
24
24
  def apply
@@ -29,7 +29,7 @@ module EacRubyUtils
29
29
  private
30
30
 
31
31
  def active_support_require(path)
32
- return false unless options[REQUIRE_DEPENDENCY_OPTION_KEY]
32
+ return false unless options[OPTION_REQUIRE_DEPENDENCY]
33
33
 
34
34
  ::Kernel.require_dependency(path)
35
35
  true
@@ -46,7 +46,7 @@ module EacRubyUtils
46
46
  end
47
47
 
48
48
  def include_modules
49
- return unless options[INCLUDE_MODULES_OPTION_KEY]
49
+ return unless options[OPTION_INCLUDE_MODULES]
50
50
 
51
51
  base.constants.each do |constant_name|
52
52
  constant = base.const_get(constant_name)
@@ -57,11 +57,11 @@ module EacRubyUtils
57
57
  end
58
58
 
59
59
  def base
60
- options[BASE_OPTION_KEY] || raise('Option :base not setted')
60
+ options[OPTION_BASE] || raise('Option :base not setted')
61
61
  end
62
62
 
63
63
  def base?
64
- options[BASE_OPTION_KEY] ? true : false
64
+ options[OPTION_BASE] ? true : false
65
65
  end
66
66
 
67
67
  def kernel_require(path)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.39.0'
4
+ VERSION = '0.43.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.56.0
4
+ version: 0.60.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-07-07 00:00:00.000000000 Z
11
+ date: 2020-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -106,6 +106,20 @@ dependencies:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0.3'
109
+ - !ruby/object:Gem::Dependency
110
+ name: eac_docker
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '0.2'
116
+ type: :runtime
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: '0.2'
109
123
  - !ruby/object:Gem::Dependency
110
124
  name: eac_git
111
125
  requirement: !ruby/object:Gem::Requirement
@@ -140,28 +154,34 @@ dependencies:
140
154
  requirements:
141
155
  - - "~>"
142
156
  - !ruby/object:Gem::Version
143
- version: '0.4'
157
+ version: '0.6'
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: 0.6.1
144
161
  type: :runtime
145
162
  prerelease: false
146
163
  version_requirements: !ruby/object:Gem::Requirement
147
164
  requirements:
148
165
  - - "~>"
149
166
  - !ruby/object:Gem::Version
150
- version: '0.4'
167
+ version: '0.6'
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: 0.6.1
151
171
  - !ruby/object:Gem::Dependency
152
172
  name: eac_ruby_utils
153
173
  requirement: !ruby/object:Gem::Requirement
154
174
  requirements:
155
175
  - - "~>"
156
176
  - !ruby/object:Gem::Version
157
- version: '0.39'
177
+ version: '0.42'
158
178
  type: :runtime
159
179
  prerelease: false
160
180
  version_requirements: !ruby/object:Gem::Requirement
161
181
  requirements:
162
182
  - - "~>"
163
183
  - !ruby/object:Gem::Version
164
- version: '0.39'
184
+ version: '0.42'
165
185
  - !ruby/object:Gem::Dependency
166
186
  name: filesize
167
187
  requirement: !ruby/object:Gem::Requirement
@@ -338,9 +358,31 @@ files:
338
358
  - lib/avm/instances/entries.rb
339
359
  - lib/avm/instances/entries/entry_reader.rb
340
360
  - lib/avm/instances/entry_keys.rb
361
+ - lib/avm/local_projects.rb
362
+ - lib/avm/local_projects/instance.rb
363
+ - lib/avm/local_projects/jobs/update.rb
341
364
  - lib/avm/patches.rb
342
365
  - lib/avm/patches/object/template.rb
343
366
  - lib/avm/path_string.rb
367
+ - lib/avm/projects.rb
368
+ - lib/avm/projects/stereotype.rb
369
+ - lib/avm/projects/stereotypes.rb
370
+ - lib/avm/projects/stereotypes/git.rb
371
+ - lib/avm/projects/stereotypes/git/local_project_mixin.rb
372
+ - lib/avm/projects/stereotypes/git/publish.rb
373
+ - lib/avm/projects/stereotypes/git/warp.rb
374
+ - lib/avm/projects/stereotypes/git_subrepo.rb
375
+ - lib/avm/projects/stereotypes/git_subrepo/publish.rb
376
+ - lib/avm/projects/stereotypes/git_subrepo/warp.rb
377
+ - lib/avm/projects/stereotypes/git_subtree.rb
378
+ - lib/avm/projects/stereotypes/git_subtree/publish.rb
379
+ - lib/avm/projects/stereotypes/git_subtree/warp.rb
380
+ - lib/avm/projects/stereotypes/rails_application.rb
381
+ - lib/avm/projects/stereotypes/redmine_plugin.rb
382
+ - lib/avm/projects/stereotypes/ruby_gem.rb
383
+ - lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
384
+ - lib/avm/projects/stereotypes/ruby_gem/publish.rb
385
+ - lib/avm/projects/stereotypes/ruby_gem/update.rb
344
386
  - lib/avm/rails.rb
345
387
  - lib/avm/rails/runners.rb
346
388
  - lib/avm/rails/runners/bundle.rb
@@ -405,6 +447,7 @@ files:
405
447
  - lib/avm/tools/runner/eac_redmine_base0/data/dump.rb
406
448
  - lib/avm/tools/runner/eac_redmine_base0/deploy.rb
407
449
  - lib/avm/tools/runner/eac_redmine_base0/docker.rb
450
+ - lib/avm/tools/runner/eac_redmine_base0/project_rename.rb
408
451
  - lib/avm/tools/runner/eac_redmine_base0/runner.rb
409
452
  - lib/avm/tools/runner/eac_wordpress_base0.rb
410
453
  - lib/avm/tools/runner/eac_wordpress_base0/apache_host.rb
@@ -424,6 +467,12 @@ files:
424
467
  - lib/avm/tools/runner/git/subrepo.rb
425
468
  - lib/avm/tools/runner/git/subrepo/check.rb
426
469
  - lib/avm/tools/runner/launcher.rb
470
+ - lib/avm/tools/runner/launcher/instances.rb
471
+ - lib/avm/tools/runner/launcher/projects.rb
472
+ - lib/avm/tools/runner/launcher/publish.rb
473
+ - lib/avm/tools/runner/local_project.rb
474
+ - lib/avm/tools/runner/local_project/info.rb
475
+ - lib/avm/tools/runner/local_project/update.rb
427
476
  - lib/avm/tools/runner/ruby.rb
428
477
  - lib/avm/tools/runner/ruby/gems.rb
429
478
  - lib/avm/tools/runner/ruby/gems/generate.rb
@@ -466,25 +515,6 @@ files:
466
515
  - lib/eac_launcher/ruby/gem.rb
467
516
  - lib/eac_launcher/ruby/gem/build.rb
468
517
  - lib/eac_launcher/ruby/gem/specification.rb
469
- - lib/eac_launcher/runner.rb
470
- - lib/eac_launcher/runner/instances.rb
471
- - lib/eac_launcher/runner/projects.rb
472
- - lib/eac_launcher/runner/publish.rb
473
- - lib/eac_launcher/stereotype.rb
474
- - lib/eac_launcher/stereotypes.rb
475
- - lib/eac_launcher/stereotypes/git.rb
476
- - lib/eac_launcher/stereotypes/git/publish.rb
477
- - lib/eac_launcher/stereotypes/git/warp.rb
478
- - lib/eac_launcher/stereotypes/git_subrepo.rb
479
- - lib/eac_launcher/stereotypes/git_subrepo/publish.rb
480
- - lib/eac_launcher/stereotypes/git_subrepo/warp.rb
481
- - lib/eac_launcher/stereotypes/git_subtree.rb
482
- - lib/eac_launcher/stereotypes/git_subtree/publish.rb
483
- - lib/eac_launcher/stereotypes/git_subtree/warp.rb
484
- - lib/eac_launcher/stereotypes/rails.rb
485
- - lib/eac_launcher/stereotypes/redmine_plugin.rb
486
- - lib/eac_launcher/stereotypes/ruby_gem.rb
487
- - lib/eac_launcher/stereotypes/ruby_gem/publish.rb
488
518
  - lib/eac_launcher/vendor.rb
489
519
  - lib/eac_launcher/vendor/github.rb
490
520
  - lib/eac_launcher/version.rb
@@ -502,11 +532,32 @@ files:
502
532
  - template/avm/stereotypes/eac_ubuntu_base0/docker_image/Dockerfile
503
533
  - template/avm/stereotypes/eac_webapp_base0/apache_host/no_ssl.conf
504
534
  - template/avm/stereotypes/eac_wordpress_base0/deploy/wp-config.php.template
535
+ - vendor/eac_docker/Gemfile
536
+ - vendor/eac_docker/eac_docker.gemspec
537
+ - vendor/eac_docker/lib/eac_docker.rb
538
+ - vendor/eac_docker/lib/eac_docker/container.rb
539
+ - vendor/eac_docker/lib/eac_docker/executables.rb
540
+ - vendor/eac_docker/lib/eac_docker/images.rb
541
+ - vendor/eac_docker/lib/eac_docker/images/base.rb
542
+ - vendor/eac_docker/lib/eac_docker/images/coded.rb
543
+ - vendor/eac_docker/lib/eac_docker/images/named.rb
544
+ - vendor/eac_docker/lib/eac_docker/images/templatized.rb
545
+ - vendor/eac_docker/lib/eac_docker/registry.rb
546
+ - vendor/eac_docker/lib/eac_docker/rspec.rb
547
+ - vendor/eac_docker/lib/eac_docker/version.rb
548
+ - vendor/eac_docker/spec/lib/eac_docker/executables_spec.rb
549
+ - vendor/eac_docker/spec/lib/eac_docker/images/coded_spec.rb
550
+ - vendor/eac_docker/spec/lib/eac_docker/images/coded_spec_files/image1/Dockerfile
551
+ - vendor/eac_docker/spec/lib/eac_docker/images/templatized_spec.rb
552
+ - vendor/eac_docker/spec/lib/eac_docker/images/templatized_spec_files/stub_docker_image/Dockerfile
553
+ - vendor/eac_docker/spec/rubocop_spec.rb
554
+ - vendor/eac_docker/spec/spec_helper.rb
505
555
  - vendor/eac_git/Gemfile
506
556
  - vendor/eac_git/eac_git.gemspec
507
557
  - vendor/eac_git/lib/eac_git.rb
508
558
  - vendor/eac_git/lib/eac_git/executables.rb
509
559
  - vendor/eac_git/lib/eac_git/local.rb
560
+ - vendor/eac_git/lib/eac_git/local/dirty_files.rb
510
561
  - vendor/eac_git/lib/eac_git/local/subrepo.rb
511
562
  - vendor/eac_git/lib/eac_git/local/subrepo/config.rb
512
563
  - vendor/eac_git/lib/eac_git/remote.rb
@@ -739,6 +790,7 @@ files:
739
790
  - vendor/eac_ruby_utils/eac_ruby_utils.gemspec
740
791
  - vendor/eac_ruby_utils/lib/eac_ruby_utils.rb
741
792
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/arguments_consumer.rb
793
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/boolean.rb
742
794
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/by_reference.rb
743
795
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/common_concern.rb
744
796
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/common_constructor.rb
@@ -769,6 +821,10 @@ files:
769
821
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/process.rb
770
822
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/spawn.rb
771
823
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env.rb
824
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/dasho_options.rb
825
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/identity_file.rb
826
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb
827
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/terminal.rb
772
828
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/filesystem_cache.rb
773
829
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs.rb
774
830
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/extname.rb
@@ -778,6 +834,14 @@ files:
778
834
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/traversable.rb
779
835
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/traverser.rb
780
836
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs_cache.rb
837
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable.rb
838
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/array_accessor.rb
839
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/base_accessor.rb
840
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/boolean_accessor.rb
841
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/class_methods.rb
842
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/common_accessor.rb
843
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/hash_accessor.rb
844
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/instance_methods.rb
781
845
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/listable.rb
782
846
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/class_methods.rb
783
847
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/instance_methods.rb
@@ -801,6 +865,7 @@ files:
801
865
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module.rb
802
866
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/common_concern.rb
803
867
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/console_speaker.rb
868
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/immutable.rb
804
869
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/listable.rb
805
870
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/patch.rb
806
871
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/require_sub.rb
@@ -901,8 +966,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
901
966
  - !ruby/object:Gem::Version
902
967
  version: '0'
903
968
  requirements: []
904
- rubyforge_project:
905
- rubygems_version: 2.7.7
969
+ rubygems_version: 3.0.6
906
970
  signing_key:
907
971
  specification_version: 4
908
972
  summary: Tools for AVM.
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/console/docopt_runner'
4
- require 'eac_launcher/runner/instances'
5
- require 'eac_launcher/runner/projects'
6
- require 'eac_launcher/runner/publish'
7
-
8
- module EacLauncher
9
- class Runner < ::EacRubyUtils::Console::DocoptRunner
10
- DOC = <<~DOCOPT
11
- Utilities to deploy applications and libraries.
12
-
13
- Usage:
14
- __PROGRAM__ [options] __SUBCOMMANDS__
15
- __PROGRAM__ -h | --help
16
-
17
- Options:
18
- -h --help Show this screen.
19
- DOCOPT
20
- end
21
- end
@@ -1,41 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_launcher/instances/runner_helper'
4
-
5
- module EacLauncher
6
- class Runner < ::EacRubyUtils::Console::DocoptRunner
7
- class Instances < ::EacLauncher::Instances::RunnerHelper
8
- DOC = <<~DOCOPT
9
- Mostra informações sobre instâncias.
10
-
11
- Usage:
12
- __PROGRAM__ [options] [<instance_path>...]
13
- __PROGRAM__ -h | --help
14
-
15
- Options:
16
- -h --help Show this screen.
17
- --all Get all instances.
18
- --recache Rewrite instances cache.
19
-
20
- DOCOPT
21
-
22
- def run
23
- ::EacLauncher::Context.current.recache = options['--recache']
24
- instances.each { |i| show_instance(i) }
25
- end
26
-
27
- private
28
-
29
- def show_instance(instance)
30
- puts instance_label(instance)
31
- infov(' * Parent', (instance.parent ? instance_label(instance.parent) : '-'))
32
- infov(' * Git current revision', instance.options.git_current_revision)
33
- infov(' * Git publish remote', instance.options.git_publish_remote)
34
- end
35
-
36
- def instance_path
37
- options['<instance_path>']
38
- end
39
- end
40
- end
41
- end
@@ -1,46 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_launcher/context'
4
- require 'eac_launcher/instances/runner_helper'
5
-
6
- module EacLauncher
7
- class Runner < ::EacRubyUtils::Console::DocoptRunner
8
- class Projects < ::EacLauncher::Instances::RunnerHelper
9
- DOC = <<~DOCOPT
10
- Shows available projects.
11
-
12
- Usage:
13
- __PROGRAM__ [options]
14
- __PROGRAM__ -h | --help
15
-
16
- Options:
17
- -h --help Show this screen.
18
- -i --instances Show instances.
19
- --recache Rewrite instances cache.
20
-
21
- DOCOPT
22
-
23
- def run
24
- ::EacLauncher::Context.current.recache = options['--recache']
25
- ::EacLauncher::Context.current.projects.each do |p|
26
- show_project(p)
27
- end
28
- end
29
-
30
- private
31
-
32
- def show_project(project)
33
- puts project_label(project)
34
- return unless options['--instances']
35
-
36
- project.instances.each do |i|
37
- puts " * #{instance_label(i)}"
38
- end
39
- end
40
-
41
- def project_label(project)
42
- project.to_s.cyan.to_s
43
- end
44
- end
45
- end
46
- end