puppetclassify 0.1.6 → 0.1.7
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 +4 -4
- data/lib/puppet_https.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5250c1eb3c32ccb86d0ef618bca29d3329a97b35
|
|
4
|
+
data.tar.gz: d4e0d119a544c5e35e560b1477a2269c91961bfa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10517340d864c6c2dacb7932ec44d0cca9b8223564c304d69caa43c57b569a399ea85a191354072226731b2d8ec932b22fb1b0ae35ec44af01979bea3d9d6b11
|
|
7
|
+
data.tar.gz: d9c944525c38d9fd507dc39cb8745780c9808c4d033d4cfc68327f46ca82b66ac66c5f9b8e191e49a232a2f9c90bc7850308b6fb4031d73c2b22f67d542cc7ec
|
data/lib/puppet_https.rb
CHANGED
|
@@ -15,7 +15,7 @@ class PuppetHttps
|
|
|
15
15
|
#
|
|
16
16
|
# token auth takes precedence over cert auth (in the case that both methods are provided)
|
|
17
17
|
|
|
18
|
-
default_token_path = File.join(ENV['HOME'], '.puppetlabs', 'token')
|
|
18
|
+
default_token_path = ENV['HOME'].nil? ? nil : File.join(ENV['HOME'], '.puppetlabs', 'token')
|
|
19
19
|
|
|
20
20
|
ca_cert_path = settings['ca_certificate_path']
|
|
21
21
|
cert_path = settings['certificate_path']
|
|
@@ -29,7 +29,7 @@ class PuppetHttps
|
|
|
29
29
|
'token'
|
|
30
30
|
when (cert_path and pkey_path)
|
|
31
31
|
'cert'
|
|
32
|
-
when File.exists?(default_token_path)
|
|
32
|
+
when default_token_path && File.exists?(default_token_path)
|
|
33
33
|
'token'
|
|
34
34
|
else
|
|
35
35
|
nil
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: puppetclassify
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Puppet Labs
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-05-
|
|
11
|
+
date: 2017-05-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: A ruby library to interface with the classifier service
|
|
14
14
|
email: info@puppet.com
|