upman-daemon 0.0.8.2 → 0.0.8.3

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: 70896bf0b492b51778903072b680b0859866a07ecb11f3c5f08e95f56b36a938
4
- data.tar.gz: 2b7d02093f844606b0010fcb49b3fda99ff13e05c1feb4f35e7f1bcda49b2f57
3
+ metadata.gz: 2321dce76427999e421044bbc162735fffdbd06f324b52589db46dd4fe910dd1
4
+ data.tar.gz: 7b5e754f6a175284dcca89f788e905558f599a3fcf6f0c4dde87a4c6c15626a4
5
5
  SHA512:
6
- metadata.gz: cf227befbd1ca524c9698f574cf9ae4fc0f83b172e7905ace320cb61f9a9a05fac32f87cadcdf397e71bd7129f6080f0fb4057fed520d637c698eb606a7e622c
7
- data.tar.gz: b87d75fef10d68e7f8865494177acb934a13c62022f3beb76828769a84a5f2a8b3ca1ebccc2fa350952b7bc568c59868be7effa0c870bedb8db3b82f7c0fe70a
6
+ metadata.gz: 238394e20b6bc3d5868e7eaa9f13de23af3bfe2c288a22ababa57a89851c4d282385c00a360c1a8b96cc636f25c6cade1705fa76f32798925319eeefa6e2b4fe
7
+ data.tar.gz: 98a1ebb47ed2513f42234997567e792b0d32c8696251b1872b0c4eca637a177068c77cda002af5cffa06411bacdf61a1399103495accfafb047dea43f551d1a2
@@ -21,10 +21,10 @@ module Upman
21
21
  true
22
22
  end
23
23
 
24
-
25
24
  def post(api_endoint, data)
26
25
  begin
27
- RestClient::Request.execute method: :post,
26
+ info "Send POST request to #{_url}#{api_endoint}"
27
+ vu RestClient::Request.execute method: :post,
28
28
  url: _url + api_endoint,
29
29
  payload: data,
30
30
  headers: {:accept => :json, content_type: :json},
@@ -44,6 +44,7 @@ module Upman
44
44
 
45
45
  def get(api_endoint)
46
46
  begin
47
+ info "Send GET request to #{_url}#{api_endoint}"
47
48
  RestClient::Request.execute method: :get, url: _url + api_endoint, content_type: :json, accept: :json, user: Upman::Core::Config.foreman_api[:username], password: Upman::Core::Config.foreman_api[:password]
48
49
  rescue RestClient::Unauthorized
49
50
  fail "API Endpoint could not validate your credentials. Please check username or password"
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Upman
2
2
  class Version
3
- VERSION = '0.0.8.2'
3
+ VERSION = '0.0.8.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upman-daemon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8.2
4
+ version: 0.0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Ehrig