runcible 1.3.4 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/runcible/base.rb +10 -3
- data/lib/runcible/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d34f8ccc7c325a6ec254ac3ec97bfa95d007d83
|
4
|
+
data.tar.gz: 7e1803fa72e4280fa56d45e69709389a294461b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b6110ae003f5993d502919db048c5f65749c923b1deff102e07b134533b9a1d01f0a8bc338f4a447635d67f53c9768bd09016d6900939028e536a0bee5fe642
|
7
|
+
data.tar.gz: ea470e55cb67fa423e800aa663cc577939f49649df03ddff64f09d5066ae220c83a65efd861fa709b8a0f87f7f8711aa70d74b99652699544513381f22385e64
|
data/lib/runcible/base.rb
CHANGED
@@ -1,6 +1,3 @@
|
|
1
|
-
# Copyright (c) 2012 Red Hat
|
2
|
-
#
|
3
|
-
# MIT License
|
4
1
|
#
|
5
2
|
# Permission is hereby granted, free of charge, to any person obtaining
|
6
3
|
# a copy of this software and associated documentation files (the
|
@@ -82,6 +79,9 @@ module Runcible
|
|
82
79
|
response = get_response(client, path, *args)
|
83
80
|
process_response(response)
|
84
81
|
|
82
|
+
rescue RestClient::ResourceNotFound => e
|
83
|
+
log_info
|
84
|
+
raise e
|
85
85
|
rescue => e
|
86
86
|
log_exception
|
87
87
|
raise e
|
@@ -213,6 +213,13 @@ module Runcible
|
|
213
213
|
end
|
214
214
|
end
|
215
215
|
|
216
|
+
def log_info
|
217
|
+
if self.config[:logging][:info]
|
218
|
+
log_message = generate_log_message
|
219
|
+
self.config[:logging][:logger].info(log_message)
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
216
223
|
def generate_log_message
|
217
224
|
RestClient.log.join('\n')
|
218
225
|
end
|
data/lib/runcible/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runcible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric D Helms, Justin Sherrill
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
186
|
version: '0'
|
187
187
|
requirements: []
|
188
188
|
rubyforge_project:
|
189
|
-
rubygems_version: 2.
|
189
|
+
rubygems_version: 2.2.1
|
190
190
|
signing_key:
|
191
191
|
specification_version: 4
|
192
192
|
summary: ''
|