cfacter 3.11.0.rc.20180314-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: dccc5a1f9d9a205e6a39cd07bc36e8ea6e98a6f1
4
+ data.tar.gz: 905e97cff4452a4cc5f09ae1d55a7ef14e384443
5
+ SHA512:
6
+ metadata.gz: a58f6cd0ff28cf9897f5e4664253255d18071b03575dae8e74ddd0163343b8fa37be827d0a3e48792af28de825c922a72f7b335489fc406828dfa752096f317d
7
+ data.tar.gz: c2d1c766c7c18f2822d2646a36f5fd6ee258524c2255e34336e8270cadf1476ebde7b6ee85430e1ccb24e7a3e97b1d645826fa51a82b9bb63840d22809186c48
@@ -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 %*
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
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"
@@ -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: x86-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: []