rfacter 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rfacter/facts/os.rb +1 -1
- data/lib/rfacter/node.rb +1 -1
- data/lib/rfacter/util/normalization.rb +4 -4
- data/lib/rfacter/util/values.rb +4 -5
- data/lib/rfacter/version.rb +1 -1
- 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: affb39b6179370aca7882f238776af89b6cf68a1
|
4
|
+
data.tar.gz: fc2934b022aa1b85eca47f990cff92603e20b7ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9648119b75a4d9e66b765bfbcd798ffa4b080348f2c0dfc3f377b3e53805d92985a4417c69bd36d79ff081ac3e5243ef6232f9fab2a32e1115c08ef07fc0b2b
|
7
|
+
data.tar.gz: 44dbe7522d1389d559e750d76ac29f55055a369d63f67434b553ba83291afb7603befa198f7a9055b0ae9e955fab460b2531e84c00787ccebb6afeed458c1707
|
data/lib/rfacter/facts/os.rb
CHANGED
@@ -586,7 +586,7 @@ Facter.add(:os, :type => :aggregate) do
|
|
586
586
|
end
|
587
587
|
|
588
588
|
chunk(:release, require: [:name]) do |osname|
|
589
|
-
full = if (release = Facter::Util::
|
589
|
+
full = if (release = Facter::Util::FileRead.read('/etc/release'))
|
590
590
|
line = release.split("\n").first
|
591
591
|
|
592
592
|
# Solaris 10: Solaris 10 10/09 s10x_u8wos_08a X86
|
data/lib/rfacter/node.rb
CHANGED
@@ -135,7 +135,7 @@ class RFacter::Node
|
|
135
135
|
result = if connection.os.windows?
|
136
136
|
connection.run_command("(Get-Command -TotalCount 1 #{executable}).Path")
|
137
137
|
else
|
138
|
-
connection.run_command("
|
138
|
+
connection.run_command("command -v #{executable}")
|
139
139
|
end
|
140
140
|
|
141
141
|
if (result.exit_status != 0) || (result.stdout.chomp.empty?)
|
@@ -1,11 +1,11 @@
|
|
1
1
|
require 'rfacter'
|
2
2
|
|
3
|
-
# Routines for normalizing fact return values
|
4
|
-
#
|
5
|
-
# @api private
|
6
|
-
# @since 0.1.0
|
7
3
|
module RFacter
|
8
4
|
module Util
|
5
|
+
# Routines for normalizing fact return values
|
6
|
+
#
|
7
|
+
# @api private
|
8
|
+
# @since 0.1.0
|
9
9
|
module Normalization
|
10
10
|
class NormalizationError < StandardError; end
|
11
11
|
|
data/lib/rfacter/util/values.rb
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
require 'rfacter'
|
2
2
|
|
3
|
-
# Helper methods for coercing items to JSON datatypes
|
4
|
-
#
|
5
|
-
# @api private
|
6
|
-
# @since 0.1.0
|
7
3
|
module RFacter
|
8
4
|
module Util
|
9
|
-
#
|
5
|
+
# Helper methods for coercing items to JSON datatypes
|
6
|
+
#
|
7
|
+
# @api private
|
8
|
+
# @since 0.1.0
|
10
9
|
module Values
|
11
10
|
module_function
|
12
11
|
|
data/lib/rfacter/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rfacter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie Sharpsteen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-05-
|
12
|
+
date: 2017-05-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: train
|