{"action":"created","issue":{"url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/115","labels_url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/115/comments","events_url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/115/events","html_url":"https://github.com/itamae-kitchen/itamae/pull/115","id":65183734,"number":115,"title":"Add support to use ssh-config host","user":{"login":"maruware","id":1129887,"avatar_url":"https://avatars.githubusercontent.com/u/1129887?v=3","gravatar_id":"","url":"https://api.github.com/users/maruware","html_url":"https://github.com/maruware","followers_url":"https://api.github.com/users/maruware/followers","following_url":"https://api.github.com/users/maruware/following{/other_user}","gists_url":"https://api.github.com/users/maruware/gists{/gist_id}","starred_url":"https://api.github.com/users/maruware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maruware/subscriptions","organizations_url":"https://api.github.com/users/maruware/orgs","repos_url":"https://api.github.com/users/maruware/repos","events_url":"https://api.github.com/users/maruware/events{/privacy}","received_events_url":"https://api.github.com/users/maruware/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-30T10:37:08Z","updated_at":"2015-03-30T10:51:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/itamae-kitchen/itamae/pulls/115","html_url":"https://github.com/itamae-kitchen/itamae/pull/115","diff_url":"https://github.com/itamae-kitchen/itamae/pull/115.diff","patch_url":"https://github.com/itamae-kitchen/itamae/pull/115.patch"},"body":"This Pull Request will support to use host written in ssh config when executed with ssh option.\r\n```\r\nbundle exec itamae ssh -h host_in_ssh_config  recipe.rb\r\n```"},"comment":{"url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/comments/87633323","html_url":"https://github.com/itamae-kitchen/itamae/pull/115#issuecomment-87633323","issue_url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/115","id":87633323,"user":{"login":"ryotarai","id":706434,"avatar_url":"https://avatars.githubusercontent.com/u/706434?v=3","gravatar_id":"","url":"https://api.github.com/users/ryotarai","html_url":"https://github.com/ryotarai","followers_url":"https://api.github.com/users/ryotarai/followers","following_url":"https://api.github.com/users/ryotarai/following{/other_user}","gists_url":"https://api.github.com/users/ryotarai/gists{/gist_id}","starred_url":"https://api.github.com/users/ryotarai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryotarai/subscriptions","organizations_url":"https://api.github.com/users/ryotarai/orgs","repos_url":"https://api.github.com/users/ryotarai/repos","events_url":"https://api.github.com/users/ryotarai/events{/privacy}","received_events_url":"https://api.github.com/users/ryotarai/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T10:51:09Z","updated_at":"2015-03-30T10:51:09Z","body":"Good catch! I think the following is better.\r\nWhat do you think?\r\n\r\n```diff\r\n-        opts[:user] = @options[:user] || Etc.getlogin\r\n+\r\n+        # from ssh-config\r\n+        opts.merge!(Net::SSH::Config.for(@options[:host]))\r\n+        opts[:user] = @options[:user] || opts[:user] || Etc.getlogin\r\n```"}}