fauxhai 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/CONTRIBUTING.md +2 -2
- data/fauxhai.gemspec +2 -1
- data/lib/fauxhai/platforms/amazon/2012.09.json +4 -0
- data/lib/fauxhai/platforms/centos/5.8.json +4 -0
- data/lib/fauxhai/platforms/centos/5.9.json +4 -0
- data/lib/fauxhai/platforms/centos/6.0.json +4 -0
- data/lib/fauxhai/platforms/centos/6.2.json +4 -0
- data/lib/fauxhai/platforms/centos/6.3.json +4 -0
- data/lib/fauxhai/platforms/centos/6.4.json +4 -0
- data/lib/fauxhai/platforms/centos/6.5.json +405 -0
- data/lib/fauxhai/platforms/debian/6.0.5.json +4 -0
- data/lib/fauxhai/platforms/debian/7.0.json +4 -0
- data/lib/fauxhai/platforms/debian/7.1.json +4 -0
- data/lib/fauxhai/platforms/debian/7.2.json +383 -0
- data/lib/fauxhai/platforms/debian/7.4.json +418 -0
- data/lib/fauxhai/platforms/fedora/18.json +4 -0
- data/lib/fauxhai/platforms/freebsd/9.1.json +4 -0
- data/lib/fauxhai/platforms/gentoo/2.1.json +4 -0
- data/lib/fauxhai/platforms/mac_os_x/10.6.8.json +4 -0
- data/lib/fauxhai/platforms/mac_os_x/10.7.4.json +4 -0
- data/lib/fauxhai/platforms/mac_os_x/10.8.2.json +4 -0
- data/lib/fauxhai/platforms/omnios/151002.json +4 -0
- data/lib/fauxhai/platforms/openbsd/5.4.json +220 -0
- data/lib/fauxhai/platforms/opensuse/12.3.json +4 -0
- data/lib/fauxhai/platforms/redhat/5.10.json +2783 -0
- data/lib/fauxhai/platforms/redhat/5.6.json +2851 -0
- data/lib/fauxhai/platforms/redhat/5.7.json +2954 -0
- data/lib/fauxhai/platforms/redhat/5.8.json +4 -0
- data/lib/fauxhai/platforms/redhat/5.9.json +2783 -0
- data/lib/fauxhai/platforms/redhat/6.0.json +2516 -0
- data/lib/fauxhai/platforms/redhat/6.1.json +2520 -0
- data/lib/fauxhai/platforms/redhat/6.2.json +2587 -0
- data/lib/fauxhai/platforms/redhat/6.3.json +2119 -606
- data/lib/fauxhai/platforms/redhat/6.4.json +312 -0
- data/lib/fauxhai/platforms/redhat/6.5.json +312 -0
- data/lib/fauxhai/platforms/smartos/joyent_20130111T180733Z.json +4 -0
- data/lib/fauxhai/platforms/suse/11.03.json +4 -0
- data/lib/fauxhai/platforms/ubuntu/10.04.json +4 -0
- data/lib/fauxhai/platforms/ubuntu/12.04.json +4 -0
- data/lib/fauxhai/platforms/ubuntu/13.04.json +4 -0
- data/lib/fauxhai/platforms/windows/2008R2.json +4 -0
- data/lib/fauxhai/runner.rb +9 -1
- metadata +19 -4
data/lib/fauxhai/runner.rb
CHANGED
@@ -20,7 +20,8 @@ module Fauxhai
|
|
20
20
|
'macaddress' => macaddress,
|
21
21
|
'network' => network,
|
22
22
|
'uptime' => uptime,
|
23
|
-
'uptime_seconds' => uptime_seconds
|
23
|
+
'uptime_seconds' => uptime_seconds,
|
24
|
+
'cpu' => cpu
|
24
25
|
)
|
25
26
|
|
26
27
|
puts JSON.pretty_generate(result)
|
@@ -216,6 +217,13 @@ module Fauxhai
|
|
216
217
|
2646450
|
217
218
|
end
|
218
219
|
|
220
|
+
def cpu
|
221
|
+
{
|
222
|
+
'real' => 1,
|
223
|
+
'total' => 1
|
224
|
+
}
|
225
|
+
end
|
226
|
+
|
219
227
|
# Whitelist attributes are attributes that we *actually* want from the node. Other attributes are
|
220
228
|
# either ignored or overridden, but we ensure these are returned with the command.
|
221
229
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fauxhai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Vargo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|
@@ -86,10 +86,13 @@ files:
|
|
86
86
|
- lib/fauxhai/platforms/centos/6.2.json
|
87
87
|
- lib/fauxhai/platforms/centos/6.3.json
|
88
88
|
- lib/fauxhai/platforms/centos/6.4.json
|
89
|
+
- lib/fauxhai/platforms/centos/6.5.json
|
89
90
|
- lib/fauxhai/platforms/chefspec/0.6.1.json
|
90
91
|
- lib/fauxhai/platforms/debian/6.0.5.json
|
91
92
|
- lib/fauxhai/platforms/debian/7.0.json
|
92
93
|
- lib/fauxhai/platforms/debian/7.1.json
|
94
|
+
- lib/fauxhai/platforms/debian/7.2.json
|
95
|
+
- lib/fauxhai/platforms/debian/7.4.json
|
93
96
|
- lib/fauxhai/platforms/fedora/18.json
|
94
97
|
- lib/fauxhai/platforms/freebsd/9.1.json
|
95
98
|
- lib/fauxhai/platforms/gentoo/2.1.json
|
@@ -97,9 +100,19 @@ files:
|
|
97
100
|
- lib/fauxhai/platforms/mac_os_x/10.7.4.json
|
98
101
|
- lib/fauxhai/platforms/mac_os_x/10.8.2.json
|
99
102
|
- lib/fauxhai/platforms/omnios/151002.json
|
103
|
+
- lib/fauxhai/platforms/openbsd/5.4.json
|
100
104
|
- lib/fauxhai/platforms/opensuse/12.3.json
|
105
|
+
- lib/fauxhai/platforms/redhat/5.10.json
|
106
|
+
- lib/fauxhai/platforms/redhat/5.6.json
|
107
|
+
- lib/fauxhai/platforms/redhat/5.7.json
|
101
108
|
- lib/fauxhai/platforms/redhat/5.8.json
|
109
|
+
- lib/fauxhai/platforms/redhat/5.9.json
|
110
|
+
- lib/fauxhai/platforms/redhat/6.0.json
|
111
|
+
- lib/fauxhai/platforms/redhat/6.1.json
|
112
|
+
- lib/fauxhai/platforms/redhat/6.2.json
|
102
113
|
- lib/fauxhai/platforms/redhat/6.3.json
|
114
|
+
- lib/fauxhai/platforms/redhat/6.4.json
|
115
|
+
- lib/fauxhai/platforms/redhat/6.5.json
|
103
116
|
- lib/fauxhai/platforms/smartos/joyent_20130111T180733Z.json
|
104
117
|
- lib/fauxhai/platforms/suse/11.03.json
|
105
118
|
- lib/fauxhai/platforms/ubuntu/10.04.json
|
@@ -109,7 +122,8 @@ files:
|
|
109
122
|
- lib/fauxhai/runner.rb
|
110
123
|
- tmp/.gitkeep
|
111
124
|
homepage: https://github.com/customink/fauxhai
|
112
|
-
licenses:
|
125
|
+
licenses:
|
126
|
+
- MIT
|
113
127
|
metadata: {}
|
114
128
|
post_install_message:
|
115
129
|
rdoc_options: []
|
@@ -127,9 +141,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
141
|
version: '0'
|
128
142
|
requirements: []
|
129
143
|
rubyforge_project:
|
130
|
-
rubygems_version: 2.
|
144
|
+
rubygems_version: 2.2.1
|
131
145
|
signing_key:
|
132
146
|
specification_version: 4
|
133
147
|
summary: Fauxhai provides an easy way to mock out your ohai data for testing with
|
134
148
|
chefspec!
|
135
149
|
test_files: []
|
150
|
+
has_rdoc:
|