{"action":"created","issue":{"url":"https://api.github.com/repos/cucumber/aruba/issues/218","labels_url":"https://api.github.com/repos/cucumber/aruba/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/cucumber/aruba/issues/218/comments","events_url":"https://api.github.com/repos/cucumber/aruba/issues/218/events","html_url":"https://github.com/cucumber/aruba/pull/218","id":45337283,"number":218,"title":"Accept single and multiple files per method invocation","user":{"login":"dg-ratiodata","id":1267524,"avatar_url":"https://avatars.githubusercontent.com/u/1267524?v=3","gravatar_id":"","url":"https://api.github.com/users/dg-ratiodata","html_url":"https://github.com/dg-ratiodata","followers_url":"https://api.github.com/users/dg-ratiodata/followers","following_url":"https://api.github.com/users/dg-ratiodata/following{/other_user}","gists_url":"https://api.github.com/users/dg-ratiodata/gists{/gist_id}","starred_url":"https://api.github.com/users/dg-ratiodata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dg-ratiodata/subscriptions","organizations_url":"https://api.github.com/users/dg-ratiodata/orgs","repos_url":"https://api.github.com/users/dg-ratiodata/repos","events_url":"https://api.github.com/users/dg-ratiodata/events{/privacy}","received_events_url":"https://api.github.com/users/dg-ratiodata/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-10-09T07:47:28Z","updated_at":"2015-01-14T15:08:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cucumber/aruba/pulls/218","html_url":"https://github.com/cucumber/aruba/pull/218","diff_url":"https://github.com/cucumber/aruba/pull/218.diff","patch_url":"https://github.com/cucumber/aruba/pull/218.patch"},"body":"There were methods which accept only a single file per method invocation and there were methods which accept multiple files (as arguments). I added functionality which makes it possible to use multiple files per method invocation. One does not need to put those file names in an array. I use the splat operator to make this possible. Though it is still possible to use an array of file names, because I \"flatten\" the file names array. The only \"drawback\" is, that it is not possible to set default values anymore if the splat operator is in use. I work around this by checking via `#nil?`.\r\n\r\n```ruby\r\ntouch_file 'file1', 'file2'\r\n```"},"comment":{"url":"https://api.github.com/repos/cucumber/aruba/issues/comments/69929403","html_url":"https://github.com/cucumber/aruba/pull/218#issuecomment-69929403","issue_url":"https://api.github.com/repos/cucumber/aruba/issues/218","id":69929403,"user":{"login":"dg-ratiodata","id":1267524,"avatar_url":"https://avatars.githubusercontent.com/u/1267524?v=3","gravatar_id":"","url":"https://api.github.com/users/dg-ratiodata","html_url":"https://github.com/dg-ratiodata","followers_url":"https://api.github.com/users/dg-ratiodata/followers","following_url":"https://api.github.com/users/dg-ratiodata/following{/other_user}","gists_url":"https://api.github.com/users/dg-ratiodata/gists{/gist_id}","starred_url":"https://api.github.com/users/dg-ratiodata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dg-ratiodata/subscriptions","organizations_url":"https://api.github.com/users/dg-ratiodata/orgs","repos_url":"https://api.github.com/users/dg-ratiodata/repos","events_url":"https://api.github.com/users/dg-ratiodata/events{/privacy}","received_events_url":"https://api.github.com/users/dg-ratiodata/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T15:08:38Z","updated_at":"2015-01-14T15:08:38Z","body":"The only thing would that the `aruba`-methods behave like there \"real world\"-pendants on the shell.\r\n\r\n```bash\r\ntouch_file 'file1', 'file2' => touch file1 file2\r\nremove_file 'file1', 'file2' => rm file1 file2\r\n```\r\n"}}