cfacter 3.11.0.rc.20180314-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 218cc09072785f31e12970df7356a47d2c6d94dc
4
+ data.tar.gz: 5a21df9ffbef799bd82e236ce91c6514b719c846
5
+ SHA512:
6
+ metadata.gz: 9624cb17d01e4d850af5acc4ce5195998fd822fbb5a9b55a2de463a8bc6448dddd2ad51372535ab6d3abcaa5a5627f0b75116bffaa09690126273a79491697d6
7
+ data.tar.gz: 8b5d37d88f2a70d21490d55a4c97bd0a9de958cd5347ebc156cd47227b4db17da313d8cb5f7371acd93696137a6cbbbff9b2dd3f41e66a370d3910fec4903599
data/bin/facter.bat ADDED
@@ -0,0 +1,8 @@
1
+ @echo off
2
+ SETLOCAL
3
+ if exist "%~dp0environment.bat" (
4
+ call "%~dp0environment.bat" %0 %*
5
+ ) else (
6
+ SET "PATH=%~dp0;%PATH%"
7
+ )
8
+ facter.exe %*
data/bin/facter.exe ADDED
Binary file
@@ -0,0 +1,6 @@
1
+ @echo off
2
+ SETLOCAL
3
+ echo Running Facter on demand ...
4
+ cd "%~dp0"
5
+ call .\facter.bat %*
6
+ PAUSE
data/bin/libfacter.so ADDED
Binary file
@@ -0,0 +1,9 @@
1
+ @echo Running facter on demand ...
2
+ @echo off
3
+ SETLOCAL
4
+ if exist "%~dp0environment.bat" (
5
+ call "%~dp0environment.bat" %0 %*
6
+ ) else (
7
+ SET "PATH=%~dp0;%PATH%"
8
+ )
9
+ elevate.exe "%~dp0facter_interactive.bat"
data/lib/facter.rb ADDED
@@ -0,0 +1,45 @@
1
+ module Facter
2
+ if RUBY_PLATFORM == "java"
3
+ # For JRuby, require 'facter.jar'
4
+ begin
5
+ require 'facter.jar'
6
+ rescue LoadError
7
+ raise LoadError.new('libfacter was not built with JRuby support.')
8
+ end
9
+
10
+ # Pass value call through to JNI interface
11
+ def self.value(name)
12
+ Java::ComPuppetlabs::Facter.lookup(name)
13
+ end
14
+
15
+ def self.search(*paths)
16
+ # No-op; we don't support custom facts under JRuby
17
+ end
18
+
19
+ def self.version
20
+ Java::ComPuppetlabs::Facter.lookup("facterversion")
21
+ end
22
+
23
+ def self.add(*params)
24
+ raise 'adding facts under JRuby is not implemented.'
25
+ end
26
+
27
+ else
28
+ # Simply require libfacter.so; this will define all of the Facter API
29
+ begin
30
+ facter_dir = ENV['FACTERDIR'] || File.join(File.expand_path("#{File.dirname(__FILE__)}"), '../')
31
+ #
32
+ # This is a cmake pre-processor check. On *nix it will end up '' == '1'
33
+ # On windows, where we want the changes it will be '1' == '1'
34
+ #
35
+ # Facter requires the extra inclusion of puppet/bin as the libfacter.so
36
+ # lib requires libraries and executables from that directory
37
+ if '1' == '1'
38
+ ENV['PATH'] = "#{File.join(facter_dir, 'bin')}#{File::PATH_SEPARATOR}#{File.join(facter_dir, '../puppet/bin')}#{File::PATH_SEPARATOR}#{ENV['PATH']}"
39
+ end
40
+ require "#{facter_dir}/bin/libfacter.so"
41
+ rescue LoadError
42
+ raise LoadError, "libfacter was not found. Please make sure it was installed to the expected location.\n" + ($!.message || ''), $!.backtrace
43
+ end
44
+ end
45
+ end
Binary file
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cfacter
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.11.0.rc.20180314
5
+ platform: x64-mingw32
6
+ authors:
7
+ - Puppet
8
+ - Inc.
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2018-03-14 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description:
15
+ email: info@puppet.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - bin/facter.bat
21
+ - bin/facter.exe
22
+ - bin/facter_interactive.bat
23
+ - bin/libfacter.so
24
+ - bin/run_facter_interactive.bat
25
+ - lib/facter.rb
26
+ - lib/libfacter.so.a
27
+ homepage:
28
+ licenses:
29
+ - Apache-2.0
30
+ metadata: {}
31
+ post_install_message:
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ required_rubygems_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">"
43
+ - !ruby/object:Gem::Version
44
+ version: 1.3.1
45
+ requirements: []
46
+ rubyforge_project:
47
+ rubygems_version: 2.4.5.1
48
+ signing_key:
49
+ specification_version: 4
50
+ summary: Facter gem wrapper
51
+ test_files: []