ohai 6.24.2 → 7.0.0.rc.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ohai.rb +1 -1
- data/lib/ohai/application.rb +5 -12
- data/lib/ohai/common/dmi.rb +126 -0
- data/lib/ohai/config.rb +9 -9
- data/lib/ohai/{plugins/darwin/hostname.rb → dsl.rb} +7 -7
- data/lib/ohai/dsl/plugin.rb +186 -0
- data/lib/ohai/dsl/plugin/versionvi.rb +62 -0
- data/lib/ohai/dsl/plugin/versionvii.rb +106 -0
- data/lib/ohai/exception.rb +11 -2
- data/lib/ohai/hints.rb +48 -0
- data/lib/ohai/loader.rb +205 -0
- data/lib/ohai/mixin/command.rb +14 -18
- data/lib/ohai/mixin/constant_helper.rb +53 -0
- data/lib/ohai/mixin/gce_metadata.rb +0 -2
- data/lib/ohai/{plugins/freebsd/uptime.rb → mixin/network_constants.rb} +15 -13
- data/lib/ohai/mixin/os.rb +59 -0
- data/lib/ohai/mixin/seconds_to_human.rb +48 -0
- data/lib/ohai/plugins/aix/cpu.rb +26 -22
- data/lib/ohai/plugins/aix/filesystem.rb +47 -48
- data/lib/ohai/plugins/aix/kernel.rb +11 -7
- data/lib/ohai/plugins/aix/memory.rb +8 -4
- data/lib/ohai/plugins/aix/network.rb +73 -82
- data/lib/ohai/plugins/aix/platform.rb +9 -6
- data/lib/ohai/plugins/aix/uptime.rb +14 -12
- data/lib/ohai/plugins/azure.rb +33 -11
- data/lib/ohai/plugins/c.rb +103 -78
- data/lib/ohai/plugins/chef.rb +20 -8
- data/lib/ohai/plugins/cloud.rb +234 -230
- data/lib/ohai/plugins/command.rb +6 -2
- data/lib/ohai/plugins/darwin/cpu.rb +10 -4
- data/lib/ohai/plugins/darwin/filesystem.rb +32 -32
- data/lib/ohai/plugins/darwin/network.rb +157 -154
- data/lib/ohai/plugins/darwin/platform.rb +18 -16
- data/lib/ohai/plugins/darwin/system_profiler.rb +49 -46
- data/lib/ohai/plugins/dmi.rb +102 -102
- data/lib/ohai/plugins/ec2.rb +30 -28
- data/lib/ohai/plugins/erlang.rb +19 -16
- data/lib/ohai/plugins/eucalyptus.rb +37 -36
- data/lib/ohai/plugins/freebsd/cpu.rb +34 -29
- data/lib/ohai/plugins/freebsd/filesystem.rb +32 -32
- data/lib/ohai/plugins/freebsd/memory.rb +35 -25
- data/lib/ohai/plugins/freebsd/network.rb +94 -89
- data/lib/ohai/plugins/freebsd/platform.rb +10 -4
- data/lib/ohai/plugins/freebsd/virtualization.rb +62 -61
- data/lib/ohai/plugins/gce.rb +30 -36
- data/lib/ohai/plugins/groovy.rb +14 -11
- data/lib/ohai/plugins/hostname.rb +132 -10
- data/lib/ohai/plugins/ip_scopes.rb +31 -16
- data/lib/ohai/plugins/java.rb +45 -21
- data/lib/ohai/plugins/kernel.rb +186 -19
- data/lib/ohai/plugins/keys.rb +6 -2
- data/lib/ohai/plugins/languages.rb +6 -2
- data/lib/ohai/plugins/linode.rb +38 -30
- data/lib/ohai/plugins/linux/block_device.rb +19 -15
- data/lib/ohai/plugins/linux/cpu.rb +42 -38
- data/lib/ohai/plugins/linux/filesystem.rb +70 -130
- data/lib/ohai/plugins/linux/lsb.rb +35 -35
- data/lib/ohai/plugins/linux/memory.rb +65 -61
- data/lib/ohai/plugins/linux/network.rb +343 -362
- data/lib/ohai/plugins/linux/platform.rb +90 -88
- data/lib/ohai/plugins/linux/virtualization.rb +95 -90
- data/lib/ohai/plugins/lua.rb +14 -10
- data/lib/ohai/plugins/mono.rb +17 -13
- data/lib/ohai/plugins/netbsd/cpu.rb +25 -23
- data/lib/ohai/plugins/netbsd/filesystem.rb +32 -32
- data/lib/ohai/plugins/netbsd/memory.rb +59 -59
- data/lib/ohai/plugins/netbsd/network.rb +92 -88
- data/lib/ohai/plugins/netbsd/platform.rb +10 -3
- data/lib/ohai/plugins/netbsd/virtualization.rb +41 -38
- data/lib/ohai/plugins/network.rb +131 -130
- data/lib/ohai/plugins/network_listeners.rb +26 -22
- data/lib/ohai/plugins/nodejs.rb +14 -10
- data/lib/ohai/plugins/ohai.rb +11 -6
- data/lib/ohai/plugins/ohai_time.rb +6 -2
- data/lib/ohai/plugins/openbsd/cpu.rb +20 -15
- data/lib/ohai/plugins/openbsd/filesystem.rb +32 -32
- data/lib/ohai/plugins/openbsd/memory.rb +59 -59
- data/lib/ohai/plugins/openbsd/network.rb +92 -88
- data/lib/ohai/plugins/openbsd/platform.rb +10 -4
- data/lib/ohai/plugins/openbsd/virtualization.rb +41 -39
- data/lib/ohai/plugins/openstack.rb +23 -21
- data/lib/ohai/plugins/os.rb +8 -32
- data/lib/ohai/plugins/passwd.rb +27 -22
- data/lib/ohai/plugins/perl.rb +21 -16
- data/lib/ohai/plugins/php.rb +15 -12
- data/lib/ohai/plugins/platform.rb +9 -9
- data/lib/ohai/plugins/{linux/kernel.rb → ps.rb} +13 -12
- data/lib/ohai/plugins/python.rb +16 -12
- data/lib/ohai/plugins/rackspace.rb +82 -77
- data/lib/ohai/plugins/root_group.rb +13 -9
- data/lib/ohai/plugins/ruby.rb +50 -48
- data/lib/ohai/plugins/sigar/cpu.rb +21 -17
- data/lib/ohai/plugins/sigar/filesystem.rb +26 -23
- data/lib/ohai/plugins/sigar/memory.rb +17 -14
- data/lib/ohai/plugins/sigar/network.rb +133 -67
- data/lib/ohai/plugins/sigar/network_route.rb +33 -28
- data/lib/ohai/plugins/sigar/platform.rb +10 -6
- data/lib/ohai/plugins/solaris2/cpu.rb +41 -33
- data/lib/ohai/plugins/solaris2/dmi.rb +146 -146
- data/lib/ohai/plugins/solaris2/filesystem.rb +74 -77
- data/lib/ohai/plugins/{aix/hostname.rb → solaris2/memory.rb} +7 -4
- data/lib/ohai/plugins/solaris2/network.rb +91 -86
- data/lib/ohai/plugins/solaris2/platform.rb +40 -36
- data/lib/ohai/plugins/solaris2/virtualization.rb +54 -59
- data/lib/ohai/plugins/solaris2/zpools.rb +38 -38
- data/lib/ohai/plugins/ssh_host_key.rb +49 -45
- data/lib/ohai/plugins/uptime.rb +87 -25
- data/lib/ohai/plugins/virtualization.rb +59 -55
- data/lib/ohai/plugins/windows/cpu.rb +44 -40
- data/lib/ohai/plugins/windows/filesystem.rb +28 -22
- data/lib/ohai/plugins/windows/network.rb +88 -79
- data/lib/ohai/plugins/windows/platform.rb +10 -3
- data/lib/ohai/provides_map.rb +184 -0
- data/lib/ohai/runner.rb +109 -0
- data/lib/ohai/system.rb +103 -184
- data/lib/ohai/version.rb +4 -3
- data/spec/data/plugins/___lib64___libc.so.6.output +135 -0
- data/spec/data/plugins/___lib___libc.so.6.output +135 -0
- data/spec/data/plugins/cc.output +135 -0
- data/spec/data/plugins/cl.output +135 -0
- data/spec/data/plugins/devenv.com.output +135 -0
- data/spec/data/plugins/env.output +71 -0
- data/spec/data/plugins/erl.output +144 -0
- data/spec/data/plugins/gcc.output +135 -0
- data/spec/data/plugins/groovy.output +159 -0
- data/spec/data/plugins/java.output +143 -0
- data/spec/data/plugins/lua.output +143 -0
- data/spec/data/plugins/messages.rb +8 -0
- data/spec/data/plugins/node.output +143 -0
- data/spec/data/plugins/perl.output +143 -0
- data/spec/data/plugins/php.output +143 -0
- data/spec/data/plugins/python.output +143 -0
- data/spec/data/plugins/uname.output +71 -0
- data/spec/data/plugins/v6message.rb +2 -0
- data/spec/data/plugins/v7message.rb +7 -0
- data/spec/data/plugins/what.output +135 -0
- data/spec/data/plugins/xlc.output +135 -0
- data/spec/spec_helper.rb +52 -18
- data/spec/support/integration_helper.rb +44 -0
- data/spec/unit/dsl/plugin_spec.rb +298 -0
- data/spec/unit/hints_spec.rb +65 -0
- data/spec/unit/loader_spec.rb +226 -0
- data/spec/unit/mixin/ec2_metadata_spec.rb +9 -9
- data/spec/unit/plugins/aix/cpu_spec.rb +17 -18
- data/spec/unit/plugins/aix/filesystem_spec.rb +20 -18
- data/spec/unit/plugins/aix/hostname_spec.rb +8 -4
- data/spec/unit/plugins/aix/kernel_spec.rb +13 -12
- data/spec/unit/plugins/aix/network_spec.rb +66 -45
- data/spec/unit/plugins/aix/platform_spec.rb +11 -10
- data/spec/unit/plugins/aix/uptime_spec.rb +7 -8
- data/spec/unit/plugins/azure_spec.rb +20 -21
- data/spec/unit/plugins/c_spec.rb +88 -87
- data/spec/unit/plugins/chef_spec.rb +5 -6
- data/spec/unit/plugins/cloud_spec.rb +81 -82
- data/spec/unit/plugins/darwin/cpu_spec.rb +8 -9
- data/spec/unit/plugins/darwin/hostname_spec.rb +23 -11
- data/spec/unit/plugins/darwin/kernel_spec.rb +39 -16
- data/spec/unit/plugins/darwin/network_spec.rb +375 -378
- data/spec/unit/plugins/darwin/platform_spec.rb +23 -50
- data/spec/unit/plugins/darwin/system_profiler_spec.rb +7 -8
- data/spec/unit/plugins/dmi_spec.rb +7 -12
- data/spec/unit/plugins/ec2_spec.rb +70 -59
- data/spec/unit/plugins/erlang_spec.rb +18 -20
- data/spec/unit/plugins/eucalyptus_spec.rb +37 -33
- data/spec/unit/plugins/fail_spec.rb +276 -23
- data/spec/unit/plugins/freebsd/hostname_spec.rb +11 -9
- data/spec/unit/plugins/freebsd/kernel_spec.rb +8 -8
- data/spec/unit/plugins/freebsd/platform_spec.rb +9 -10
- data/spec/unit/plugins/freebsd/virtualization_spec.rb +32 -32
- data/spec/unit/plugins/gce_spec.rb +19 -25
- data/spec/unit/plugins/groovy_spec.rb +10 -16
- data/spec/unit/plugins/hostname_spec.rb +45 -20
- data/spec/unit/plugins/ip_scopes_spec.rb +97 -0
- data/spec/unit/plugins/java_spec.rb +145 -99
- data/spec/unit/plugins/kernel_spec.rb +51 -15
- data/spec/unit/plugins/linode_spec.rb +31 -29
- data/spec/unit/plugins/linux/cpu_spec.rb +42 -43
- data/spec/unit/plugins/linux/filesystem_spec.rb +143 -324
- data/spec/unit/plugins/linux/hostname_spec.rb +16 -23
- data/spec/unit/plugins/linux/kernel_spec.rb +22 -8
- data/spec/unit/plugins/linux/lsb_spec.rb +54 -56
- data/spec/unit/plugins/linux/network_spec.rb +196 -238
- data/spec/unit/plugins/linux/platform_spec.rb +186 -205
- data/spec/unit/plugins/linux/uptime_spec.rb +13 -25
- data/spec/unit/plugins/linux/virtualization_spec.rb +149 -129
- data/spec/unit/plugins/lua_spec.rb +12 -15
- data/spec/unit/plugins/mono_spec.rb +10 -15
- data/spec/unit/plugins/netbsd/hostname_spec.rb +17 -7
- data/spec/unit/plugins/netbsd/kernel_spec.rb +8 -8
- data/spec/unit/plugins/netbsd/platform_spec.rb +8 -10
- data/spec/unit/plugins/network_spec.rb +358 -235
- data/spec/unit/plugins/nodejs_spec.rb +13 -15
- data/spec/unit/plugins/ohai_spec.rb +3 -4
- data/spec/unit/plugins/ohai_time_spec.rb +8 -9
- data/spec/unit/plugins/openbsd/hostname_spec.rb +21 -11
- data/spec/unit/plugins/openbsd/kernel_spec.rb +8 -8
- data/spec/unit/plugins/openbsd/platform_spec.rb +6 -12
- data/spec/unit/plugins/openstack_spec.rb +214 -0
- data/spec/unit/plugins/os_spec.rb +13 -16
- data/spec/unit/plugins/passwd_spec.rb +12 -13
- data/spec/unit/plugins/perl_spec.rb +20 -44
- data/spec/unit/plugins/php_spec.rb +20 -15
- data/spec/unit/plugins/platform_spec.rb +24 -29
- data/spec/unit/plugins/python_spec.rb +13 -17
- data/spec/unit/plugins/rackspace_spec.rb +90 -57
- data/spec/unit/plugins/root_group_spec.rb +17 -19
- data/spec/unit/plugins/ruby_spec.rb +15 -16
- data/spec/unit/plugins/sigar/network_route_spec.rb +12 -13
- data/spec/unit/plugins/solaris2/cpu_spec.rb +82 -0
- data/spec/unit/plugins/solaris2/hostname_spec.rb +12 -13
- data/spec/unit/plugins/solaris2/kernel_spec.rb +11 -15
- data/{lib/ohai/plugins/openbsd/uptime.rb → spec/unit/plugins/solaris2/memory_spec.rb} +10 -12
- data/spec/unit/plugins/solaris2/network_spec.rb +44 -20
- data/spec/unit/plugins/solaris2/platform_spec.rb +13 -22
- data/spec/unit/plugins/solaris2/virtualization_spec.rb +37 -45
- data/spec/unit/plugins/ssh_host_keys_spec.rb +11 -15
- data/spec/unit/provides_map_spec.rb +208 -0
- data/spec/unit/runner_spec.rb +488 -0
- data/spec/unit/system_spec.rb +639 -104
- metadata +151 -87
- checksums.yaml +0 -7
- data/lib/ohai/mixin/from_file.rb +0 -36
- data/lib/ohai/plugins/aix/ps.rb +0 -23
- data/lib/ohai/plugins/darwin/kernel.rb +0 -37
- data/lib/ohai/plugins/darwin/ps.rb +0 -23
- data/lib/ohai/plugins/darwin/uptime.rb +0 -32
- data/lib/ohai/plugins/dmi_common.rb +0 -121
- data/lib/ohai/plugins/freebsd/hostname.rb +0 -22
- data/lib/ohai/plugins/freebsd/kernel.rb +0 -37
- data/lib/ohai/plugins/freebsd/ps.rb +0 -24
- data/lib/ohai/plugins/hpux/cpu.rb +0 -19
- data/lib/ohai/plugins/hpux/filesystem.rb +0 -19
- data/lib/ohai/plugins/hpux/hostname.rb +0 -19
- data/lib/ohai/plugins/hpux/memory.rb +0 -19
- data/lib/ohai/plugins/hpux/network.rb +0 -19
- data/lib/ohai/plugins/hpux/platform.rb +0 -19
- data/lib/ohai/plugins/hpux/ps.rb +0 -23
- data/lib/ohai/plugins/hpux/uptime.rb +0 -19
- data/lib/ohai/plugins/linux/hostname.rb +0 -40
- data/lib/ohai/plugins/linux/ps.rb +0 -23
- data/lib/ohai/plugins/linux/uptime.rb +0 -28
- data/lib/ohai/plugins/netbsd/hostname.rb +0 -22
- data/lib/ohai/plugins/netbsd/kernel.rb +0 -35
- data/lib/ohai/plugins/netbsd/ps.rb +0 -24
- data/lib/ohai/plugins/netbsd/uptime.rb +0 -31
- data/lib/ohai/plugins/openbsd/hostname.rb +0 -22
- data/lib/ohai/plugins/openbsd/kernel.rb +0 -35
- data/lib/ohai/plugins/openbsd/ps.rb +0 -24
- data/lib/ohai/plugins/sigar/hostname.rb +0 -28
- data/lib/ohai/plugins/sigar/uptime.rb +0 -27
- data/lib/ohai/plugins/solaris2/hostname.rb +0 -34
- data/lib/ohai/plugins/solaris2/kernel.rb +0 -40
- data/lib/ohai/plugins/solaris2/ps.rb +0 -23
- data/lib/ohai/plugins/solaris2/uptime.rb +0 -36
- data/lib/ohai/plugins/windows/hostname.rb +0 -33
- data/lib/ohai/plugins/windows/kernel.rb +0 -58
- data/lib/ohai/plugins/windows/kernel_devices.rb +0 -39
- data/lib/ohai/plugins/windows/uptime.rb +0 -23
- data/spec/unit/mixin/from_file_spec.rb +0 -53
metadata
CHANGED
@@ -1,181 +1,238 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ohai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 7.0.0.rc.0
|
5
|
+
prerelease: 6
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Adam Jacob
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2014-
|
12
|
+
date: 2014-01-20 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: mime-types
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.16'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.16'
|
13
30
|
- !ruby/object:Gem::Dependency
|
14
31
|
name: systemu
|
15
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
16
34
|
requirements:
|
17
|
-
- -
|
35
|
+
- - ~>
|
18
36
|
- !ruby/object:Gem::Version
|
19
37
|
version: 2.5.2
|
20
38
|
type: :runtime
|
21
39
|
prerelease: false
|
22
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
23
42
|
requirements:
|
24
|
-
- -
|
43
|
+
- - ~>
|
25
44
|
- !ruby/object:Gem::Version
|
26
45
|
version: 2.5.2
|
27
46
|
- !ruby/object:Gem::Dependency
|
28
47
|
name: yajl-ruby
|
29
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
30
50
|
requirements:
|
31
|
-
- -
|
51
|
+
- - ! '>='
|
32
52
|
- !ruby/object:Gem::Version
|
33
53
|
version: '0'
|
34
54
|
type: :runtime
|
35
55
|
prerelease: false
|
36
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
37
58
|
requirements:
|
38
|
-
- -
|
59
|
+
- - ! '>='
|
39
60
|
- !ruby/object:Gem::Version
|
40
61
|
version: '0'
|
41
62
|
- !ruby/object:Gem::Dependency
|
42
63
|
name: mixlib-cli
|
43
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
44
66
|
requirements:
|
45
|
-
- -
|
67
|
+
- - ! '>='
|
46
68
|
- !ruby/object:Gem::Version
|
47
69
|
version: '0'
|
48
70
|
type: :runtime
|
49
71
|
prerelease: false
|
50
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
51
74
|
requirements:
|
52
|
-
- -
|
75
|
+
- - ! '>='
|
53
76
|
- !ruby/object:Gem::Version
|
54
77
|
version: '0'
|
55
78
|
- !ruby/object:Gem::Dependency
|
56
79
|
name: mixlib-config
|
57
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
58
82
|
requirements:
|
59
|
-
- -
|
83
|
+
- - ~>
|
60
84
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
85
|
+
version: '2.0'
|
62
86
|
type: :runtime
|
63
87
|
prerelease: false
|
64
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
65
90
|
requirements:
|
66
|
-
- -
|
91
|
+
- - ~>
|
67
92
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
93
|
+
version: '2.0'
|
69
94
|
- !ruby/object:Gem::Dependency
|
70
95
|
name: mixlib-log
|
71
96
|
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
72
98
|
requirements:
|
73
|
-
- -
|
99
|
+
- - ! '>='
|
74
100
|
- !ruby/object:Gem::Version
|
75
101
|
version: '0'
|
76
102
|
type: :runtime
|
77
103
|
prerelease: false
|
78
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
79
106
|
requirements:
|
80
|
-
- -
|
107
|
+
- - ! '>='
|
81
108
|
- !ruby/object:Gem::Version
|
82
109
|
version: '0'
|
83
110
|
- !ruby/object:Gem::Dependency
|
84
111
|
name: mixlib-shellout
|
85
112
|
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
86
114
|
requirements:
|
87
|
-
- -
|
115
|
+
- - ~>
|
88
116
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
117
|
+
version: '1.2'
|
90
118
|
type: :runtime
|
91
119
|
prerelease: false
|
92
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
93
122
|
requirements:
|
94
|
-
- -
|
123
|
+
- - ~>
|
95
124
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
125
|
+
version: '1.2'
|
97
126
|
- !ruby/object:Gem::Dependency
|
98
127
|
name: ipaddress
|
99
128
|
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
100
130
|
requirements:
|
101
|
-
- -
|
131
|
+
- - ! '>='
|
102
132
|
- !ruby/object:Gem::Version
|
103
133
|
version: '0'
|
104
134
|
type: :runtime
|
105
135
|
prerelease: false
|
106
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
107
138
|
requirements:
|
108
|
-
- -
|
139
|
+
- - ! '>='
|
109
140
|
- !ruby/object:Gem::Version
|
110
141
|
version: '0'
|
111
142
|
- !ruby/object:Gem::Dependency
|
112
143
|
name: rake
|
113
144
|
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
114
146
|
requirements:
|
115
|
-
- -
|
147
|
+
- - ! '>='
|
116
148
|
- !ruby/object:Gem::Version
|
117
149
|
version: '0'
|
118
150
|
type: :development
|
119
151
|
prerelease: false
|
120
152
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
121
154
|
requirements:
|
122
|
-
- -
|
155
|
+
- - ! '>='
|
123
156
|
- !ruby/object:Gem::Version
|
124
157
|
version: '0'
|
125
158
|
- !ruby/object:Gem::Dependency
|
126
159
|
name: rspec-core
|
127
160
|
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
128
162
|
requirements:
|
129
|
-
- -
|
163
|
+
- - ! '>='
|
130
164
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
165
|
+
version: '0'
|
132
166
|
type: :development
|
133
167
|
prerelease: false
|
134
168
|
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
135
170
|
requirements:
|
136
|
-
- -
|
171
|
+
- - ! '>='
|
137
172
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
173
|
+
version: '0'
|
139
174
|
- !ruby/object:Gem::Dependency
|
140
175
|
name: rspec-expectations
|
141
176
|
requirement: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
142
178
|
requirements:
|
143
|
-
- -
|
179
|
+
- - ! '>='
|
144
180
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
181
|
+
version: '0'
|
146
182
|
type: :development
|
147
183
|
prerelease: false
|
148
184
|
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
149
186
|
requirements:
|
150
|
-
- -
|
187
|
+
- - ! '>='
|
151
188
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
189
|
+
version: '0'
|
153
190
|
- !ruby/object:Gem::Dependency
|
154
191
|
name: rspec-mocks
|
155
192
|
requirement: !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
156
194
|
requirements:
|
157
|
-
- -
|
195
|
+
- - ! '>='
|
158
196
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
197
|
+
version: '0'
|
160
198
|
type: :development
|
161
199
|
prerelease: false
|
162
200
|
version_requirements: !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
163
202
|
requirements:
|
164
|
-
- -
|
203
|
+
- - ! '>='
|
165
204
|
- !ruby/object:Gem::Version
|
166
|
-
version: '
|
205
|
+
version: '0'
|
167
206
|
- !ruby/object:Gem::Dependency
|
168
207
|
name: rspec_junit_formatter
|
169
208
|
requirement: !ruby/object:Gem::Requirement
|
209
|
+
none: false
|
170
210
|
requirements:
|
171
|
-
- -
|
211
|
+
- - ! '>='
|
172
212
|
- !ruby/object:Gem::Version
|
173
213
|
version: '0'
|
174
214
|
type: :development
|
175
215
|
prerelease: false
|
176
216
|
version_requirements: !ruby/object:Gem::Requirement
|
217
|
+
none: false
|
177
218
|
requirements:
|
178
|
-
- -
|
219
|
+
- - ! '>='
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: '0'
|
222
|
+
- !ruby/object:Gem::Dependency
|
223
|
+
name: chef
|
224
|
+
requirement: !ruby/object:Gem::Requirement
|
225
|
+
none: false
|
226
|
+
requirements:
|
227
|
+
- - ! '>='
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
none: false
|
234
|
+
requirements:
|
235
|
+
- - ! '>='
|
179
236
|
- !ruby/object:Gem::Version
|
180
237
|
version: '0'
|
181
238
|
description: Ohai profiles your system and emits JSON
|
@@ -188,27 +245,33 @@ files:
|
|
188
245
|
- LICENSE
|
189
246
|
- README.rdoc
|
190
247
|
- Rakefile
|
191
|
-
- bin/ohai
|
192
248
|
- docs/man/man1/ohai.1
|
193
|
-
- lib/ohai.rb
|
194
249
|
- lib/ohai/application.rb
|
250
|
+
- lib/ohai/common/dmi.rb
|
195
251
|
- lib/ohai/config.rb
|
252
|
+
- lib/ohai/dsl/plugin/versionvi.rb
|
253
|
+
- lib/ohai/dsl/plugin/versionvii.rb
|
254
|
+
- lib/ohai/dsl/plugin.rb
|
255
|
+
- lib/ohai/dsl.rb
|
196
256
|
- lib/ohai/exception.rb
|
257
|
+
- lib/ohai/hints.rb
|
258
|
+
- lib/ohai/loader.rb
|
197
259
|
- lib/ohai/log.rb
|
198
260
|
- lib/ohai/mash.rb
|
199
261
|
- lib/ohai/mixin/command.rb
|
262
|
+
- lib/ohai/mixin/constant_helper.rb
|
200
263
|
- lib/ohai/mixin/ec2_metadata.rb
|
201
|
-
- lib/ohai/mixin/from_file.rb
|
202
264
|
- lib/ohai/mixin/gce_metadata.rb
|
265
|
+
- lib/ohai/mixin/network_constants.rb
|
266
|
+
- lib/ohai/mixin/os.rb
|
267
|
+
- lib/ohai/mixin/seconds_to_human.rb
|
203
268
|
- lib/ohai/mixin/string.rb
|
204
269
|
- lib/ohai/plugins/aix/cpu.rb
|
205
270
|
- lib/ohai/plugins/aix/filesystem.rb
|
206
|
-
- lib/ohai/plugins/aix/hostname.rb
|
207
271
|
- lib/ohai/plugins/aix/kernel.rb
|
208
272
|
- lib/ohai/plugins/aix/memory.rb
|
209
273
|
- lib/ohai/plugins/aix/network.rb
|
210
274
|
- lib/ohai/plugins/aix/platform.rb
|
211
|
-
- lib/ohai/plugins/aix/ps.rb
|
212
275
|
- lib/ohai/plugins/aix/uptime.rb
|
213
276
|
- lib/ohai/plugins/azure.rb
|
214
277
|
- lib/ohai/plugins/c.rb
|
@@ -217,39 +280,22 @@ files:
|
|
217
280
|
- lib/ohai/plugins/command.rb
|
218
281
|
- lib/ohai/plugins/darwin/cpu.rb
|
219
282
|
- lib/ohai/plugins/darwin/filesystem.rb
|
220
|
-
- lib/ohai/plugins/darwin/hostname.rb
|
221
|
-
- lib/ohai/plugins/darwin/kernel.rb
|
222
283
|
- lib/ohai/plugins/darwin/network.rb
|
223
284
|
- lib/ohai/plugins/darwin/platform.rb
|
224
|
-
- lib/ohai/plugins/darwin/ps.rb
|
225
285
|
- lib/ohai/plugins/darwin/system_profiler.rb
|
226
|
-
- lib/ohai/plugins/darwin/uptime.rb
|
227
286
|
- lib/ohai/plugins/dmi.rb
|
228
|
-
- lib/ohai/plugins/dmi_common.rb
|
229
287
|
- lib/ohai/plugins/ec2.rb
|
230
288
|
- lib/ohai/plugins/erlang.rb
|
231
289
|
- lib/ohai/plugins/eucalyptus.rb
|
232
290
|
- lib/ohai/plugins/freebsd/cpu.rb
|
233
291
|
- lib/ohai/plugins/freebsd/filesystem.rb
|
234
|
-
- lib/ohai/plugins/freebsd/hostname.rb
|
235
|
-
- lib/ohai/plugins/freebsd/kernel.rb
|
236
292
|
- lib/ohai/plugins/freebsd/memory.rb
|
237
293
|
- lib/ohai/plugins/freebsd/network.rb
|
238
294
|
- lib/ohai/plugins/freebsd/platform.rb
|
239
|
-
- lib/ohai/plugins/freebsd/ps.rb
|
240
|
-
- lib/ohai/plugins/freebsd/uptime.rb
|
241
295
|
- lib/ohai/plugins/freebsd/virtualization.rb
|
242
296
|
- lib/ohai/plugins/gce.rb
|
243
297
|
- lib/ohai/plugins/groovy.rb
|
244
298
|
- lib/ohai/plugins/hostname.rb
|
245
|
-
- lib/ohai/plugins/hpux/cpu.rb
|
246
|
-
- lib/ohai/plugins/hpux/filesystem.rb
|
247
|
-
- lib/ohai/plugins/hpux/hostname.rb
|
248
|
-
- lib/ohai/plugins/hpux/memory.rb
|
249
|
-
- lib/ohai/plugins/hpux/network.rb
|
250
|
-
- lib/ohai/plugins/hpux/platform.rb
|
251
|
-
- lib/ohai/plugins/hpux/ps.rb
|
252
|
-
- lib/ohai/plugins/hpux/uptime.rb
|
253
299
|
- lib/ohai/plugins/ip_scopes.rb
|
254
300
|
- lib/ohai/plugins/java.rb
|
255
301
|
- lib/ohai/plugins/kernel.rb
|
@@ -259,26 +305,18 @@ files:
|
|
259
305
|
- lib/ohai/plugins/linux/block_device.rb
|
260
306
|
- lib/ohai/plugins/linux/cpu.rb
|
261
307
|
- lib/ohai/plugins/linux/filesystem.rb
|
262
|
-
- lib/ohai/plugins/linux/hostname.rb
|
263
|
-
- lib/ohai/plugins/linux/kernel.rb
|
264
308
|
- lib/ohai/plugins/linux/lsb.rb
|
265
309
|
- lib/ohai/plugins/linux/memory.rb
|
266
310
|
- lib/ohai/plugins/linux/network.rb
|
267
311
|
- lib/ohai/plugins/linux/platform.rb
|
268
|
-
- lib/ohai/plugins/linux/ps.rb
|
269
|
-
- lib/ohai/plugins/linux/uptime.rb
|
270
312
|
- lib/ohai/plugins/linux/virtualization.rb
|
271
313
|
- lib/ohai/plugins/lua.rb
|
272
314
|
- lib/ohai/plugins/mono.rb
|
273
315
|
- lib/ohai/plugins/netbsd/cpu.rb
|
274
316
|
- lib/ohai/plugins/netbsd/filesystem.rb
|
275
|
-
- lib/ohai/plugins/netbsd/hostname.rb
|
276
|
-
- lib/ohai/plugins/netbsd/kernel.rb
|
277
317
|
- lib/ohai/plugins/netbsd/memory.rb
|
278
318
|
- lib/ohai/plugins/netbsd/network.rb
|
279
319
|
- lib/ohai/plugins/netbsd/platform.rb
|
280
|
-
- lib/ohai/plugins/netbsd/ps.rb
|
281
|
-
- lib/ohai/plugins/netbsd/uptime.rb
|
282
320
|
- lib/ohai/plugins/netbsd/virtualization.rb
|
283
321
|
- lib/ohai/plugins/network.rb
|
284
322
|
- lib/ohai/plugins/network_listeners.rb
|
@@ -287,13 +325,9 @@ files:
|
|
287
325
|
- lib/ohai/plugins/ohai_time.rb
|
288
326
|
- lib/ohai/plugins/openbsd/cpu.rb
|
289
327
|
- lib/ohai/plugins/openbsd/filesystem.rb
|
290
|
-
- lib/ohai/plugins/openbsd/hostname.rb
|
291
|
-
- lib/ohai/plugins/openbsd/kernel.rb
|
292
328
|
- lib/ohai/plugins/openbsd/memory.rb
|
293
329
|
- lib/ohai/plugins/openbsd/network.rb
|
294
330
|
- lib/ohai/plugins/openbsd/platform.rb
|
295
|
-
- lib/ohai/plugins/openbsd/ps.rb
|
296
|
-
- lib/ohai/plugins/openbsd/uptime.rb
|
297
331
|
- lib/ohai/plugins/openbsd/virtualization.rb
|
298
332
|
- lib/ohai/plugins/openstack.rb
|
299
333
|
- lib/ohai/plugins/os.rb
|
@@ -301,27 +335,23 @@ files:
|
|
301
335
|
- lib/ohai/plugins/perl.rb
|
302
336
|
- lib/ohai/plugins/php.rb
|
303
337
|
- lib/ohai/plugins/platform.rb
|
338
|
+
- lib/ohai/plugins/ps.rb
|
304
339
|
- lib/ohai/plugins/python.rb
|
305
340
|
- lib/ohai/plugins/rackspace.rb
|
306
341
|
- lib/ohai/plugins/root_group.rb
|
307
342
|
- lib/ohai/plugins/ruby.rb
|
308
343
|
- lib/ohai/plugins/sigar/cpu.rb
|
309
344
|
- lib/ohai/plugins/sigar/filesystem.rb
|
310
|
-
- lib/ohai/plugins/sigar/hostname.rb
|
311
345
|
- lib/ohai/plugins/sigar/memory.rb
|
312
346
|
- lib/ohai/plugins/sigar/network.rb
|
313
347
|
- lib/ohai/plugins/sigar/network_route.rb
|
314
348
|
- lib/ohai/plugins/sigar/platform.rb
|
315
|
-
- lib/ohai/plugins/sigar/uptime.rb
|
316
349
|
- lib/ohai/plugins/solaris2/cpu.rb
|
317
350
|
- lib/ohai/plugins/solaris2/dmi.rb
|
318
351
|
- lib/ohai/plugins/solaris2/filesystem.rb
|
319
|
-
- lib/ohai/plugins/solaris2/
|
320
|
-
- lib/ohai/plugins/solaris2/kernel.rb
|
352
|
+
- lib/ohai/plugins/solaris2/memory.rb
|
321
353
|
- lib/ohai/plugins/solaris2/network.rb
|
322
354
|
- lib/ohai/plugins/solaris2/platform.rb
|
323
|
-
- lib/ohai/plugins/solaris2/ps.rb
|
324
|
-
- lib/ohai/plugins/solaris2/uptime.rb
|
325
355
|
- lib/ohai/plugins/solaris2/virtualization.rb
|
326
356
|
- lib/ohai/plugins/solaris2/zpools.rb
|
327
357
|
- lib/ohai/plugins/ssh_host_key.rb
|
@@ -329,22 +359,45 @@ files:
|
|
329
359
|
- lib/ohai/plugins/virtualization.rb
|
330
360
|
- lib/ohai/plugins/windows/cpu.rb
|
331
361
|
- lib/ohai/plugins/windows/filesystem.rb
|
332
|
-
- lib/ohai/plugins/windows/hostname.rb
|
333
|
-
- lib/ohai/plugins/windows/kernel.rb
|
334
|
-
- lib/ohai/plugins/windows/kernel_devices.rb
|
335
362
|
- lib/ohai/plugins/windows/network.rb
|
336
363
|
- lib/ohai/plugins/windows/platform.rb
|
337
|
-
- lib/ohai/
|
364
|
+
- lib/ohai/provides_map.rb
|
365
|
+
- lib/ohai/runner.rb
|
338
366
|
- lib/ohai/system.rb
|
339
367
|
- lib/ohai/version.rb
|
368
|
+
- lib/ohai.rb
|
369
|
+
- spec/data/plugins/___lib64___libc.so.6.output
|
370
|
+
- spec/data/plugins/___lib___libc.so.6.output
|
371
|
+
- spec/data/plugins/cc.output
|
372
|
+
- spec/data/plugins/cl.output
|
373
|
+
- spec/data/plugins/devenv.com.output
|
374
|
+
- spec/data/plugins/env.output
|
375
|
+
- spec/data/plugins/erl.output
|
376
|
+
- spec/data/plugins/gcc.output
|
377
|
+
- spec/data/plugins/groovy.output
|
378
|
+
- spec/data/plugins/java.output
|
379
|
+
- spec/data/plugins/lua.output
|
380
|
+
- spec/data/plugins/messages.rb
|
381
|
+
- spec/data/plugins/node.output
|
382
|
+
- spec/data/plugins/perl.output
|
383
|
+
- spec/data/plugins/php.output
|
384
|
+
- spec/data/plugins/python.output
|
385
|
+
- spec/data/plugins/uname.output
|
386
|
+
- spec/data/plugins/v6message.rb
|
387
|
+
- spec/data/plugins/v7message.rb
|
388
|
+
- spec/data/plugins/what.output
|
389
|
+
- spec/data/plugins/xlc.output
|
340
390
|
- spec/ohai_spec.rb
|
341
391
|
- spec/rcov.opts
|
342
392
|
- spec/spec.opts
|
343
393
|
- spec/spec_helper.rb
|
394
|
+
- spec/support/integration_helper.rb
|
344
395
|
- spec/support/platform_helpers.rb
|
396
|
+
- spec/unit/dsl/plugin_spec.rb
|
397
|
+
- spec/unit/hints_spec.rb
|
398
|
+
- spec/unit/loader_spec.rb
|
345
399
|
- spec/unit/mixin/command_spec.rb
|
346
400
|
- spec/unit/mixin/ec2_metadata_spec.rb
|
347
|
-
- spec/unit/mixin/from_file_spec.rb
|
348
401
|
- spec/unit/plugins/aix/cpu_spec.rb
|
349
402
|
- spec/unit/plugins/aix/filesystem_spec.rb
|
350
403
|
- spec/unit/plugins/aix/hostname_spec.rb
|
@@ -375,6 +428,7 @@ files:
|
|
375
428
|
- spec/unit/plugins/gce_spec.rb
|
376
429
|
- spec/unit/plugins/groovy_spec.rb
|
377
430
|
- spec/unit/plugins/hostname_spec.rb
|
431
|
+
- spec/unit/plugins/ip_scopes_spec.rb
|
378
432
|
- spec/unit/plugins/java_spec.rb
|
379
433
|
- spec/unit/plugins/kernel_spec.rb
|
380
434
|
- spec/unit/plugins/linode_spec.rb
|
@@ -399,6 +453,7 @@ files:
|
|
399
453
|
- spec/unit/plugins/openbsd/hostname_spec.rb
|
400
454
|
- spec/unit/plugins/openbsd/kernel_spec.rb
|
401
455
|
- spec/unit/plugins/openbsd/platform_spec.rb
|
456
|
+
- spec/unit/plugins/openstack_spec.rb
|
402
457
|
- spec/unit/plugins/os_spec.rb
|
403
458
|
- spec/unit/plugins/passwd_spec.rb
|
404
459
|
- spec/unit/plugins/perl_spec.rb
|
@@ -409,34 +464,43 @@ files:
|
|
409
464
|
- spec/unit/plugins/root_group_spec.rb
|
410
465
|
- spec/unit/plugins/ruby_spec.rb
|
411
466
|
- spec/unit/plugins/sigar/network_route_spec.rb
|
467
|
+
- spec/unit/plugins/solaris2/cpu_spec.rb
|
412
468
|
- spec/unit/plugins/solaris2/hostname_spec.rb
|
413
469
|
- spec/unit/plugins/solaris2/kernel_spec.rb
|
470
|
+
- spec/unit/plugins/solaris2/memory_spec.rb
|
414
471
|
- spec/unit/plugins/solaris2/network_spec.rb
|
415
472
|
- spec/unit/plugins/solaris2/platform_spec.rb
|
416
473
|
- spec/unit/plugins/solaris2/virtualization_spec.rb
|
417
474
|
- spec/unit/plugins/ssh_host_keys_spec.rb
|
475
|
+
- spec/unit/provides_map_spec.rb
|
476
|
+
- spec/unit/runner_spec.rb
|
418
477
|
- spec/unit/system_spec.rb
|
478
|
+
- bin/ohai
|
419
479
|
homepage: http://wiki.opscode.com/display/chef/Ohai
|
420
480
|
licenses: []
|
421
|
-
metadata: {}
|
422
481
|
post_install_message:
|
423
482
|
rdoc_options: []
|
424
483
|
require_paths:
|
425
484
|
- lib
|
426
485
|
required_ruby_version: !ruby/object:Gem::Requirement
|
486
|
+
none: false
|
427
487
|
requirements:
|
428
|
-
- -
|
488
|
+
- - ! '>='
|
429
489
|
- !ruby/object:Gem::Version
|
430
490
|
version: '0'
|
491
|
+
segments:
|
492
|
+
- 0
|
493
|
+
hash: -1337144685830584340
|
431
494
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
495
|
+
none: false
|
432
496
|
requirements:
|
433
|
-
- -
|
497
|
+
- - ! '>'
|
434
498
|
- !ruby/object:Gem::Version
|
435
|
-
version:
|
499
|
+
version: 1.3.1
|
436
500
|
requirements: []
|
437
501
|
rubyforge_project:
|
438
|
-
rubygems_version:
|
502
|
+
rubygems_version: 1.8.23
|
439
503
|
signing_key:
|
440
|
-
specification_version:
|
504
|
+
specification_version: 3
|
441
505
|
summary: Ohai profiles your system and emits JSON
|
442
506
|
test_files: []
|