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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e565c96dd7f26d49788503f35f5dc895baa532d1dbae03723d8fb42fad74e013
4
- data.tar.gz: 7166e8a78f7091a0b6a3e3dbfa43359224828a0c94430b93d7e7fe7baa6b3619
3
+ metadata.gz: 2b81310d8a36d3cb1cf6f6c52d106cc956efda2aa46a88e82f62faa4d350abf6
4
+ data.tar.gz: c7bb64bff1ba36ba7bdbc3c9ebdc759a452242787d5b77876f8b5bc5aa5fb853
5
5
  SHA512:
6
- metadata.gz: aa26f07e720624c75d4e7f69de79cc643ffb58f3de56a9c02be818b3152b56caf4798f688f84be8cc223c728c397da46fd7d23a11258bc311cfcabed4fb3827f
7
- data.tar.gz: 8efe981de9ecd6844f2323c171109894d6114284a09587b1f9e6d6d79769d8b434388345fa2068efb3543f681771d96a729420c315096def4c82e7214092114e
6
+ metadata.gz: c529bc70a326723e8ca8ab18eda6207e06a9b272ba75e06cdb01746c451009d991fedc77647d17dfa787016a5a9bf8cde1d77f45080ac4a7b707bc477a7cf3e0
7
+ data.tar.gz: aa5e7808630a375aa4dffeda5ca67c4c1866f8cf3577db35be27d22b50f3d7854b78499c9f35256c6079916ff49fc0c81a9a565d60b160d3bb8d9c586b6b9171
@@ -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
- 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
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: 1, retries: 30, backoff: false, success_codes: 200..299, tries: 1)
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"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Enviroblyd
4
- VERSION = "0.2.1"
4
+ VERSION = "0.3"
5
5
  end
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.2.1
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-02 00:00:00.000000000 Z
11
+ date: 2024-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor