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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7bc8b832480542b3e326f4f99389ea4d2b9968d
4
- data.tar.gz: 37bad144b7ffbef453ad397ea39ed7ca89c1e43a
3
+ metadata.gz: affb39b6179370aca7882f238776af89b6cf68a1
4
+ data.tar.gz: fc2934b022aa1b85eca47f990cff92603e20b7ce
5
5
  SHA512:
6
- metadata.gz: afef987a44e33cc8c83134de30694a0a3591f64984aac19906cbe35e27f090635c67af8202271af9b1f3ccfeafce07630690de3678eeafda008ec20e5336347e
7
- data.tar.gz: fea2ba928eb78d00e736e35b53bd2f1106223aa612a4371bfe36bcb9e9d1b5731bfe05c5bc27aafc3d38769e9a2da79c27c01cb59d38091edb850219630f3127
6
+ metadata.gz: c9648119b75a4d9e66b765bfbcd798ffa4b080348f2c0dfc3f377b3e53805d92985a4417c69bd36d79ff081ac3e5243ef6232f9fab2a32e1115c08ef07fc0b2b
7
+ data.tar.gz: 44dbe7522d1389d559e750d76ac29f55055a369d63f67434b553ba83291afb7603befa198f7a9055b0ae9e955fab460b2531e84c00787ccebb6afeed458c1707
@@ -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::FileFread.read('/etc/release'))
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
@@ -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("which #{executable}")
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
 
@@ -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
- # A util module for facter containing helper methods
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
 
@@ -1,3 +1,3 @@
1
1
  module RFacter
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
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.0
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-26 00:00:00.000000000 Z
12
+ date: 2017-05-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: train