avm-tools 0.104.0 → 0.105.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avm/launcher/context/instance_collector.rb +46 -0
  3. data/lib/avm/launcher/instances/runner_helper.rb +21 -15
  4. data/lib/avm/launcher/paths/logical.rb +5 -0
  5. data/lib/avm/tools/runner/launcher/instances.rb +7 -5
  6. data/lib/avm/tools/runner/launcher/projects.rb +2 -4
  7. data/lib/avm/tools/runner/launcher/publish.rb +2 -6
  8. data/lib/avm/tools/version.rb +1 -1
  9. data/vendor/avm/lib/avm/version.rb +1 -1
  10. data/vendor/avm/spec/lib/avm/git/commit/diff_tree_line_spec.rb +0 -1
  11. data/vendor/avm/spec/rubocop_spec.rb +1 -1
  12. data/vendor/avm/spec/spec_helper.rb +2 -17
  13. data/vendor/avm-apps/lib/avm/apps/version.rb +1 -1
  14. data/vendor/avm-apps/spec/rubocop_spec.rb +1 -1
  15. data/vendor/avm-apps/spec/spec_helper.rb +2 -101
  16. data/vendor/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/version.rb +1 -1
  17. data/vendor/avm-eac_asciidoctor_base0/spec/rubocop_spec.rb +1 -1
  18. data/vendor/avm-eac_asciidoctor_base0/spec/spec_helper.rb +2 -100
  19. data/vendor/avm-eac_rails_base1/lib/avm/eac_rails_base1/version.rb +1 -1
  20. data/vendor/avm-eac_rails_base1/spec/rubocop_spec.rb +1 -1
  21. data/vendor/avm-eac_rails_base1/spec/spec_helper.rb +2 -100
  22. data/vendor/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +1 -1
  23. data/vendor/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
  24. data/vendor/avm-eac_redmine_base0/spec/rubocop_spec.rb +1 -1
  25. data/vendor/avm-eac_redmine_base0/spec/spec_helper.rb +2 -100
  26. data/vendor/avm-eac_redmine_base0/template/avm/eac_redmine_base0/deploy/config/install.sh.template +1 -0
  27. data/vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
  28. data/vendor/avm-eac_webapp_base0/spec/rubocop_spec.rb +1 -1
  29. data/vendor/avm-eac_webapp_base0/spec/spec_helper.rb +2 -100
  30. data/vendor/eac_cli/eac_cli.gemspec +3 -3
  31. data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
  32. data/vendor/eac_cli/spec/rubocop_spec.rb +1 -1
  33. data/vendor/eac_cli/spec/spec_helper.rb +2 -101
  34. data/vendor/eac_config/eac_config.gemspec +2 -2
  35. data/vendor/eac_config/lib/eac_config/version.rb +1 -1
  36. data/vendor/eac_config/spec/rubocop_spec.rb +1 -1
  37. data/vendor/eac_config/spec/spec_helper.rb +2 -15
  38. data/vendor/eac_docker/eac_docker.gemspec +2 -2
  39. data/vendor/eac_docker/lib/eac_docker/container.rb +7 -3
  40. data/vendor/eac_docker/lib/eac_docker/images/templatized.rb +4 -0
  41. data/vendor/eac_docker/lib/eac_docker/rspec/setup.rb +17 -0
  42. data/vendor/eac_docker/lib/eac_docker/rspec.rb +2 -10
  43. data/vendor/eac_docker/lib/eac_docker/version.rb +1 -1
  44. data/vendor/eac_docker/spec/rubocop_spec.rb +1 -1
  45. data/vendor/eac_docker/spec/spec_helper.rb +2 -104
  46. data/vendor/eac_git/eac_git.gemspec +3 -3
  47. data/vendor/eac_git/lib/eac_git/rspec/setup.rb +23 -0
  48. data/vendor/eac_git/lib/eac_git/rspec.rb +1 -14
  49. data/vendor/eac_git/lib/eac_git/version.rb +1 -1
  50. data/vendor/eac_git/spec/rubocop_spec.rb +1 -1
  51. data/vendor/eac_git/spec/spec_helper.rb +2 -104
  52. data/vendor/eac_ruby_base0/eac_ruby_base0.gemspec +4 -4
  53. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
  54. data/vendor/eac_ruby_base0/spec/rubocop_spec.rb +1 -1
  55. data/vendor/eac_ruby_base0/spec/spec_helper.rb +2 -101
  56. data/vendor/eac_ruby_gems_utils/eac_ruby_gems_utils.gemspec +2 -2
  57. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +1 -1
  58. data/vendor/eac_ruby_gems_utils/spec/code/rubocop_check_spec.rb +1 -1
  59. data/vendor/eac_ruby_gems_utils/spec/spec_helper.rb +2 -101
  60. data/vendor/eac_ruby_utils/eac_ruby_utils.gemspec +1 -1
  61. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/executable.rb +15 -3
  62. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/gems_registry/gem.rb +75 -0
  63. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/gems_registry.rb +35 -0
  64. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/recursive_builder.rb +51 -0
  65. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/default_setup.rb +20 -0
  66. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb +17 -0
  67. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup.rb +12 -0
  68. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup_manager.rb +49 -0
  69. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  70. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/recursive_builder_spec.rb +65 -0
  71. data/vendor/eac_ruby_utils/spec/rubocop_check_spec.rb +1 -1
  72. data/vendor/eac_ruby_utils/spec/spec_helper.rb +6 -6
  73. data/vendor/eac_templates/lib/eac_templates/version.rb +1 -1
  74. data/vendor/eac_templates/spec/rubocop_spec.rb +1 -1
  75. data/vendor/eac_templates/spec/spec_helper.rb +2 -100
  76. metadata +13 -5
  77. data/lib/avm/eac_asciidoctor_base0.rb +0 -9
  78. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/conditional.rb +0 -35
  79. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/stubbed_ssh.rb +0 -44
@@ -1,44 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'active_support/core_ext/object/blank'
4
- require 'eac_ruby_utils/envs/ssh_env'
5
- require 'eac_ruby_utils/patches/object/if_present'
6
-
7
- module EacRubyUtils
8
- module Rspec
9
- class StubbedSsh
10
- DEFAULT_ENVVAR_NAME = 'STUBBED_SSH_URL'
11
-
12
- class << self
13
- def default
14
- @default ||= new(DEFAULT_ENVVAR_NAME)
15
- end
16
- end
17
-
18
- attr_reader :envvar_name
19
-
20
- def initialize(envvar_name)
21
- @envvar_name = envvar_name
22
- end
23
-
24
- def validate
25
- return nil if provided_url.present?
26
-
27
- "Environment variable \"#{envvar_name}\" unprovided or blank"
28
- end
29
-
30
- def validate!
31
- validate.if_present { |v| raise v }
32
- end
33
-
34
- def provided_url
35
- ENV[envvar_name]
36
- end
37
-
38
- def build_env
39
- validate!
40
- ::EacRubyUtils::Envs::SshEnv.new(provided_url)
41
- end
42
- end
43
- end
44
- end