ruby-puppetdb 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Modulefile +1 -1
- data/Rakefile +1 -0
- data/lib/puppet/parser/functions/query_facts.rb +3 -1
- data/lib/puppet/parser/functions/query_nodes.rb +3 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 392d7e62e4de4fab8893322d3b1566af2115decc
|
4
|
+
data.tar.gz: b7352a764dac57a95abaabbe444fa87d7fd7dae6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7c7160494a09d173209981e627c09c615d33d472033fdbe0b1034ef6734aff3deaff8471c58a99b75310746faf3177ebda3874f7d7193b507752b7d9ddcae77
|
7
|
+
data.tar.gz: 6139c779e2ba9057e00cccce7de0adecd5c7568b5fa8283450d1f5b95a8056f3c81a1c47b8e812e702e1289134d5cae0fcc19a8eed3a3c6627510cad4a13d514
|
data/Modulefile
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
name 'dalen-puppetdbquery'
|
2
|
-
version %x{git describe --tags}.
|
2
|
+
version %x{git describe --tags}.sub('-','+').chomp
|
3
3
|
author 'Erik Dalen <erik.gustav.dalen@gmail.com>'
|
4
4
|
license 'Apache License V2'
|
5
5
|
summary 'Query functions for the PuppetDB API'
|
data/Rakefile
CHANGED
@@ -17,7 +17,9 @@ EOT
|
|
17
17
|
query, facts = args
|
18
18
|
|
19
19
|
require 'puppet/util/puppetdb'
|
20
|
-
|
20
|
+
# This is also needed if the puppetdb library isn't pluginsynced to the master
|
21
|
+
$LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..'))
|
22
|
+
require 'puppetdb/connection'
|
21
23
|
|
22
24
|
puppetdb = PuppetDB::Connection.new(Puppet::Util::Puppetdb.server, Puppet::Util::Puppetdb.port)
|
23
25
|
query = puppetdb.parse_query query, :facts if query.is_a? String
|
@@ -14,7 +14,9 @@ EOT
|
|
14
14
|
query, fact = args
|
15
15
|
|
16
16
|
require 'puppet/util/puppetdb'
|
17
|
-
|
17
|
+
# This is also needed if the puppetdb library isn't pluginsynced to the master
|
18
|
+
$LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..'))
|
19
|
+
require 'puppetdb/connection'
|
18
20
|
|
19
21
|
puppetdb = PuppetDB::Connection.new(Puppet::Util::Puppetdb.server, Puppet::Util::Puppetdb.port)
|
20
22
|
if fact then
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-puppetdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Bode
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -184,3 +184,4 @@ test_files:
|
|
184
184
|
- spec/unit/puppet/parser/functions/pdbstatusquery_spec.rb
|
185
185
|
- spec/unit/puppet/parser/functions/query_facts_spec.rb
|
186
186
|
- spec/unit/puppet/parser/functions/query_nodes_spec.rb
|
187
|
+
has_rdoc:
|