{"action":"created","issue":{"url":"https://api.github.com/repos/deployphp/deployer/issues/1548","repository_url":"https://api.github.com/repos/deployphp/deployer","labels_url":"https://api.github.com/repos/deployphp/deployer/issues/1548/labels{/name}","comments_url":"https://api.github.com/repos/deployphp/deployer/issues/1548/comments","events_url":"https://api.github.com/repos/deployphp/deployer/issues/1548/events","html_url":"https://github.com/deployphp/deployer/issues/1548","id":297116262,"number":1548,"title":"Getting hostname","user":{"login":"loranger","id":6014,"avatar_url":"https://avatars3.githubusercontent.com/u/6014?v=4","gravatar_id":"","url":"https://api.github.com/users/loranger","html_url":"https://github.com/loranger","followers_url":"https://api.github.com/users/loranger/followers","following_url":"https://api.github.com/users/loranger/following{/other_user}","gists_url":"https://api.github.com/users/loranger/gists{/gist_id}","starred_url":"https://api.github.com/users/loranger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loranger/subscriptions","organizations_url":"https://api.github.com/users/loranger/orgs","repos_url":"https://api.github.com/users/loranger/repos","events_url":"https://api.github.com/users/loranger/events{/privacy}","received_events_url":"https://api.github.com/users/loranger/received_events","type":"User","site_admin":false},"labels":[{"id":47395261,"url":"https://api.github.com/repos/deployphp/deployer/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/deployphp/deployer/milestones/7","html_url":"https://github.com/deployphp/deployer/milestone/7","labels_url":"https://api.github.com/repos/deployphp/deployer/milestones/7/labels","id":2946007,"number":7,"title":"7.0","description":"","creator":{"login":"antonmedv","id":141232,"avatar_url":"https://avatars0.githubusercontent.com/u/141232?v=4","gravatar_id":"","url":"https://api.github.com/users/antonmedv","html_url":"https://github.com/antonmedv","followers_url":"https://api.github.com/users/antonmedv/followers","following_url":"https://api.github.com/users/antonmedv/following{/other_user}","gists_url":"https://api.github.com/users/antonmedv/gists{/gist_id}","starred_url":"https://api.github.com/users/antonmedv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonmedv/subscriptions","organizations_url":"https://api.github.com/users/antonmedv/orgs","repos_url":"https://api.github.com/users/antonmedv/repos","events_url":"https://api.github.com/users/antonmedv/events{/privacy}","received_events_url":"https://api.github.com/users/antonmedv/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":3,"state":"open","created_at":"2017-11-29T09:59:35Z","updated_at":"2018-02-18T02:02:10Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2018-02-14T14:31:35Z","updated_at":"2018-02-18T09:54:31Z","closed_at":null,"author_association":"NONE","body":"| Q                 | A\r\n| ----------------- | ---\r\n| Issue Type        | Bug\r\n| Deployer Version  | master (6.0 but --version always return master)\r\n| Local Machine OS  | macOS\r\n| Remote Machine OS | Debian 8.10\r\n\r\n### Description \r\nIn my old recipe, I had tasks which execute commands locally, to the remote host\r\n\r\n```php\r\ntask('fetch:archives', function () {\r\n    runLocally(\"scp -r {{server.hostname}}:{{current_path}}/dump/\", 0);\r\n})->desc('Fetch archives from server');\r\n```\r\n\r\nBut it seems I can't get my hostname anymore:\r\n`{{server}}` of course does not exists anymore, but `{{hostname}}` or `get('hostname')` returns host instead of `host()->hostname()`.\r\nHow can I achieve this and by the way, get the while current host configuration ?"},"comment":{"url":"https://api.github.com/repos/deployphp/deployer/issues/comments/366504438","html_url":"https://github.com/deployphp/deployer/issues/1548#issuecomment-366504438","issue_url":"https://api.github.com/repos/deployphp/deployer/issues/1548","id":366504438,"user":{"login":"staabm","id":120441,"avatar_url":"https://avatars2.githubusercontent.com/u/120441?v=4","gravatar_id":"","url":"https://api.github.com/users/staabm","html_url":"https://github.com/staabm","followers_url":"https://api.github.com/users/staabm/followers","following_url":"https://api.github.com/users/staabm/following{/other_user}","gists_url":"https://api.github.com/users/staabm/gists{/gist_id}","starred_url":"https://api.github.com/users/staabm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staabm/subscriptions","organizations_url":"https://api.github.com/users/staabm/orgs","repos_url":"https://api.github.com/users/staabm/repos","events_url":"https://api.github.com/users/staabm/events{/privacy}","received_events_url":"https://api.github.com/users/staabm/received_events","type":"User","site_admin":false},"created_at":"2018-02-18T09:54:31Z","updated_at":"2018-02-18T09:54:31Z","author_association":"CONTRIBUTOR","body":"The fix is already open as a PR I guess?\r\nhttps://github.com/deployphp/deployer/pull/1434"}}
{"actor":{"display_login":"staabm"}}