{"action":"created","comment":{"url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/comments/38621413","id":38621413,"diff_hunk":"@@ -124,13 +124,22 @@ def run\n \n     case resp[:status_text]\n     when 'success'\n+      status = 0\n       render_msg = I18n.t('serverspecs.msg.success', physical_id: physical_id)\n     when 'pending'\n+      status = 1\n       render_msg = I18n.t('serverspecs.msg.pending', physical_id: physical_id, pending_specs: resp[:message])\n     when 'failed'\n+      status = 2","path":"app/controllers/serverspecs_controller.rb","position":28,"original_position":28,"commit_id":"f1b35495c4a8d3f0296012dc909b9ac35df1ce00","original_commit_id":"f1b35495c4a8d3f0296012dc909b9ac35df1ce00","user":{"login":"Joeper214","id":2352389,"avatar_url":"https://avatars.githubusercontent.com/u/2352389?v=3","gravatar_id":"","url":"https://api.github.com/users/Joeper214","html_url":"https://github.com/Joeper214","followers_url":"https://api.github.com/users/Joeper214/followers","following_url":"https://api.github.com/users/Joeper214/following{/other_user}","gists_url":"https://api.github.com/users/Joeper214/gists{/gist_id}","starred_url":"https://api.github.com/users/Joeper214/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joeper214/subscriptions","organizations_url":"https://api.github.com/users/Joeper214/orgs","repos_url":"https://api.github.com/users/Joeper214/repos","events_url":"https://api.github.com/users/Joeper214/events{/privacy}","received_events_url":"https://api.github.com/users/Joeper214/received_events","type":"User","site_admin":false},"body":"but our model only supports integers. and we used enum.","created_at":"2015-09-03T08:02:27Z","updated_at":"2015-09-03T08:02:27Z","html_url":"https://github.com/skyarch-networks/skyhopper/pull/33#discussion_r38621413","pull_request_url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/comments/38621413"},"html":{"href":"https://github.com/skyarch-networks/skyhopper/pull/33#discussion_r38621413"},"pull_request":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/33","id":43734965,"html_url":"https://github.com/skyarch-networks/skyhopper/pull/33","diff_url":"https://github.com/skyarch-networks/skyhopper/pull/33.diff","patch_url":"https://github.com/skyarch-networks/skyhopper/pull/33.patch","issue_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/33","number":33,"state":"open","locked":false,"title":"Serverspec results","user":{"login":"Joeper214","id":2352389,"avatar_url":"https://avatars.githubusercontent.com/u/2352389?v=3","gravatar_id":"","url":"https://api.github.com/users/Joeper214","html_url":"https://github.com/Joeper214","followers_url":"https://api.github.com/users/Joeper214/followers","following_url":"https://api.github.com/users/Joeper214/following{/other_user}","gists_url":"https://api.github.com/users/Joeper214/gists{/gist_id}","starred_url":"https://api.github.com/users/Joeper214/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joeper214/subscriptions","organizations_url":"https://api.github.com/users/Joeper214/orgs","repos_url":"https://api.github.com/users/Joeper214/repos","events_url":"https://api.github.com/users/Joeper214/events{/privacy}","received_events_url":"https://api.github.com/users/Joeper214/received_events","type":"User","site_admin":false},"body":"### TODO in this PR\r\n\r\n- [x] Create ServerspecResult Model\r\n- [x] Add relations to serverspec and Resource\r\n- [x] Save serverspec Results to model.\r\n\r\n![default](https://cloud.githubusercontent.com/assets/2352389/9573199/647c5d28-4ff4-11e5-8de1-1045cf92c5a4.PNG)\r\n","created_at":"2015-08-31T06:19:11Z","updated_at":"2015-09-03T08:02:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87f6bf2e5c93f67418d21124cabb3ab2391e563d","assignee":{"login":"root-beer","id":12095319,"avatar_url":"https://avatars.githubusercontent.com/u/12095319?v=3","gravatar_id":"","url":"https://api.github.com/users/root-beer","html_url":"https://github.com/root-beer","followers_url":"https://api.github.com/users/root-beer/followers","following_url":"https://api.github.com/users/root-beer/following{/other_user}","gists_url":"https://api.github.com/users/root-beer/gists{/gist_id}","starred_url":"https://api.github.com/users/root-beer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/root-beer/subscriptions","organizations_url":"https://api.github.com/users/root-beer/orgs","repos_url":"https://api.github.com/users/root-beer/repos","events_url":"https://api.github.com/users/root-beer/events{/privacy}","received_events_url":"https://api.github.com/users/root-beer/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/33/commits","review_comments_url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/33/comments","review_comment_url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/33/comments","statuses_url":"https://api.github.com/repos/skyarch-networks/skyhopper/statuses/f1b35495c4a8d3f0296012dc909b9ac35df1ce00","head":{"label":"skyarch-networks:serverspec-results","ref":"serverspec-results","sha":"f1b35495c4a8d3f0296012dc909b9ac35df1ce00","user":{"login":"skyarch-networks","id":10970571,"avatar_url":"https://avatars.githubusercontent.com/u/10970571?v=3","gravatar_id":"","url":"https://api.github.com/users/skyarch-networks","html_url":"https://github.com/skyarch-networks","followers_url":"https://api.github.com/users/skyarch-networks/followers","following_url":"https://api.github.com/users/skyarch-networks/following{/other_user}","gists_url":"https://api.github.com/users/skyarch-networks/gists{/gist_id}","starred_url":"https://api.github.com/users/skyarch-networks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyarch-networks/subscriptions","organizations_url":"https://api.github.com/users/skyarch-networks/orgs","repos_url":"https://api.github.com/users/skyarch-networks/repos","events_url":"https://api.github.com/users/skyarch-networks/events{/privacy}","received_events_url":"https://api.github.com/users/skyarch-networks/received_events","type":"User","site_admin":false},"repo":{"id":31754199,"name":"skyhopper","full_name":"skyarch-networks/skyhopper","owner":{"login":"skyarch-networks","id":10970571,"avatar_url":"https://avatars.githubusercontent.com/u/10970571?v=3","gravatar_id":"","url":"https://api.github.com/users/skyarch-networks","html_url":"https://github.com/skyarch-networks","followers_url":"https://api.github.com/users/skyarch-networks/followers","following_url":"https://api.github.com/users/skyarch-networks/following{/other_user}","gists_url":"https://api.github.com/users/skyarch-networks/gists{/gist_id}","starred_url":"https://api.github.com/users/skyarch-networks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyarch-networks/subscriptions","organizations_url":"https://api.github.com/users/skyarch-networks/orgs","repos_url":"https://api.github.com/users/skyarch-networks/repos","events_url":"https://api.github.com/users/skyarch-networks/events{/privacy}","received_events_url":"https://api.github.com/users/skyarch-networks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/skyarch-networks/skyhopper","description":"システム自動構築ツール","fork":false,"url":"https://api.github.com/repos/skyarch-networks/skyhopper","forks_url":"https://api.github.com/repos/skyarch-networks/skyhopper/forks","keys_url":"https://api.github.com/repos/skyarch-networks/skyhopper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skyarch-networks/skyhopper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skyarch-networks/skyhopper/teams","hooks_url":"https://api.github.com/repos/skyarch-networks/skyhopper/hooks","issue_events_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/events{/number}","events_url":"https://api.github.com/repos/skyarch-networks/skyhopper/events","assignees_url":"https://api.github.com/repos/skyarch-networks/skyhopper/assignees{/user}","branches_url":"https://api.github.com/repos/skyarch-networks/skyhopper/branches{/branch}","tags_url":"https://api.github.com/repos/skyarch-networks/skyhopper/tags","blobs_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/refs{/sha}","trees_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skyarch-networks/skyhopper/statuses/{sha}","languages_url":"https://api.github.com/repos/skyarch-networks/skyhopper/languages","stargazers_url":"https://api.github.com/repos/skyarch-networks/skyhopper/stargazers","contributors_url":"https://api.github.com/repos/skyarch-networks/skyhopper/contributors","subscribers_url":"https://api.github.com/repos/skyarch-networks/skyhopper/subscribers","subscription_url":"https://api.github.com/repos/skyarch-networks/skyhopper/subscription","commits_url":"https://api.github.com/repos/skyarch-networks/skyhopper/commits{/sha}","git_commits_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/commits{/sha}","comments_url":"https://api.github.com/repos/skyarch-networks/skyhopper/comments{/number}","issue_comment_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/comments{/number}","contents_url":"https://api.github.com/repos/skyarch-networks/skyhopper/contents/{+path}","compare_url":"https://api.github.com/repos/skyarch-networks/skyhopper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skyarch-networks/skyhopper/merges","archive_url":"https://api.github.com/repos/skyarch-networks/skyhopper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skyarch-networks/skyhopper/downloads","issues_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues{/number}","pulls_url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls{/number}","milestones_url":"https://api.github.com/repos/skyarch-networks/skyhopper/milestones{/number}","notifications_url":"https://api.github.com/repos/skyarch-networks/skyhopper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skyarch-networks/skyhopper/labels{/name}","releases_url":"https://api.github.com/repos/skyarch-networks/skyhopper/releases{/id}","created_at":"2015-03-06T05:30:44Z","updated_at":"2015-08-03T06:38:16Z","pushed_at":"2015-09-03T06:48:35Z","git_url":"git://github.com/skyarch-networks/skyhopper.git","ssh_url":"git@github.com:skyarch-networks/skyhopper.git","clone_url":"https://github.com/skyarch-networks/skyhopper.git","svn_url":"https://github.com/skyarch-networks/skyhopper","homepage":"","size":6880,"stargazers_count":14,"watchers_count":14,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":14,"default_branch":"master"}},"base":{"label":"skyarch-networks:develop","ref":"develop","sha":"1438759c6e2803e440e52e01b3638048eb9b08d2","user":{"login":"skyarch-networks","id":10970571,"avatar_url":"https://avatars.githubusercontent.com/u/10970571?v=3","gravatar_id":"","url":"https://api.github.com/users/skyarch-networks","html_url":"https://github.com/skyarch-networks","followers_url":"https://api.github.com/users/skyarch-networks/followers","following_url":"https://api.github.com/users/skyarch-networks/following{/other_user}","gists_url":"https://api.github.com/users/skyarch-networks/gists{/gist_id}","starred_url":"https://api.github.com/users/skyarch-networks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyarch-networks/subscriptions","organizations_url":"https://api.github.com/users/skyarch-networks/orgs","repos_url":"https://api.github.com/users/skyarch-networks/repos","events_url":"https://api.github.com/users/skyarch-networks/events{/privacy}","received_events_url":"https://api.github.com/users/skyarch-networks/received_events","type":"User","site_admin":false},"repo":{"id":31754199,"name":"skyhopper","full_name":"skyarch-networks/skyhopper","owner":{"login":"skyarch-networks","id":10970571,"avatar_url":"https://avatars.githubusercontent.com/u/10970571?v=3","gravatar_id":"","url":"https://api.github.com/users/skyarch-networks","html_url":"https://github.com/skyarch-networks","followers_url":"https://api.github.com/users/skyarch-networks/followers","following_url":"https://api.github.com/users/skyarch-networks/following{/other_user}","gists_url":"https://api.github.com/users/skyarch-networks/gists{/gist_id}","starred_url":"https://api.github.com/users/skyarch-networks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyarch-networks/subscriptions","organizations_url":"https://api.github.com/users/skyarch-networks/orgs","repos_url":"https://api.github.com/users/skyarch-networks/repos","events_url":"https://api.github.com/users/skyarch-networks/events{/privacy}","received_events_url":"https://api.github.com/users/skyarch-networks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/skyarch-networks/skyhopper","description":"システム自動構築ツール","fork":false,"url":"https://api.github.com/repos/skyarch-networks/skyhopper","forks_url":"https://api.github.com/repos/skyarch-networks/skyhopper/forks","keys_url":"https://api.github.com/repos/skyarch-networks/skyhopper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skyarch-networks/skyhopper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skyarch-networks/skyhopper/teams","hooks_url":"https://api.github.com/repos/skyarch-networks/skyhopper/hooks","issue_events_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/events{/number}","events_url":"https://api.github.com/repos/skyarch-networks/skyhopper/events","assignees_url":"https://api.github.com/repos/skyarch-networks/skyhopper/assignees{/user}","branches_url":"https://api.github.com/repos/skyarch-networks/skyhopper/branches{/branch}","tags_url":"https://api.github.com/repos/skyarch-networks/skyhopper/tags","blobs_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/refs{/sha}","trees_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skyarch-networks/skyhopper/statuses/{sha}","languages_url":"https://api.github.com/repos/skyarch-networks/skyhopper/languages","stargazers_url":"https://api.github.com/repos/skyarch-networks/skyhopper/stargazers","contributors_url":"https://api.github.com/repos/skyarch-networks/skyhopper/contributors","subscribers_url":"https://api.github.com/repos/skyarch-networks/skyhopper/subscribers","subscription_url":"https://api.github.com/repos/skyarch-networks/skyhopper/subscription","commits_url":"https://api.github.com/repos/skyarch-networks/skyhopper/commits{/sha}","git_commits_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/commits{/sha}","comments_url":"https://api.github.com/repos/skyarch-networks/skyhopper/comments{/number}","issue_comment_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/comments{/number}","contents_url":"https://api.github.com/repos/skyarch-networks/skyhopper/contents/{+path}","compare_url":"https://api.github.com/repos/skyarch-networks/skyhopper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skyarch-networks/skyhopper/merges","archive_url":"https://api.github.com/repos/skyarch-networks/skyhopper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skyarch-networks/skyhopper/downloads","issues_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues{/number}","pulls_url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls{/number}","milestones_url":"https://api.github.com/repos/skyarch-networks/skyhopper/milestones{/number}","notifications_url":"https://api.github.com/repos/skyarch-networks/skyhopper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skyarch-networks/skyhopper/labels{/name}","releases_url":"https://api.github.com/repos/skyarch-networks/skyhopper/releases{/id}","created_at":"2015-03-06T05:30:44Z","updated_at":"2015-08-03T06:38:16Z","pushed_at":"2015-09-03T06:48:35Z","git_url":"git://github.com/skyarch-networks/skyhopper.git","ssh_url":"git@github.com:skyarch-networks/skyhopper.git","clone_url":"https://github.com/skyarch-networks/skyhopper.git","svn_url":"https://github.com/skyarch-networks/skyhopper","homepage":"","size":6880,"stargazers_count":14,"watchers_count":14,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/33"},"html":{"href":"https://github.com/skyarch-networks/skyhopper/pull/33"},"issue":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/33"},"comments":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/statuses/f1b35495c4a8d3f0296012dc909b9ac35df1ce00"}}}}