runpuppet 0.5.1 → 0.5.2
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 +2 -1
- data/runpuppet.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.2
|
data/lib/runpuppet.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'open-uri'
|
2
2
|
require 'socket'
|
3
|
+
require 'yaml'
|
3
4
|
|
4
5
|
class Runpuppet
|
5
6
|
def self.with_lock(lock_file)
|
@@ -29,7 +30,7 @@ class Runpuppet
|
|
29
30
|
end
|
30
31
|
|
31
32
|
|
32
|
-
def get(path)
|
33
|
+
def self.get(path)
|
33
34
|
path += (path.include?('?') ? '&' : '?')
|
34
35
|
path += "hostname=#{Socket.gethostname}&ip=#{Config.local_ip}"
|
35
36
|
open(Config.puppet_controller_url + path, Config.puppet_controller_auth) rescue puts "WARNING: no connection to puppet controller!"
|
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: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 2
|
10
|
+
version: 0.5.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Roman Heinrich
|