{"action":"opened","issue":{"url":"https://api.github.com/repos/octopress/deploy/issues/52","labels_url":"https://api.github.com/repos/octopress/deploy/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/octopress/deploy/issues/52/comments","events_url":"https://api.github.com/repos/octopress/deploy/issues/52/events","html_url":"https://github.com/octopress/deploy/issues/52","id":70935128,"number":52,"title":"@exclude and @include can only be used once","user":{"login":"jdfrens","id":6766,"avatar_url":"https://avatars.githubusercontent.com/u/6766?v=3","gravatar_id":"","url":"https://api.github.com/users/jdfrens","html_url":"https://github.com/jdfrens","followers_url":"https://api.github.com/users/jdfrens/followers","following_url":"https://api.github.com/users/jdfrens/following{/other_user}","gists_url":"https://api.github.com/users/jdfrens/gists{/gist_id}","starred_url":"https://api.github.com/users/jdfrens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdfrens/subscriptions","organizations_url":"https://api.github.com/users/jdfrens/orgs","repos_url":"https://api.github.com/users/jdfrens/repos","events_url":"https://api.github.com/users/jdfrens/events{/privacy}","received_events_url":"https://api.github.com/users/jdfrens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-25T16:38:22Z","updated_at":"2015-04-25T16:38:22Z","closed_at":null,"body":"The `rsync` command allows multiple uses of `--exclude` and `--include`, but the `_deploy.yml` only accepts one filename for `exclude:` and for `include:`.\r\n\r\nSomething like this should work:\r\n\r\n```ruby\r\nArray(@exclude).each { |e| cmd << \" --exclude #{e}\" }\r\n```\r\n\r\nThis works when `@exclude` is `nil`, a single value, or an entire array.\r\n\r\nI'd try this myself, but I fought for way too long this morning with bundler to use my version of this gem instead of the official one, and bundler won."}}