{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/Bladrak/capistrano-rsync/pulls/4","id":38770051,"html_url":"https://github.com/Bladrak/capistrano-rsync/pull/4","diff_url":"https://github.com/Bladrak/capistrano-rsync/pull/4.diff","patch_url":"https://github.com/Bladrak/capistrano-rsync/pull/4.patch","issue_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/issues/4","number":4,"state":"open","locked":false,"title":"Avoid the double launch of the commands due to require in addition to scm","user":{"login":"vincentlepot","id":11851527,"avatar_url":"https://avatars.githubusercontent.com/u/11851527?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentlepot","html_url":"https://github.com/vincentlepot","followers_url":"https://api.github.com/users/vincentlepot/followers","following_url":"https://api.github.com/users/vincentlepot/following{/other_user}","gists_url":"https://api.github.com/users/vincentlepot/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentlepot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentlepot/subscriptions","organizations_url":"https://api.github.com/users/vincentlepot/orgs","repos_url":"https://api.github.com/users/vincentlepot/repos","events_url":"https://api.github.com/users/vincentlepot/events{/privacy}","received_events_url":"https://api.github.com/users/vincentlepot/received_events","type":"User","site_admin":false},"body":"To avoid the double launch of commands, and set this up like any other scm, I propose to:\r\n\r\n* remove the require from Capfile / deploy.rb\r\n* use set_if_empty for default values to avoid values overriding (since no more launch of load:defaults in this mode)\r\n* add in the documentation a workaround for the existence of the rsync:stage task when parsing deploly.rb (using an empty task).\r\n\r\nThis solved the problem for me. Don't hesitate to comment of course.","created_at":"2015-06-29T12:51:06Z","updated_at":"2015-06-29T12:51:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/pulls/4/commits","review_comments_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/pulls/4/comments","review_comment_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/issues/4/comments","statuses_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/statuses/533d45950daa62d4c00165c75db3aee8e7f77b14","head":{"label":"vincentlepot:avoid_double_command_execution","ref":"avoid_double_command_execution","sha":"533d45950daa62d4c00165c75db3aee8e7f77b14","user":{"login":"vincentlepot","id":11851527,"avatar_url":"https://avatars.githubusercontent.com/u/11851527?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentlepot","html_url":"https://github.com/vincentlepot","followers_url":"https://api.github.com/users/vincentlepot/followers","following_url":"https://api.github.com/users/vincentlepot/following{/other_user}","gists_url":"https://api.github.com/users/vincentlepot/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentlepot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentlepot/subscriptions","organizations_url":"https://api.github.com/users/vincentlepot/orgs","repos_url":"https://api.github.com/users/vincentlepot/repos","events_url":"https://api.github.com/users/vincentlepot/events{/privacy}","received_events_url":"https://api.github.com/users/vincentlepot/received_events","type":"User","site_admin":false},"repo":{"id":38240288,"name":"capistrano-rsync","full_name":"vincentlepot/capistrano-rsync","owner":{"login":"vincentlepot","id":11851527,"avatar_url":"https://avatars.githubusercontent.com/u/11851527?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentlepot","html_url":"https://github.com/vincentlepot","followers_url":"https://api.github.com/users/vincentlepot/followers","following_url":"https://api.github.com/users/vincentlepot/following{/other_user}","gists_url":"https://api.github.com/users/vincentlepot/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentlepot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentlepot/subscriptions","organizations_url":"https://api.github.com/users/vincentlepot/orgs","repos_url":"https://api.github.com/users/vincentlepot/repos","events_url":"https://api.github.com/users/vincentlepot/events{/privacy}","received_events_url":"https://api.github.com/users/vincentlepot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vincentlepot/capistrano-rsync","description":"Deploy with Rsync from any local (or remote) repository when using Capistrano. Capistrano v3 ready!","fork":true,"url":"https://api.github.com/repos/vincentlepot/capistrano-rsync","forks_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/forks","keys_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/teams","hooks_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/hooks","issue_events_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/issues/events{/number}","events_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/events","assignees_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/assignees{/user}","branches_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/branches{/branch}","tags_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/tags","blobs_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/git/refs{/sha}","trees_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/statuses/{sha}","languages_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/languages","stargazers_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/stargazers","contributors_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/contributors","subscribers_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/subscribers","subscription_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/subscription","commits_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/commits{/sha}","git_commits_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/git/commits{/sha}","comments_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/comments{/number}","issue_comment_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/issues/comments{/number}","contents_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/contents/{+path}","compare_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/merges","archive_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/downloads","issues_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/issues{/number}","pulls_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/pulls{/number}","milestones_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/milestones{/number}","notifications_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/labels{/name}","releases_url":"https://api.github.com/repos/vincentlepot/capistrano-rsync/releases{/id}","created_at":"2015-06-29T09:48:33Z","updated_at":"2015-06-29T09:48:33Z","pushed_at":"2015-06-29T12:46:56Z","git_url":"git://github.com/vincentlepot/capistrano-rsync.git","ssh_url":"git@github.com:vincentlepot/capistrano-rsync.git","clone_url":"https://github.com/vincentlepot/capistrano-rsync.git","svn_url":"https://github.com/vincentlepot/capistrano-rsync","homepage":"","size":251,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Bladrak:master","ref":"master","sha":"e4a9ecc4ffac0bc9e3679ba1e4201a3ba584216b","user":{"login":"Bladrak","id":1321977,"avatar_url":"https://avatars.githubusercontent.com/u/1321977?v=3","gravatar_id":"","url":"https://api.github.com/users/Bladrak","html_url":"https://github.com/Bladrak","followers_url":"https://api.github.com/users/Bladrak/followers","following_url":"https://api.github.com/users/Bladrak/following{/other_user}","gists_url":"https://api.github.com/users/Bladrak/gists{/gist_id}","starred_url":"https://api.github.com/users/Bladrak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bladrak/subscriptions","organizations_url":"https://api.github.com/users/Bladrak/orgs","repos_url":"https://api.github.com/users/Bladrak/repos","events_url":"https://api.github.com/users/Bladrak/events{/privacy}","received_events_url":"https://api.github.com/users/Bladrak/received_events","type":"User","site_admin":false},"repo":{"id":21700666,"name":"capistrano-rsync","full_name":"Bladrak/capistrano-rsync","owner":{"login":"Bladrak","id":1321977,"avatar_url":"https://avatars.githubusercontent.com/u/1321977?v=3","gravatar_id":"","url":"https://api.github.com/users/Bladrak","html_url":"https://github.com/Bladrak","followers_url":"https://api.github.com/users/Bladrak/followers","following_url":"https://api.github.com/users/Bladrak/following{/other_user}","gists_url":"https://api.github.com/users/Bladrak/gists{/gist_id}","starred_url":"https://api.github.com/users/Bladrak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bladrak/subscriptions","organizations_url":"https://api.github.com/users/Bladrak/orgs","repos_url":"https://api.github.com/users/Bladrak/repos","events_url":"https://api.github.com/users/Bladrak/events{/privacy}","received_events_url":"https://api.github.com/users/Bladrak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Bladrak/capistrano-rsync","description":"Deploy with Rsync from any local (or remote) repository when using Capistrano. Capistrano v3 ready!","fork":true,"url":"https://api.github.com/repos/Bladrak/capistrano-rsync","forks_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/forks","keys_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/teams","hooks_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/hooks","issue_events_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/issues/events{/number}","events_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/events","assignees_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/assignees{/user}","branches_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/branches{/branch}","tags_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/tags","blobs_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/statuses/{sha}","languages_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/languages","stargazers_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/stargazers","contributors_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/contributors","subscribers_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/subscribers","subscription_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/subscription","commits_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/contents/{+path}","compare_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/merges","archive_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/downloads","issues_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/issues{/number}","pulls_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/pulls{/number}","milestones_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/milestones{/number}","notifications_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/labels{/name}","releases_url":"https://api.github.com/repos/Bladrak/capistrano-rsync/releases{/id}","created_at":"2014-07-10T16:02:42Z","updated_at":"2015-06-05T14:00:25Z","pushed_at":"2015-06-05T14:58:58Z","git_url":"git://github.com/Bladrak/capistrano-rsync.git","ssh_url":"git@github.com:Bladrak/capistrano-rsync.git","clone_url":"https://github.com/Bladrak/capistrano-rsync.git","svn_url":"https://github.com/Bladrak/capistrano-rsync","homepage":"","size":251,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":2,"forks":7,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Bladrak/capistrano-rsync/pulls/4"},"html":{"href":"https://github.com/Bladrak/capistrano-rsync/pull/4"},"issue":{"href":"https://api.github.com/repos/Bladrak/capistrano-rsync/issues/4"},"comments":{"href":"https://api.github.com/repos/Bladrak/capistrano-rsync/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/Bladrak/capistrano-rsync/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/Bladrak/capistrano-rsync/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Bladrak/capistrano-rsync/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/Bladrak/capistrano-rsync/statuses/533d45950daa62d4c00165c75db3aee8e7f77b14"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":34,"deletions":22,"changed_files":2}}