facter-statistax 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/executors/test_run_executor.rb +1 -1
- data/lib/version.rb +3 -1
- data/scripts/benchmark_script.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcc0b315393b6dbdb88eed44a5a229093c35247fe24923e2cc933b895190427c
|
4
|
+
data.tar.gz: 59b79b77581ba3a3381db50661445111ccf8d9899067fd6c777e158e07f5fb21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27995fbf64a16d83b224846f6c4066bf41c45c9b362649ed3a78fff18c2a6ab7a013a67db4e9f54ab3286d3b8a0a96fa50a09a28a9bd78f95a416a920ff36379
|
7
|
+
data.tar.gz: d4348406db8f0c878ef52f3b2931d38de4a33cbee26de17e693fac1dec863fcf50c60c19450ce6f158cac418da18205264ce3b5998879496bd57838752f5b591
|
@@ -12,7 +12,7 @@ module FacterStatistax
|
|
12
12
|
|
13
13
|
def execute
|
14
14
|
sum = sum_for_each_repetition do
|
15
|
-
time, _status = Open3.capture2("ruby #{SCRIPTS_DIR}/benchmark_script.rb #{IS_GEM} #{fact}")
|
15
|
+
time, _status = Open3.capture2("ruby \"#{SCRIPTS_DIR}/benchmark_script.rb\" #{IS_GEM} #{fact}")
|
16
16
|
log_time(fact, time)
|
17
17
|
time.to_f
|
18
18
|
end
|
data/lib/version.rb
CHANGED
data/scripts/benchmark_script.rb
CHANGED
@@ -5,9 +5,9 @@ require 'open3'
|
|
5
5
|
|
6
6
|
if ARGV[0].to_s == 'false'
|
7
7
|
if Gem.win_platform?
|
8
|
-
facter_dir = "C:/Program Files/Puppet Labs/Puppet/puppet/
|
9
|
-
ENV['PATH'] = "#{
|
10
|
-
require "#{facter_dir}/
|
8
|
+
facter_dir = "C:/Program Files/Puppet Labs/Puppet/puppet/bin"
|
9
|
+
ENV['PATH'] = "#{facter_dir}#{File::PATH_SEPARATOR}#{File::PATH_SEPARATOR}#{ENV['PATH']}"
|
10
|
+
require "#{facter_dir}/libfacter.so"
|
11
11
|
else
|
12
12
|
require "/opt/puppetlabs/puppet/lib/libfacter.so"
|
13
13
|
end
|