{"action":"closed","issue":{"url":"https://api.github.com/repos/drupal-composer/drupal-scaffold/issues/5","repository_url":"https://api.github.com/repos/drupal-composer/drupal-scaffold","labels_url":"https://api.github.com/repos/drupal-composer/drupal-scaffold/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/drupal-composer/drupal-scaffold/issues/5/comments","events_url":"https://api.github.com/repos/drupal-composer/drupal-scaffold/issues/5/events","html_url":"https://github.com/drupal-composer/drupal-scaffold/issues/5","id":120226279,"number":5,"title":"Simplify call to taskRsync.","user":{"login":"greg-1-anderson","id":612191,"avatar_url":"https://avatars.githubusercontent.com/u/612191?v=3","gravatar_id":"","url":"https://api.github.com/users/greg-1-anderson","html_url":"https://github.com/greg-1-anderson","followers_url":"https://api.github.com/users/greg-1-anderson/followers","following_url":"https://api.github.com/users/greg-1-anderson/following{/other_user}","gists_url":"https://api.github.com/users/greg-1-anderson/gists{/gist_id}","starred_url":"https://api.github.com/users/greg-1-anderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greg-1-anderson/subscriptions","organizations_url":"https://api.github.com/users/greg-1-anderson/orgs","repos_url":"https://api.github.com/users/greg-1-anderson/repos","events_url":"https://api.github.com/users/greg-1-anderson/events{/privacy}","received_events_url":"https://api.github.com/users/greg-1-anderson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-03T17:25:44Z","updated_at":"2016-02-22T22:30:14Z","closed_at":"2016-02-22T22:30:14Z","body":"This is a placeholder issue.  I can make a PR once https://github.com/Codegyre/Robo/pull/243 is merged.\r\n\r\nCurrent code:\r\n```\r\n    $rsync = $this->taskRsync()\r\n      ->fromPath(\"$tmpDir/drupal-8/\")\r\n      ->toPath($webroot)\r\n      ->args('-a', '-v', '-z')\r\n      ->args('--delete');\r\n    foreach ($excludes as $exclude) {\r\n      $rsync->exclude($exclude);\r\n    }\r\n    $rsync->run();\r\n```\r\nSimplified code:\r\n```\r\n    $this->taskRsync()\r\n      ->fromPath(\"$tmpDir/drupal-8/\")\r\n      ->toPath($webroot)\r\n      ->args('-a', '-v', '-z')\r\n      ->args('--delete')\r\n      ->exclude($excludes)\r\n      ->run();\r\n```"}}