{"action":"created","issue":{"url":"https://api.github.com/repos/heroku/platform-api/issues/29","labels_url":"https://api.github.com/repos/heroku/platform-api/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/heroku/platform-api/issues/29/comments","events_url":"https://api.github.com/repos/heroku/platform-api/issues/29/events","html_url":"https://github.com/heroku/platform-api/issues/29","id":88818156,"number":29,"title":"Restart all dynos not working","user":{"login":"plicjo","id":7145362,"avatar_url":"https://avatars.githubusercontent.com/u/7145362?v=3","gravatar_id":"","url":"https://api.github.com/users/plicjo","html_url":"https://github.com/plicjo","followers_url":"https://api.github.com/users/plicjo/followers","following_url":"https://api.github.com/users/plicjo/following{/other_user}","gists_url":"https://api.github.com/users/plicjo/gists{/gist_id}","starred_url":"https://api.github.com/users/plicjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plicjo/subscriptions","organizations_url":"https://api.github.com/users/plicjo/orgs","repos_url":"https://api.github.com/users/plicjo/repos","events_url":"https://api.github.com/users/plicjo/events{/privacy}","received_events_url":"https://api.github.com/users/plicjo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-16T19:32:34Z","updated_at":"2015-06-16T19:52:09Z","closed_at":"2015-06-16T19:52:09Z","body":"When I pass a restart_all command to the `Dyno` class, the app doesn't get restarted, but it does return an empty hash.\r\n\r\n```\r\nclass HerokuWrapper\r\n\r\n    attr_reader :api_key, :app_name, :heroku_api, :key_extractor\r\n\r\n    def initialize(app_name)\r\n      @app_name      = app_name\r\n      @key_extractor = LocalApiKeyExtractor\r\n      @api_key          = key_extractor.get_credentials\r\n      @heroku_api    = PlatformAPI.connect_oauth(api_key)\r\n    end\r\n\r\n    def app_restart\r\n      client(:dyno, :restart_all, app_name)\r\n    end\r\n\r\n    private\r\n\r\n    def client(delegatee, method, *args)\r\n      heroku_api.public_send(delegatee).public_send(method, *args)\r\n    end\r\n\r\n  end\r\nend\r\n```\r\n\r\n\r\nEssentially I'm running `@client.dyno.restart_all(app_id_or_app_name)` to no avail.\r\n\r\nWhen I try to restart all dynos, the app doesn't get restarted, but it does return an empty hash `{}`.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/heroku/platform-api/issues/comments/112549643","html_url":"https://github.com/heroku/platform-api/issues/29#issuecomment-112549643","issue_url":"https://api.github.com/repos/heroku/platform-api/issues/29","id":112549643,"user":{"login":"plicjo","id":7145362,"avatar_url":"https://avatars.githubusercontent.com/u/7145362?v=3","gravatar_id":"","url":"https://api.github.com/users/plicjo","html_url":"https://github.com/plicjo","followers_url":"https://api.github.com/users/plicjo/followers","following_url":"https://api.github.com/users/plicjo/following{/other_user}","gists_url":"https://api.github.com/users/plicjo/gists{/gist_id}","starred_url":"https://api.github.com/users/plicjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plicjo/subscriptions","organizations_url":"https://api.github.com/users/plicjo/orgs","repos_url":"https://api.github.com/users/plicjo/repos","events_url":"https://api.github.com/users/plicjo/events{/privacy}","received_events_url":"https://api.github.com/users/plicjo/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T19:52:09Z","updated_at":"2015-06-16T19:52:09Z","body":"Nevermind, I'm wrong."}}