fauxhai 2.0.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/CONTRIBUTING.md +2 -2
  4. data/fauxhai.gemspec +2 -1
  5. data/lib/fauxhai/platforms/amazon/2012.09.json +4 -0
  6. data/lib/fauxhai/platforms/centos/5.8.json +4 -0
  7. data/lib/fauxhai/platforms/centos/5.9.json +4 -0
  8. data/lib/fauxhai/platforms/centos/6.0.json +4 -0
  9. data/lib/fauxhai/platforms/centos/6.2.json +4 -0
  10. data/lib/fauxhai/platforms/centos/6.3.json +4 -0
  11. data/lib/fauxhai/platforms/centos/6.4.json +4 -0
  12. data/lib/fauxhai/platforms/centos/6.5.json +405 -0
  13. data/lib/fauxhai/platforms/debian/6.0.5.json +4 -0
  14. data/lib/fauxhai/platforms/debian/7.0.json +4 -0
  15. data/lib/fauxhai/platforms/debian/7.1.json +4 -0
  16. data/lib/fauxhai/platforms/debian/7.2.json +383 -0
  17. data/lib/fauxhai/platforms/debian/7.4.json +418 -0
  18. data/lib/fauxhai/platforms/fedora/18.json +4 -0
  19. data/lib/fauxhai/platforms/freebsd/9.1.json +4 -0
  20. data/lib/fauxhai/platforms/gentoo/2.1.json +4 -0
  21. data/lib/fauxhai/platforms/mac_os_x/10.6.8.json +4 -0
  22. data/lib/fauxhai/platforms/mac_os_x/10.7.4.json +4 -0
  23. data/lib/fauxhai/platforms/mac_os_x/10.8.2.json +4 -0
  24. data/lib/fauxhai/platforms/omnios/151002.json +4 -0
  25. data/lib/fauxhai/platforms/openbsd/5.4.json +220 -0
  26. data/lib/fauxhai/platforms/opensuse/12.3.json +4 -0
  27. data/lib/fauxhai/platforms/redhat/5.10.json +2783 -0
  28. data/lib/fauxhai/platforms/redhat/5.6.json +2851 -0
  29. data/lib/fauxhai/platforms/redhat/5.7.json +2954 -0
  30. data/lib/fauxhai/platforms/redhat/5.8.json +4 -0
  31. data/lib/fauxhai/platforms/redhat/5.9.json +2783 -0
  32. data/lib/fauxhai/platforms/redhat/6.0.json +2516 -0
  33. data/lib/fauxhai/platforms/redhat/6.1.json +2520 -0
  34. data/lib/fauxhai/platforms/redhat/6.2.json +2587 -0
  35. data/lib/fauxhai/platforms/redhat/6.3.json +2119 -606
  36. data/lib/fauxhai/platforms/redhat/6.4.json +312 -0
  37. data/lib/fauxhai/platforms/redhat/6.5.json +312 -0
  38. data/lib/fauxhai/platforms/smartos/joyent_20130111T180733Z.json +4 -0
  39. data/lib/fauxhai/platforms/suse/11.03.json +4 -0
  40. data/lib/fauxhai/platforms/ubuntu/10.04.json +4 -0
  41. data/lib/fauxhai/platforms/ubuntu/12.04.json +4 -0
  42. data/lib/fauxhai/platforms/ubuntu/13.04.json +4 -0
  43. data/lib/fauxhai/platforms/windows/2008R2.json +4 -0
  44. data/lib/fauxhai/runner.rb +9 -1
  45. metadata +19 -4
@@ -1261,6 +1261,10 @@
1261
1261
  "command": {
1262
1262
  "ps": "ps -ef"
1263
1263
  },
1264
+ "cpu": {
1265
+ "real": 1,
1266
+ "total": 1
1267
+ },
1264
1268
  "ohai_time": 1367648677.2568352,
1265
1269
  "dmi": {
1266
1270
  },
@@ -333,6 +333,10 @@
333
333
  "string_2": "vboxRev_86992"
334
334
  }
335
335
  },
336
+ "cpu": {
337
+ "real": 1,
338
+ "total": 1
339
+ },
336
340
  "ohai_time": 1377780586.162877,
337
341
  "command": {
338
342
  "ps": "ps -ef"
@@ -121,6 +121,10 @@
121
121
  "command": {
122
122
  "ps": "ps -ef"
123
123
  },
124
+ "cpu": {
125
+ "real": 1,
126
+ "total": 1
127
+ },
124
128
  "ohai_time": 1341252530.8571746,
125
129
  "dmi": {
126
130
  "dmidecode_version": "2.9",
@@ -166,6 +166,10 @@
166
166
  "release": "12.04",
167
167
  "id": "Ubuntu"
168
168
  },
169
+ "cpu": {
170
+ "real": 1,
171
+ "total": 1
172
+ },
169
173
  "ohai_time": 1344011611.7613227,
170
174
  "filesystem": {
171
175
  "/dev/mapper/precise64-root": {
@@ -2308,6 +2308,10 @@
2308
2308
  "command": {
2309
2309
  "ps": "ps -ef"
2310
2310
  },
2311
+ "cpu": {
2312
+ "real": 1,
2313
+ "total": 1
2314
+ },
2311
2315
  "ohai_time": 1386871637.8768468,
2312
2316
  "filesystem": {
2313
2317
  "/dev/mapper/vagrant--vg-root": {
@@ -6000,6 +6000,10 @@
6000
6000
  },
6001
6001
  "dmi": {
6002
6002
  },
6003
+ "cpu": {
6004
+ "real": 1,
6005
+ "total": 1
6006
+ },
6003
6007
  "ohai_time": 1352482076.740009,
6004
6008
  "platform": "windows",
6005
6009
  "platform_version": "6.1.7600",
@@ -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.1
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: 2013-12-12 00:00:00.000000000 Z
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.0.14
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: