enviroblyd 0.2 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/enviroblyd/cli/main.rb +2 -2
- data/lib/enviroblyd/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8220085dcf938ad62385573bc35fdecd43fc1be67c8c8290809e0e324ffa6b60
|
4
|
+
data.tar.gz: b34fa0008ebbd596a608e71fd4899f6ed6265441acd4539d8191e632324f57e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83c2d244fb58a3f8bc8c94d9325b9fff0f220bcba0df5acadbae99999e0237403a6646a67623fb27eb6891efff98479ba043b8ae23a832673faca852783bea6e
|
7
|
+
data.tar.gz: b0bf6a4b127e324f10ff63556ff8b5922355371305d5c19625b17023b4589a07883fef93bb7fcddc49fd48f539923f3b6d06e2e66795852d0af8466321fccff3
|
data/lib/enviroblyd/cli/main.rb
CHANGED
@@ -38,7 +38,7 @@ class Enviroblyd::Cli::Main < Enviroblyd::Base
|
|
38
38
|
end
|
39
39
|
|
40
40
|
private
|
41
|
-
def http(url, type: Net::HTTP::Get, headers: {}, retry_interval:
|
41
|
+
def http(url, type: Net::HTTP::Get, headers: {}, retry_interval: 2, retries: 30, backoff: false, success_codes: 200..299, tries: 1)
|
42
42
|
uri = URI(url)
|
43
43
|
http = Net::HTTP.new uri.host, uri.port
|
44
44
|
http.use_ssl = true if uri.scheme == "https"
|
@@ -53,7 +53,7 @@ class Enviroblyd::Cli::Main < Enviroblyd::Base
|
|
53
53
|
response =
|
54
54
|
begin
|
55
55
|
http.request(request)
|
56
|
-
rescue
|
56
|
+
rescue
|
57
57
|
nil
|
58
58
|
end
|
59
59
|
|
data/lib/enviroblyd/version.rb
CHANGED