{"action":"opened","number":324,"pull_request":{"url":"https://api.github.com/repos/serverspec/specinfra/pulls/324","id":29870154,"html_url":"https://github.com/serverspec/specinfra/pull/324","diff_url":"https://github.com/serverspec/specinfra/pull/324.diff","patch_url":"https://github.com/serverspec/specinfra/pull/324.patch","issue_url":"https://api.github.com/repos/serverspec/specinfra/issues/324","number":324,"state":"open","locked":false,"title":"Support host_inventory['cpu']","user":{"login":"marcy-terui","id":4560264,"avatar_url":"https://avatars.githubusercontent.com/u/4560264?v=3","gravatar_id":"","url":"https://api.github.com/users/marcy-terui","html_url":"https://github.com/marcy-terui","followers_url":"https://api.github.com/users/marcy-terui/followers","following_url":"https://api.github.com/users/marcy-terui/following{/other_user}","gists_url":"https://api.github.com/users/marcy-terui/gists{/gist_id}","starred_url":"https://api.github.com/users/marcy-terui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcy-terui/subscriptions","organizations_url":"https://api.github.com/users/marcy-terui/orgs","repos_url":"https://api.github.com/users/marcy-terui/repos","events_url":"https://api.github.com/users/marcy-terui/events{/privacy}","received_events_url":"https://api.github.com/users/marcy-terui/received_events","type":"User","site_admin":false},"body":"Add cpu information to `host_inventory` (like Ohai)\r\n\r\nExample:\r\n```shell\r\n$ cat /proc/cpuinfo\r\nprocessor\t: 0\r\nvendor_id\t: GenuineIntel\r\ncpu family\t: 6\r\nmodel\t\t: 60\r\nmodel name\t: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz\r\nstepping\t: 3\r\nmicrocode\t: 0x19\r\ncpu MHz\t\t: 3132.076\r\ncache size\t: 6144 KB\r\nphysical id\t: 0\r\nsiblings\t: 2\r\ncore id\t\t: 0\r\ncpu cores\t: 2\r\napicid\t\t: 0\r\ninitial apicid\t: 0\r\nfpu\t\t: yes\r\nfpu_exception\t: yes\r\ncpuid level\t: 5\r\nwp\t\t: yes\r\nflags\t\t: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl pni ssse3 lahf_lm\r\nbogomips\t: 6264.15\r\nclflush size\t: 64\r\ncache_alignment\t: 64\r\naddress sizes\t: 39 bits physical, 48 bits virtual\r\npower management:\r\n\r\nprocessor\t: 1\r\nvendor_id\t: GenuineIntel\r\ncpu family\t: 6\r\nmodel\t\t: 60\r\nmodel name\t: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz\r\nstepping\t: 3\r\nmicrocode\t: 0x19\r\ncpu MHz\t\t: 3132.076\r\ncache size\t: 6144 KB\r\nphysical id\t: 0\r\nsiblings\t: 2\r\ncore id\t\t: 1\r\ncpu cores\t: 2\r\napicid\t\t: 1\r\ninitial apicid\t: 1\r\nfpu\t\t: yes\r\nfpu_exception\t: yes\r\ncpuid level\t: 5\r\nwp\t\t: yes\r\nflags\t\t: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl pni ssse3 lahf_lm\r\nbogomips\t: 6264.15\r\nclflush size\t: 64\r\ncache_alignment\t: 64\r\naddress sizes\t: 39 bits physical, 48 bits virtual\r\npower management:\r\n```\r\n\r\n```shell\r\n[2] pry(main)> host_inventory['cpu']\r\n=> {\"total\"=>\"2\",\r\n \"0\"=>\r\n  {\"vendor_id\"=>\"GenuineIntel\",\r\n   \"cpu_family\"=>\"6\",\r\n   \"model\"=>\"60\",\r\n   \"model_name\"=>\"Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz\",\r\n   \"stepping\"=>\"3\",\r\n   \"microcode\"=>\"0x19\",\r\n   \"cpu_mhz\"=>\"3132.076\",\r\n   \"cache_size\"=>\"6144KB\",\r\n   \"physical_id\"=>\"0\",\r\n   \"siblings\"=>\"2\",\r\n   \"core_id\"=>\"0\",\r\n   \"cpu_cores\"=>\"2\",\r\n   \"apicid\"=>\"0\",\r\n   \"initial_apicid\"=>\"0\",\r\n   \"fpu\"=>\"yes\",\r\n   \"fpu_exception\"=>\"yes\",\r\n   \"cpuid_level\"=>\"5\",\r\n   \"wp\"=>\"yes\",\r\n   \"flags\"=>\r\n    [\"fpu\",\r\n     \"vme\",\r\n     \"de\",\r\n     \"pse\",\r\n     \"tsc\",\r\n     \"msr\",\r\n     \"pae\",\r\n     \"mce\",\r\n     \"cx8\",\r\n     \"apic\",\r\n     \"sep\",\r\n     \"mtrr\",\r\n     \"pge\",\r\n     \"mca\",\r\n     \"cmov\",\r\n     \"pat\",\r\n     \"pse36\",\r\n     \"clflush\",\r\n     \"mmx\",\r\n     \"fxsr\",\r\n     \"sse\",\r\n     \"sse2\",\r\n     \"ht\",\r\n     \"syscall\",\r\n     \"nx\",\r\n     \"rdtscp\",\r\n     \"lm\",\r\n     \"constant_tsc\",\r\n     \"rep_good\",\r\n    \"nopl\",\r\n     \"pni\",\r\n     \"ssse3\",\r\n     \"lahf_lm\"],\r\n   \"bogomips\"=>\"6264.15\",\r\n   \"clflush_size\"=>\"64\",\r\n   \"cache_alignment\"=>\"64\",\r\n   \"address_sizes\"=>\"39 bits physical, 48 bits virtual\",\r\n   \"power_management\"=>\"\"},\r\n \"1\"=>\r\n  {\"vendor_id\"=>\"GenuineIntel\",\r\n   \"cpu_family\"=>\"6\",\r\n   \"model\"=>\"60\",\r\n   \"model_name\"=>\"Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz\",\r\n   \"stepping\"=>\"3\",\r\n   \"microcode\"=>\"0x19\",\r\n   \"cpu_mhz\"=>\"3132.076\",\r\n   \"cache_size\"=>\"6144KB\",\r\n   \"physical_id\"=>\"0\",\r\n   \"siblings\"=>\"2\",\r\n   \"core_id\"=>\"1\",\r\n   \"cpu_cores\"=>\"2\",\r\n   \"apicid\"=>\"1\",\r\n   \"initial_apicid\"=>\"1\",\r\n   \"fpu\"=>\"yes\",\r\n   \"fpu_exception\"=>\"yes\",\r\n   \"cpuid_level\"=>\"5\",\r\n   \"wp\"=>\"yes\",\r\n   \"flags\"=>\r\n    [\"fpu\",\r\n     \"vme\",\r\n     \"de\",\r\n     \"pse\",\r\n     \"tsc\",\r\n     \"msr\",\r\n     \"pae\",\r\n     \"mce\",\r\n     \"cx8\",\r\n     \"apic\",\r\n     \"sep\",\r\n     \"mtrr\",\r\n     \"pge\",\r\n     \"mca\",\r\n     \"cmov\",\r\n     \"pat\",\r\n     \"pse36\",\r\n     \"clflush\",\r\n     \"mmx\",\r\n     \"fxsr\",\r\n     \"sse\",\r\n     \"sse2\",\r\n     \"ht\",\r\n     \"syscall\",\r\n     \"nx\",\r\n     \"rdtscp\",\r\n     \"lm\",\r\n     \"constant_tsc\",\r\n     \"rep_good\",\r\n     \"nopl\",\r\n     \"pni\",\r\n     \"ssse3\",\r\n     \"lahf_lm\"],\r\n   \"bogomips\"=>\"6264.15\",\r\n   \"clflush_size\"=>\"64\",\r\n   \"cache_alignment\"=>\"64\",\r\n   \"address_sizes\"=>\"39 bits physical, 48 bits virtual\",\r\n   \"power_management\"=>\"\"}}\r\n```","created_at":"2015-02-24T04:24:29Z","updated_at":"2015-02-24T04:24:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a68a12cc8b2b47a7720de13e27a71d91f8291efd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/serverspec/specinfra/pulls/324/commits","review_comments_url":"https://api.github.com/repos/serverspec/specinfra/pulls/324/comments","review_comment_url":"https://api.github.com/repos/serverspec/specinfra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/serverspec/specinfra/issues/324/comments","statuses_url":"https://api.github.com/repos/serverspec/specinfra/statuses/1e8440fce0e5e114a3537cdc093149a62464ab84","head":{"label":"marcy-terui:inventory_cpu","ref":"inventory_cpu","sha":"1e8440fce0e5e114a3537cdc093149a62464ab84","user":{"login":"marcy-terui","id":4560264,"avatar_url":"https://avatars.githubusercontent.com/u/4560264?v=3","gravatar_id":"","url":"https://api.github.com/users/marcy-terui","html_url":"https://github.com/marcy-terui","followers_url":"https://api.github.com/users/marcy-terui/followers","following_url":"https://api.github.com/users/marcy-terui/following{/other_user}","gists_url":"https://api.github.com/users/marcy-terui/gists{/gist_id}","starred_url":"https://api.github.com/users/marcy-terui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcy-terui/subscriptions","organizations_url":"https://api.github.com/users/marcy-terui/orgs","repos_url":"https://api.github.com/users/marcy-terui/repos","events_url":"https://api.github.com/users/marcy-terui/events{/privacy}","received_events_url":"https://api.github.com/users/marcy-terui/received_events","type":"User","site_admin":false},"repo":{"id":31239255,"name":"specinfra","full_name":"marcy-terui/specinfra","owner":{"login":"marcy-terui","id":4560264,"avatar_url":"https://avatars.githubusercontent.com/u/4560264?v=3","gravatar_id":"","url":"https://api.github.com/users/marcy-terui","html_url":"https://github.com/marcy-terui","followers_url":"https://api.github.com/users/marcy-terui/followers","following_url":"https://api.github.com/users/marcy-terui/following{/other_user}","gists_url":"https://api.github.com/users/marcy-terui/gists{/gist_id}","starred_url":"https://api.github.com/users/marcy-terui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcy-terui/subscriptions","organizations_url":"https://api.github.com/users/marcy-terui/orgs","repos_url":"https://api.github.com/users/marcy-terui/repos","events_url":"https://api.github.com/users/marcy-terui/events{/privacy}","received_events_url":"https://api.github.com/users/marcy-terui/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marcy-terui/specinfra","description":"Command Execution Framework for serverspec, itamae and so on","fork":true,"url":"https://api.github.com/repos/marcy-terui/specinfra","forks_url":"https://api.github.com/repos/marcy-terui/specinfra/forks","keys_url":"https://api.github.com/repos/marcy-terui/specinfra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marcy-terui/specinfra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marcy-terui/specinfra/teams","hooks_url":"https://api.github.com/repos/marcy-terui/specinfra/hooks","issue_events_url":"https://api.github.com/repos/marcy-terui/specinfra/issues/events{/number}","events_url":"https://api.github.com/repos/marcy-terui/specinfra/events","assignees_url":"https://api.github.com/repos/marcy-terui/specinfra/assignees{/user}","branches_url":"https://api.github.com/repos/marcy-terui/specinfra/branches{/branch}","tags_url":"https://api.github.com/repos/marcy-terui/specinfra/tags","blobs_url":"https://api.github.com/repos/marcy-terui/specinfra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marcy-terui/specinfra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marcy-terui/specinfra/git/refs{/sha}","trees_url":"https://api.github.com/repos/marcy-terui/specinfra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marcy-terui/specinfra/statuses/{sha}","languages_url":"https://api.github.com/repos/marcy-terui/specinfra/languages","stargazers_url":"https://api.github.com/repos/marcy-terui/specinfra/stargazers","contributors_url":"https://api.github.com/repos/marcy-terui/specinfra/contributors","subscribers_url":"https://api.github.com/repos/marcy-terui/specinfra/subscribers","subscription_url":"https://api.github.com/repos/marcy-terui/specinfra/subscription","commits_url":"https://api.github.com/repos/marcy-terui/specinfra/commits{/sha}","git_commits_url":"https://api.github.com/repos/marcy-terui/specinfra/git/commits{/sha}","comments_url":"https://api.github.com/repos/marcy-terui/specinfra/comments{/number}","issue_comment_url":"https://api.github.com/repos/marcy-terui/specinfra/issues/comments{/number}","contents_url":"https://api.github.com/repos/marcy-terui/specinfra/contents/{+path}","compare_url":"https://api.github.com/repos/marcy-terui/specinfra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marcy-terui/specinfra/merges","archive_url":"https://api.github.com/repos/marcy-terui/specinfra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marcy-terui/specinfra/downloads","issues_url":"https://api.github.com/repos/marcy-terui/specinfra/issues{/number}","pulls_url":"https://api.github.com/repos/marcy-terui/specinfra/pulls{/number}","milestones_url":"https://api.github.com/repos/marcy-terui/specinfra/milestones{/number}","notifications_url":"https://api.github.com/repos/marcy-terui/specinfra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marcy-terui/specinfra/labels{/name}","releases_url":"https://api.github.com/repos/marcy-terui/specinfra/releases{/id}","created_at":"2015-02-24T01:19:36Z","updated_at":"2015-02-24T01:19:37Z","pushed_at":"2015-02-24T04:18:13Z","git_url":"git://github.com/marcy-terui/specinfra.git","ssh_url":"git@github.com:marcy-terui/specinfra.git","clone_url":"https://github.com/marcy-terui/specinfra.git","svn_url":"https://github.com/marcy-terui/specinfra","homepage":"http://serverspec.org/","size":4366,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"serverspec:master","ref":"master","sha":"7cb5adb9528720a42d11d5b5436a2ce08cbd722d","user":{"login":"serverspec","id":3970679,"avatar_url":"https://avatars.githubusercontent.com/u/3970679?v=3","gravatar_id":"","url":"https://api.github.com/users/serverspec","html_url":"https://github.com/serverspec","followers_url":"https://api.github.com/users/serverspec/followers","following_url":"https://api.github.com/users/serverspec/following{/other_user}","gists_url":"https://api.github.com/users/serverspec/gists{/gist_id}","starred_url":"https://api.github.com/users/serverspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serverspec/subscriptions","organizations_url":"https://api.github.com/users/serverspec/orgs","repos_url":"https://api.github.com/users/serverspec/repos","events_url":"https://api.github.com/users/serverspec/events{/privacy}","received_events_url":"https://api.github.com/users/serverspec/received_events","type":"Organization","site_admin":false},"repo":{"id":14747279,"name":"specinfra","full_name":"serverspec/specinfra","owner":{"login":"serverspec","id":3970679,"avatar_url":"https://avatars.githubusercontent.com/u/3970679?v=3","gravatar_id":"","url":"https://api.github.com/users/serverspec","html_url":"https://github.com/serverspec","followers_url":"https://api.github.com/users/serverspec/followers","following_url":"https://api.github.com/users/serverspec/following{/other_user}","gists_url":"https://api.github.com/users/serverspec/gists{/gist_id}","starred_url":"https://api.github.com/users/serverspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serverspec/subscriptions","organizations_url":"https://api.github.com/users/serverspec/orgs","repos_url":"https://api.github.com/users/serverspec/repos","events_url":"https://api.github.com/users/serverspec/events{/privacy}","received_events_url":"https://api.github.com/users/serverspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/serverspec/specinfra","description":"Command Execution Framework for serverspec, itamae and so on","fork":false,"url":"https://api.github.com/repos/serverspec/specinfra","forks_url":"https://api.github.com/repos/serverspec/specinfra/forks","keys_url":"https://api.github.com/repos/serverspec/specinfra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/serverspec/specinfra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/serverspec/specinfra/teams","hooks_url":"https://api.github.com/repos/serverspec/specinfra/hooks","issue_events_url":"https://api.github.com/repos/serverspec/specinfra/issues/events{/number}","events_url":"https://api.github.com/repos/serverspec/specinfra/events","assignees_url":"https://api.github.com/repos/serverspec/specinfra/assignees{/user}","branches_url":"https://api.github.com/repos/serverspec/specinfra/branches{/branch}","tags_url":"https://api.github.com/repos/serverspec/specinfra/tags","blobs_url":"https://api.github.com/repos/serverspec/specinfra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/serverspec/specinfra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/serverspec/specinfra/git/refs{/sha}","trees_url":"https://api.github.com/repos/serverspec/specinfra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/serverspec/specinfra/statuses/{sha}","languages_url":"https://api.github.com/repos/serverspec/specinfra/languages","stargazers_url":"https://api.github.com/repos/serverspec/specinfra/stargazers","contributors_url":"https://api.github.com/repos/serverspec/specinfra/contributors","subscribers_url":"https://api.github.com/repos/serverspec/specinfra/subscribers","subscription_url":"https://api.github.com/repos/serverspec/specinfra/subscription","commits_url":"https://api.github.com/repos/serverspec/specinfra/commits{/sha}","git_commits_url":"https://api.github.com/repos/serverspec/specinfra/git/commits{/sha}","comments_url":"https://api.github.com/repos/serverspec/specinfra/comments{/number}","issue_comment_url":"https://api.github.com/repos/serverspec/specinfra/issues/comments{/number}","contents_url":"https://api.github.com/repos/serverspec/specinfra/contents/{+path}","compare_url":"https://api.github.com/repos/serverspec/specinfra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/serverspec/specinfra/merges","archive_url":"https://api.github.com/repos/serverspec/specinfra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/serverspec/specinfra/downloads","issues_url":"https://api.github.com/repos/serverspec/specinfra/issues{/number}","pulls_url":"https://api.github.com/repos/serverspec/specinfra/pulls{/number}","milestones_url":"https://api.github.com/repos/serverspec/specinfra/milestones{/number}","notifications_url":"https://api.github.com/repos/serverspec/specinfra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/serverspec/specinfra/labels{/name}","releases_url":"https://api.github.com/repos/serverspec/specinfra/releases{/id}","created_at":"2013-11-27T13:08:43Z","updated_at":"2015-02-23T05:13:18Z","pushed_at":"2015-02-23T01:48:50Z","git_url":"git://github.com/serverspec/specinfra.git","ssh_url":"git@github.com:serverspec/specinfra.git","clone_url":"https://github.com/serverspec/specinfra.git","svn_url":"https://github.com/serverspec/specinfra","homepage":"http://serverspec.org/","size":4366,"stargazers_count":119,"watchers_count":119,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":146,"mirror_url":null,"open_issues_count":4,"forks":146,"open_issues":4,"watchers":119,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/serverspec/specinfra/pulls/324"},"html":{"href":"https://github.com/serverspec/specinfra/pull/324"},"issue":{"href":"https://api.github.com/repos/serverspec/specinfra/issues/324"},"comments":{"href":"https://api.github.com/repos/serverspec/specinfra/issues/324/comments"},"review_comments":{"href":"https://api.github.com/repos/serverspec/specinfra/pulls/324/comments"},"review_comment":{"href":"https://api.github.com/repos/serverspec/specinfra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/serverspec/specinfra/pulls/324/commits"},"statuses":{"href":"https://api.github.com/repos/serverspec/specinfra/statuses/1e8440fce0e5e114a3537cdc093149a62464ab84"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":211,"deletions":1,"changed_files":7}}