runpuppet 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/runpuppet.rb +6 -1
- data/runpuppet.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.3
|
data/lib/runpuppet.rb
CHANGED
@@ -33,7 +33,12 @@ class Runpuppet
|
|
33
33
|
def self.get(path)
|
34
34
|
path += (path.include?('?') ? '&' : '?')
|
35
35
|
path += "hostname=#{Socket.gethostname}&ip=#{Config.local_ip}"
|
36
|
-
|
36
|
+
begin
|
37
|
+
open(Config.puppet_controller_url + path, {:http_basic_authentication =>Config.puppet_controller_auth} )
|
38
|
+
rescue Exception => e
|
39
|
+
puts e.inspect
|
40
|
+
puts "WARNING: no connection to puppet controller!"
|
41
|
+
end
|
37
42
|
end
|
38
43
|
|
39
44
|
|
data/runpuppet.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runpuppet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 3
|
10
|
+
version: 0.5.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Roman Heinrich
|