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: 3b3f8d40994d9934ce13ad3822519991575fc5ebcaac1e3fe0bf3b7ec6ac9d85
4
- data.tar.gz: 482282b3b1d5b675ecc5214138c0eb7f225878d43168e35d95838e962c6d2061
3
+ metadata.gz: 5b94d29cf1132a42f4ae3c91d445eeba5860b65b270a6b4aec8fb3b9829f4ba0
4
+ data.tar.gz: ec72d80f143a70e187585b746f34b2e1838b03a9f0cd70ce513f186fbf764997
5
5
  SHA512:
6
- metadata.gz: 25d27374a7773f73f0ae9da571987c3e3c113230a06188bf4b70a1a0d7931a925b5f7c15bb4a69dbc43f902bbfc18141014ed7adb0d1ada9307cda33c803dfdb
7
- data.tar.gz: feeaee3eb200b3359649161d53a791b9249c262edc8a96f6e503bc2f9aed0b89d815348b366c5ef391e1d2b3688a4bf4a0e047385fd8409af52e09a9a62ac19f
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
- facter_ng_gem = 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_gem)
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FacterStatistax
4
- VERSION = '0.0.8'
4
+ VERSION = '0.0.9'
5
5
  end
@@ -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-ng-4/ }
19
- facter_ng_path = File.join(facter_ng_path, facter_ng_version, 'lib', 'facter-ng.rb')
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-ng'
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.8
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/build_and_move_gem.sh
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
@@ -1,5 +0,0 @@
1
- pwd
2
- cd ../../facter-ng
3
- gem build facter-ng.gemspec
4
- mv facter-ng-*.gem ../facter-statistax/acceptance
5
- cd ../facter-statistax/acceptance