{"action":"created","issue":{"url":"https://api.github.com/repos/redding/dk-abdeploy/issues/11","repository_url":"https://api.github.com/repos/redding/dk-abdeploy","labels_url":"https://api.github.com/repos/redding/dk-abdeploy/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/redding/dk-abdeploy/issues/11/comments","events_url":"https://api.github.com/repos/redding/dk-abdeploy/issues/11/events","html_url":"https://github.com/redding/dk-abdeploy/pull/11","id":170753459,"number":11,"title":"rework the cmd to readlink the current release as an ssh cmd","user":{"login":"kellyredding","id":82110,"avatar_url":"https://avatars.githubusercontent.com/u/82110?v=3","gravatar_id":"","url":"https://api.github.com/users/kellyredding","html_url":"https://github.com/kellyredding","followers_url":"https://api.github.com/users/kellyredding/followers","following_url":"https://api.github.com/users/kellyredding/following{/other_user}","gists_url":"https://api.github.com/users/kellyredding/gists{/gist_id}","starred_url":"https://api.github.com/users/kellyredding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kellyredding/subscriptions","organizations_url":"https://api.github.com/users/kellyredding/orgs","repos_url":"https://api.github.com/users/kellyredding/repos","events_url":"https://api.github.com/users/kellyredding/events{/privacy}","received_events_url":"https://api.github.com/users/kellyredding/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-11T21:36:50Z","updated_at":"2016-08-11T22:02:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/redding/dk-abdeploy/pulls/11","html_url":"https://github.com/redding/dk-abdeploy/pull/11","diff_url":"https://github.com/redding/dk-abdeploy/pull/11.diff","patch_url":"https://github.com/redding/dk-abdeploy/pull/11.patch"},"body":"Ssh cmds now have stdout attrs.  This value will be the first non\r\nempty output from the hosts the ssh cmd runs on.  In this case,\r\nwe are only running the cmd on 1 host so it is identical to\r\nmanually building the ssh cmd like we did before.\r\n\r\nThis also updates the logic to default to the 'B' release dir if\r\nthe readlink stdout is empty.  This is a valid case - it happens\r\nif this is the initial deploy.  This means that initial deploys\r\nwill always deploy to the A release dir (as was the original\r\nintent).\r\n\r\nFinally, this makes the readlink cmd str a class method like the\r\ngit reset cmd str so it can be used for stubbing, etc.\r\n\r\nI noticed all this b/c I was trying to use the new cleanup task\r\nand it kept saying the current release dir was empty.  That was\r\nb/c this updated task would never set a value on the initial\r\ndeploy.  This fixes that issue.\r\n\r\n@jcredding ready for review."},"comment":{"url":"https://api.github.com/repos/redding/dk-abdeploy/issues/comments/239307059","html_url":"https://github.com/redding/dk-abdeploy/pull/11#issuecomment-239307059","issue_url":"https://api.github.com/repos/redding/dk-abdeploy/issues/11","id":239307059,"user":{"login":"jcredding","id":85966,"avatar_url":"https://avatars.githubusercontent.com/u/85966?v=3","gravatar_id":"","url":"https://api.github.com/users/jcredding","html_url":"https://github.com/jcredding","followers_url":"https://api.github.com/users/jcredding/followers","following_url":"https://api.github.com/users/jcredding/following{/other_user}","gists_url":"https://api.github.com/users/jcredding/gists{/gist_id}","starred_url":"https://api.github.com/users/jcredding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcredding/subscriptions","organizations_url":"https://api.github.com/users/jcredding/orgs","repos_url":"https://api.github.com/users/jcredding/repos","events_url":"https://api.github.com/users/jcredding/events{/privacy}","received_events_url":"https://api.github.com/users/jcredding/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T22:02:03Z","updated_at":"2016-08-11T22:02:03Z","body":"@kellyredding - Makes sense :boom:"}}
{"actor":{"display_login":"jcredding"}}