avm-eac_webapp_base0 0.21.5 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b3f371680e9ce0878d65e889475060dbe4632ded53239e03131204c4e9db611
4
- data.tar.gz: 3dce88ade2e075226a088803e45a98279a5fc3d5908fa97d99bb2c7ca5f26d90
3
+ metadata.gz: a72d97d8631a35e577347dbbe31e0e371d383654236f4519c92687f3b34fe31a
4
+ data.tar.gz: e29f5dffd9cc75dca6844e2ef99527bdd17a5a25e02767c6433e73c822457679
5
5
  SHA512:
6
- metadata.gz: 5829d348e90206a902fcfd6747fdc73888fcbbf0a823a9be805cc8b5c4a27c48ea1d94477d5c2ced54af5d0dfbb2cb0ce93aa643ff5570616c70fcd811d5da7a
7
- data.tar.gz: c446f0908b074e4c47cd654c4a7c5766d3515a096d0031a043c8ebf16ab1e6786f2af39b0ee9b568f951ae5059129613daf9cdd1ed363717c6e85edb94b1897c
6
+ metadata.gz: 1aab5cf07947fcdda733871ec91d7f6339ccedfe6701f37ac210eb4cbef4d6fd5bae3e88ede6c92ac2af919702afaf47f7dd3146ce1daebefe3c885be9daed85
7
+ data.tar.gz: aa58ac03445047c72a917d3808eb8ff0ca2edba37c46ca4820fe268aa8d1813d808f97fb39108b3bb24f4ddc0ed2db1d4072625cc359a3c6affd7cc3083a3893
@@ -9,11 +9,7 @@ module Avm
9
9
 
10
10
  # @param options [Class<Avm::EacWebappBase0::Instances::Deploy>]
11
11
  def deploy_class
12
- application.stereotype.namespace_module.then do |s|
13
- s.const_get('Instances').const_get('Deploy')
14
- rescue ::NameError
15
- s.const_get('Deploy')
16
- end
12
+ application.stereotype.namespace_module.const_get('Instances').const_get('Deploy')
17
13
  end
18
14
 
19
15
  # @param options [Hash]
@@ -6,12 +6,17 @@ module Avm
6
6
  class Base < ::Avm::Instances::Base
7
7
  module Install
8
8
  common_concern do
9
- uri_components_entries_values 'install', %w[apache_resource_name]
9
+ uri_components_entries_values 'install', %w[apache_resource_name request_test_timeout]
10
10
  end
11
11
 
12
12
  def install_apache_resource_name_default_value
13
13
  id
14
14
  end
15
+
16
+ # @return [Integer]
17
+ def install_request_test_timeout_default_value
18
+ ::EacEnvs::Http::Request::FaradayConnection::DEFAULT_TIMEOUT.to_seconds
19
+ end
15
20
  end
16
21
  end
17
22
  end
@@ -53,10 +53,8 @@ module Avm
53
53
 
54
54
  def request_test
55
55
  infom 'Requesting web interface...'
56
- uri = URI(instance.read_entry('web.url'))
57
- response = ::Net::HTTP.get_response(uri)
58
- infov 'Response status', response.code
59
- fatal_error "Request to #{uri} failed" unless response.code.to_i == 200
56
+ ::EacEnvs::Http::Request.new.url(instance.read_entry('web.url'))
57
+ .timeout(instance.install_request_test_timeout).response.raise_unless_200
60
58
  end
61
59
 
62
60
  protected
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacWebappBase0
5
- VERSION = '0.21.5'
5
+ VERSION = '0.22.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm-eac_webapp_base0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.5
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-10 00:00:00.000000000 Z
11
+ date: 2026-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm