enviroblyd 0.2.1 → 0.3
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 +10 -10
- data/lib/enviroblyd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b81310d8a36d3cb1cf6f6c52d106cc956efda2aa46a88e82f62faa4d350abf6
|
4
|
+
data.tar.gz: c7bb64bff1ba36ba7bdbc3c9ebdc759a452242787d5b77876f8b5bc5aa5fb853
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c529bc70a326723e8ca8ab18eda6207e06a9b272ba75e06cdb01746c451009d991fedc77647d17dfa787016a5a9bf8cde1d77f45080ac4a7b707bc477a7cf3e0
|
7
|
+
data.tar.gz: aa5e7808630a375aa4dffeda5ca67c4c1866f8cf3577db35be27d22b50f3d7854b78499c9f35256c6079916ff49fc0c81a9a565d60b160d3bb8d9c586b6b9171
|
data/lib/enviroblyd/cli/main.rb
CHANGED
@@ -23,22 +23,22 @@ class Enviroblyd::Cli::Main < Enviroblyd::Base
|
|
23
23
|
body.chomp("")
|
24
24
|
puts "instance_id: #{instance_id} ."
|
25
25
|
|
26
|
-
process_user_data
|
27
|
-
unless @exit_code.nil?
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
end
|
26
|
+
# process_user_data
|
27
|
+
# unless @exit_code.nil?
|
28
|
+
# puts @stdout
|
29
|
+
# $stderr.puts @stderr
|
30
|
+
# unless @exit_code == 0
|
31
|
+
# $stderr.puts "User data script exited with code: #{@exit_code}. Aborting."
|
32
|
+
# exit 1
|
33
|
+
# end
|
34
|
+
# end
|
35
35
|
|
36
36
|
response = http("https://#{API_HOST}/api/v1/boots/#{instance_id}", retry_interval: 3, retries: 5, backoff: :exponential)
|
37
37
|
puts "/api/v1/boots response code: #{response.code}"
|
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"
|
data/lib/enviroblyd/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enviroblyd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Starsi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|