{"action":"opened","number":741,"pull_request":{"url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/741","id":37338978,"html_url":"https://github.com/test-kitchen/test-kitchen/pull/741","diff_url":"https://github.com/test-kitchen/test-kitchen/pull/741.diff","patch_url":"https://github.com/test-kitchen/test-kitchen/pull/741.patch","issue_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/741","number":741,"state":"open","locked":false,"title":"Add shell verifier","user":{"login":"sawanoboly","id":272388,"avatar_url":"https://avatars.githubusercontent.com/u/272388?v=3","gravatar_id":"","url":"https://api.github.com/users/sawanoboly","html_url":"https://github.com/sawanoboly","followers_url":"https://api.github.com/users/sawanoboly/followers","following_url":"https://api.github.com/users/sawanoboly/following{/other_user}","gists_url":"https://api.github.com/users/sawanoboly/gists{/gist_id}","starred_url":"https://api.github.com/users/sawanoboly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sawanoboly/subscriptions","organizations_url":"https://api.github.com/users/sawanoboly/orgs","repos_url":"https://api.github.com/users/sawanoboly/repos","events_url":"https://api.github.com/users/sawanoboly/events{/privacy}","received_events_url":"https://api.github.com/users/sawanoboly/received_events","type":"User","site_admin":false},"body":"Hi, I've created shell verifier. It's useful for run [infrataster](http://infrataster.net) by kitchen.\r\n\r\nFeatures:\r\n\r\n- exec shell command locally by shellout.\r\n- fail when its exit_code `!==0`\r\n- pass state via env, such as KITCHEN_HOSTNAME, KITCHEN_PORT, etc...\r\n\r\n\r\nConfigration example\r\n\r\n```\r\nplatforms:\r\n  - name: ubuntu-12.04\r\n  - name: ubuntu-14.04\r\n\r\nverifier:\r\n  name: shell\r\n  command: bundle exec rake\r\n  sleep: 5\r\n```\r\n\r\nAnd sample rake\r\n\r\n```\r\ntask :default do\r\n  puts \"Hello #{ENV['KITCHEN_HOSTNAME']}:#{ENV['KITCHEN_PORT']}\"\r\nend\r\n```\r\n\r\nResults\r\n\r\n```\r\n$ kitchen verify \r\n-----> Starting Kitchen (v1.4.1.dev)\r\n-----> Verifying <default-ubuntu-1204>...\r\n       [Shell] Verify on instance=#<Kitchen::Instance:0x007fd80e111ac8> with state={:hostname=>\"127.0.0.1\", :port=>\"2200\", :username=>\"vagrant\", :ssh_key=>\"...\", :last_action=>\"verify\"}\r\n.....\r\nHello 127.0.0.1:2200\r\n       Finished verifying <default-ubuntu-1204> (0m5.66s).\r\n-----> Verifying <default-ubuntu-1404>...\r\n       [Shell] Verify on instance=#<Kitchen::Instance:0x007fd80c41c148> with state={:hostname=>\"127.0.0.1\", :port=>\"2222\", :username=>\"vagrant\", :ssh_key=>\"...\", :last_action=>\"verify\"}\r\n.....\r\nHello 127.0.0.1:2222\r\n       Finished verifying <default-ubuntu-1404> (0m5.67s).\r\n-----> Kitchen is finished. (0m11.59s)\r\n```\r\n","created_at":"2015-06-10T09:20:48Z","updated_at":"2015-06-10T09:20:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/741/commits","review_comments_url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/741/comments","review_comment_url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/741/comments","statuses_url":"https://api.github.com/repos/test-kitchen/test-kitchen/statuses/de511f98664a4c5763ab417d684c9e160cc53dd4","head":{"label":"higanworks:verify_from_local","ref":"verify_from_local","sha":"de511f98664a4c5763ab417d684c9e160cc53dd4","user":{"login":"higanworks","id":1356239,"avatar_url":"https://avatars.githubusercontent.com/u/1356239?v=3","gravatar_id":"","url":"https://api.github.com/users/higanworks","html_url":"https://github.com/higanworks","followers_url":"https://api.github.com/users/higanworks/followers","following_url":"https://api.github.com/users/higanworks/following{/other_user}","gists_url":"https://api.github.com/users/higanworks/gists{/gist_id}","starred_url":"https://api.github.com/users/higanworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/higanworks/subscriptions","organizations_url":"https://api.github.com/users/higanworks/orgs","repos_url":"https://api.github.com/users/higanworks/repos","events_url":"https://api.github.com/users/higanworks/events{/privacy}","received_events_url":"https://api.github.com/users/higanworks/received_events","type":"Organization","site_admin":false},"repo":{"id":11522316,"name":"test-kitchen","full_name":"higanworks/test-kitchen","owner":{"login":"higanworks","id":1356239,"avatar_url":"https://avatars.githubusercontent.com/u/1356239?v=3","gravatar_id":"","url":"https://api.github.com/users/higanworks","html_url":"https://github.com/higanworks","followers_url":"https://api.github.com/users/higanworks/followers","following_url":"https://api.github.com/users/higanworks/following{/other_user}","gists_url":"https://api.github.com/users/higanworks/gists{/gist_id}","starred_url":"https://api.github.com/users/higanworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/higanworks/subscriptions","organizations_url":"https://api.github.com/users/higanworks/orgs","repos_url":"https://api.github.com/users/higanworks/repos","events_url":"https://api.github.com/users/higanworks/events{/privacy}","received_events_url":"https://api.github.com/users/higanworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/higanworks/test-kitchen","description":"Framework for running integration tests in an isolated environment","fork":true,"url":"https://api.github.com/repos/higanworks/test-kitchen","forks_url":"https://api.github.com/repos/higanworks/test-kitchen/forks","keys_url":"https://api.github.com/repos/higanworks/test-kitchen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/higanworks/test-kitchen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/higanworks/test-kitchen/teams","hooks_url":"https://api.github.com/repos/higanworks/test-kitchen/hooks","issue_events_url":"https://api.github.com/repos/higanworks/test-kitchen/issues/events{/number}","events_url":"https://api.github.com/repos/higanworks/test-kitchen/events","assignees_url":"https://api.github.com/repos/higanworks/test-kitchen/assignees{/user}","branches_url":"https://api.github.com/repos/higanworks/test-kitchen/branches{/branch}","tags_url":"https://api.github.com/repos/higanworks/test-kitchen/tags","blobs_url":"https://api.github.com/repos/higanworks/test-kitchen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/higanworks/test-kitchen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/higanworks/test-kitchen/git/refs{/sha}","trees_url":"https://api.github.com/repos/higanworks/test-kitchen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/higanworks/test-kitchen/statuses/{sha}","languages_url":"https://api.github.com/repos/higanworks/test-kitchen/languages","stargazers_url":"https://api.github.com/repos/higanworks/test-kitchen/stargazers","contributors_url":"https://api.github.com/repos/higanworks/test-kitchen/contributors","subscribers_url":"https://api.github.com/repos/higanworks/test-kitchen/subscribers","subscription_url":"https://api.github.com/repos/higanworks/test-kitchen/subscription","commits_url":"https://api.github.com/repos/higanworks/test-kitchen/commits{/sha}","git_commits_url":"https://api.github.com/repos/higanworks/test-kitchen/git/commits{/sha}","comments_url":"https://api.github.com/repos/higanworks/test-kitchen/comments{/number}","issue_comment_url":"https://api.github.com/repos/higanworks/test-kitchen/issues/comments{/number}","contents_url":"https://api.github.com/repos/higanworks/test-kitchen/contents/{+path}","compare_url":"https://api.github.com/repos/higanworks/test-kitchen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/higanworks/test-kitchen/merges","archive_url":"https://api.github.com/repos/higanworks/test-kitchen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/higanworks/test-kitchen/downloads","issues_url":"https://api.github.com/repos/higanworks/test-kitchen/issues{/number}","pulls_url":"https://api.github.com/repos/higanworks/test-kitchen/pulls{/number}","milestones_url":"https://api.github.com/repos/higanworks/test-kitchen/milestones{/number}","notifications_url":"https://api.github.com/repos/higanworks/test-kitchen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/higanworks/test-kitchen/labels{/name}","releases_url":"https://api.github.com/repos/higanworks/test-kitchen/releases{/id}","created_at":"2013-07-19T07:12:49Z","updated_at":"2015-05-02T06:33:48Z","pushed_at":"2015-06-10T09:05:02Z","git_url":"git://github.com/higanworks/test-kitchen.git","ssh_url":"git@github.com:higanworks/test-kitchen.git","clone_url":"https://github.com/higanworks/test-kitchen.git","svn_url":"https://github.com/higanworks/test-kitchen","homepage":"","size":2937,"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":"test-kitchen:master","ref":"master","sha":"07cda74cc0fb8765f29338a2fb31f9b5adac7126","user":{"login":"test-kitchen","id":5924439,"avatar_url":"https://avatars.githubusercontent.com/u/5924439?v=3","gravatar_id":"","url":"https://api.github.com/users/test-kitchen","html_url":"https://github.com/test-kitchen","followers_url":"https://api.github.com/users/test-kitchen/followers","following_url":"https://api.github.com/users/test-kitchen/following{/other_user}","gists_url":"https://api.github.com/users/test-kitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/test-kitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/test-kitchen/subscriptions","organizations_url":"https://api.github.com/users/test-kitchen/orgs","repos_url":"https://api.github.com/users/test-kitchen/repos","events_url":"https://api.github.com/users/test-kitchen/events{/privacy}","received_events_url":"https://api.github.com/users/test-kitchen/received_events","type":"Organization","site_admin":false},"repo":{"id":4137249,"name":"test-kitchen","full_name":"test-kitchen/test-kitchen","owner":{"login":"test-kitchen","id":5924439,"avatar_url":"https://avatars.githubusercontent.com/u/5924439?v=3","gravatar_id":"","url":"https://api.github.com/users/test-kitchen","html_url":"https://github.com/test-kitchen","followers_url":"https://api.github.com/users/test-kitchen/followers","following_url":"https://api.github.com/users/test-kitchen/following{/other_user}","gists_url":"https://api.github.com/users/test-kitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/test-kitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/test-kitchen/subscriptions","organizations_url":"https://api.github.com/users/test-kitchen/orgs","repos_url":"https://api.github.com/users/test-kitchen/repos","events_url":"https://api.github.com/users/test-kitchen/events{/privacy}","received_events_url":"https://api.github.com/users/test-kitchen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/test-kitchen/test-kitchen","description":"Test Kitchen is an integration tool for developing and testing infrastructure code and software on isolated target platforms.","fork":false,"url":"https://api.github.com/repos/test-kitchen/test-kitchen","forks_url":"https://api.github.com/repos/test-kitchen/test-kitchen/forks","keys_url":"https://api.github.com/repos/test-kitchen/test-kitchen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/test-kitchen/test-kitchen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/test-kitchen/test-kitchen/teams","hooks_url":"https://api.github.com/repos/test-kitchen/test-kitchen/hooks","issue_events_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/events{/number}","events_url":"https://api.github.com/repos/test-kitchen/test-kitchen/events","assignees_url":"https://api.github.com/repos/test-kitchen/test-kitchen/assignees{/user}","branches_url":"https://api.github.com/repos/test-kitchen/test-kitchen/branches{/branch}","tags_url":"https://api.github.com/repos/test-kitchen/test-kitchen/tags","blobs_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/refs{/sha}","trees_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/test-kitchen/test-kitchen/statuses/{sha}","languages_url":"https://api.github.com/repos/test-kitchen/test-kitchen/languages","stargazers_url":"https://api.github.com/repos/test-kitchen/test-kitchen/stargazers","contributors_url":"https://api.github.com/repos/test-kitchen/test-kitchen/contributors","subscribers_url":"https://api.github.com/repos/test-kitchen/test-kitchen/subscribers","subscription_url":"https://api.github.com/repos/test-kitchen/test-kitchen/subscription","commits_url":"https://api.github.com/repos/test-kitchen/test-kitchen/commits{/sha}","git_commits_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/commits{/sha}","comments_url":"https://api.github.com/repos/test-kitchen/test-kitchen/comments{/number}","issue_comment_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/comments{/number}","contents_url":"https://api.github.com/repos/test-kitchen/test-kitchen/contents/{+path}","compare_url":"https://api.github.com/repos/test-kitchen/test-kitchen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/test-kitchen/test-kitchen/merges","archive_url":"https://api.github.com/repos/test-kitchen/test-kitchen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/test-kitchen/test-kitchen/downloads","issues_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues{/number}","pulls_url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls{/number}","milestones_url":"https://api.github.com/repos/test-kitchen/test-kitchen/milestones{/number}","notifications_url":"https://api.github.com/repos/test-kitchen/test-kitchen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/test-kitchen/test-kitchen/labels{/name}","releases_url":"https://api.github.com/repos/test-kitchen/test-kitchen/releases{/id}","created_at":"2012-04-25T14:14:42Z","updated_at":"2015-06-09T18:53:03Z","pushed_at":"2015-06-10T03:40:47Z","git_url":"git://github.com/test-kitchen/test-kitchen.git","ssh_url":"git@github.com:test-kitchen/test-kitchen.git","clone_url":"https://github.com/test-kitchen/test-kitchen.git","svn_url":"https://github.com/test-kitchen/test-kitchen","homepage":"http://kitchen.ci","size":6678,"stargazers_count":793,"watchers_count":793,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":320,"mirror_url":null,"open_issues_count":183,"forks":320,"open_issues":183,"watchers":793,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/741"},"html":{"href":"https://github.com/test-kitchen/test-kitchen/pull/741"},"issue":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/741"},"comments":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/741/comments"},"review_comments":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/741/comments"},"review_comment":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/741/commits"},"statuses":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/statuses/de511f98664a4c5763ab417d684c9e160cc53dd4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":78,"deletions":0,"changed_files":1}}