facter-statistax 0.0.8 → 0.0.9
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b94d29cf1132a42f4ae3c91d445eeba5860b65b270a6b4aec8fb3b9829f4ba0
|
4
|
+
data.tar.gz: ec72d80f143a70e187585b746f34b2e1838b03a9f0cd70ce513f186fbf764997
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b34c28e5b4735a7bcfcb38a83497a851a02d0df1747579a1c00c4a1788b427a90e8ec4a97a00e88e0a62796c37170fcd23a16e03e4d46bcc41d5b5473870a7e
|
7
|
+
data.tar.gz: 8a2a73a57347090ccd60a9838a0853ac38811364c26117007276e270cb14ad510592c862f4096d29c60644fceb9743216d70228abb23253bf4cb2175f534c473
|
@@ -0,0 +1 @@
|
|
1
|
+
gem build ../../facter-ng/facter-ng.gemspec
|
@@ -3,8 +3,8 @@
|
|
3
3
|
test_name 'Install facter gem' do
|
4
4
|
agents.each do |agent|
|
5
5
|
current_dir = Pathname.new(File.expand_path('..', __dir__))
|
6
|
-
|
7
|
-
facter_gem = File.join(current_dir,
|
6
|
+
facter_ng_path = Dir.entries(current_dir).select { |file| file =~ /facter-ng-[0-9]+.[0-9]+.[0-9]+.gem/ }
|
7
|
+
facter_gem = File.join(current_dir, facter_ng_path)
|
8
8
|
home_dir = on(agent, 'pwd').stdout.chop
|
9
9
|
|
10
10
|
scp_to agent, facter_gem, home_dir
|
@@ -5,6 +5,7 @@ test_name 'Run facter statistax' do
|
|
5
5
|
agents.each do |agent|
|
6
6
|
is_gem = 'false'
|
7
7
|
home_dir = on(agent, 'pwd').stdout.chop
|
8
|
+
host_dir = File.join(Pathname.new(File.expand_path('..', __dir__)), "log_dir/#{agent['platform']}")
|
8
9
|
|
9
10
|
step 'Run facter statistax for Cfacter' do
|
10
11
|
content = ::File.read(File.join(Pathname.new(File.expand_path('..', __dir__)), 'config.json'))
|
@@ -19,8 +20,6 @@ test_name 'Run facter statistax' do
|
|
19
20
|
end
|
20
21
|
|
21
22
|
step 'Save output' do
|
22
|
-
host_dir = File.join(Pathname.new(File.expand_path('..', __dir__)), "log_dir/#{agent['platform']}")
|
23
|
-
|
24
23
|
out_dir = File.join(host_dir, 'cpp')
|
25
24
|
|
26
25
|
FileUtils.mkdir_p(out_dir)
|
@@ -41,8 +40,6 @@ test_name 'Run facter statistax' do
|
|
41
40
|
end
|
42
41
|
|
43
42
|
step 'Save output' do
|
44
|
-
host_dir = File.join(Pathname.new(File.expand_path('..', __dir__)), "log_dir/#{agent['platform']}")
|
45
|
-
|
46
43
|
out_dir = File.join(host_dir, 'cpp')
|
47
44
|
|
48
45
|
FileUtils.mkdir_p(out_dir)
|
data/lib/version.rb
CHANGED
data/scripts/benchmark_script.rb
CHANGED
@@ -15,11 +15,11 @@ elsif Gem.win_platform?
|
|
15
15
|
gems_path = 'C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/gems'
|
16
16
|
ruby_version = Dir.entries(gems_path).select { |file| file =~ /[0-9]+.[0-9]+.[0-9]+/ }
|
17
17
|
facter_ng_path = File.join(gems_path, ruby_version, 'gems')
|
18
|
-
facter_ng_version = Dir.entries(facter_ng_path).select { |file| file =~ /facter-
|
19
|
-
facter_ng_path = File.join(facter_ng_path, facter_ng_version, 'lib', 'facter
|
18
|
+
facter_ng_version = Dir.entries(facter_ng_path).select { |file| file =~ /facter-4/ }
|
19
|
+
facter_ng_path = File.join(facter_ng_path, facter_ng_version, 'lib', 'facter.rb')
|
20
20
|
require facter_ng_path
|
21
21
|
else
|
22
|
-
require 'facter
|
22
|
+
require 'facter'
|
23
23
|
end
|
24
24
|
|
25
25
|
time = Benchmark.realtime do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facter-statistax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
@@ -84,7 +84,7 @@ files:
|
|
84
84
|
- acceptance/.beaker.yml
|
85
85
|
- acceptance/Gemfile
|
86
86
|
- acceptance/README.md
|
87
|
-
- acceptance/
|
87
|
+
- acceptance/build_facter_ng_gem.sh
|
88
88
|
- acceptance/config.json
|
89
89
|
- acceptance/config/aio/options.rb
|
90
90
|
- acceptance/lib/helper.rb
|