{"action":"closed","number":104,"pull_request":{"url":"https://api.github.com/repos/seuros/capistrano-sidekiq/pulls/104","id":44642863,"html_url":"https://github.com/seuros/capistrano-sidekiq/pull/104","diff_url":"https://github.com/seuros/capistrano-sidekiq/pull/104.diff","patch_url":"https://github.com/seuros/capistrano-sidekiq/pull/104.patch","issue_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/issues/104","number":104,"state":"closed","locked":false,"title":"Use SSHKit command_map","user":{"login":"hbin","id":1296308,"avatar_url":"https://avatars.githubusercontent.com/u/1296308?v=3","gravatar_id":"","url":"https://api.github.com/users/hbin","html_url":"https://github.com/hbin","followers_url":"https://api.github.com/users/hbin/followers","following_url":"https://api.github.com/users/hbin/following{/other_user}","gists_url":"https://api.github.com/users/hbin/gists{/gist_id}","starred_url":"https://api.github.com/users/hbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbin/subscriptions","organizations_url":"https://api.github.com/users/hbin/orgs","repos_url":"https://api.github.com/users/hbin/repos","events_url":"https://api.github.com/users/hbin/events{/privacy}","received_events_url":"https://api.github.com/users/hbin/received_events","type":"User","site_admin":false},"body":"Same as https://github.com/seuros/capistrano-puma/pull/128\r\n\r\nWe don't need to explicitly specify the `bundle exec` statement(actually, we shouldn't).\r\n\r\nThe best practice is [add the binaries to the bundle_bins array](https://github.com/capistrano/bundler/blob/master/lib%2Fcapistrano%2Ftasks%2Fbundler.cap#L44-L47).\r\n\r\nWith following the best practice, the user can easily to custom the execution command, for example, I am  going to use the [dotenv](https://github.com/bkeepers/dotenv) executable to launch the sidekiq. I can add an additive task like this:\r\n```\r\nnamespace :bundler do\r\n  task :map_bins do\r\n    fetch(:bundle_bins).each do |command|\r\n      SSHKit.config.command_map.prefix[command.to_sym].push('dotenv')\r\n    end\r\n  end\r\nend\r\n```","created_at":"2015-09-10T08:59:52Z","updated_at":"2015-09-14T10:31:43Z","closed_at":"2015-09-14T10:31:43Z","merged_at":"2015-09-14T10:31:43Z","merge_commit_sha":"e23ee1583e7797aa643802259f526698783682cf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/pulls/104/commits","review_comments_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/pulls/104/comments","review_comment_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/issues/104/comments","statuses_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/statuses/8a49d7608e08a61a6f9d652225014565caecd982","head":{"label":"hbin:development","ref":"development","sha":"8a49d7608e08a61a6f9d652225014565caecd982","user":{"login":"hbin","id":1296308,"avatar_url":"https://avatars.githubusercontent.com/u/1296308?v=3","gravatar_id":"","url":"https://api.github.com/users/hbin","html_url":"https://github.com/hbin","followers_url":"https://api.github.com/users/hbin/followers","following_url":"https://api.github.com/users/hbin/following{/other_user}","gists_url":"https://api.github.com/users/hbin/gists{/gist_id}","starred_url":"https://api.github.com/users/hbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbin/subscriptions","organizations_url":"https://api.github.com/users/hbin/orgs","repos_url":"https://api.github.com/users/hbin/repos","events_url":"https://api.github.com/users/hbin/events{/privacy}","received_events_url":"https://api.github.com/users/hbin/received_events","type":"User","site_admin":false},"repo":{"id":41464104,"name":"capistrano-sidekiq","full_name":"hbin/capistrano-sidekiq","owner":{"login":"hbin","id":1296308,"avatar_url":"https://avatars.githubusercontent.com/u/1296308?v=3","gravatar_id":"","url":"https://api.github.com/users/hbin","html_url":"https://github.com/hbin","followers_url":"https://api.github.com/users/hbin/followers","following_url":"https://api.github.com/users/hbin/following{/other_user}","gists_url":"https://api.github.com/users/hbin/gists{/gist_id}","starred_url":"https://api.github.com/users/hbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbin/subscriptions","organizations_url":"https://api.github.com/users/hbin/orgs","repos_url":"https://api.github.com/users/hbin/repos","events_url":"https://api.github.com/users/hbin/events{/privacy}","received_events_url":"https://api.github.com/users/hbin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hbin/capistrano-sidekiq","description":"Sidekiq integration for Capistrano","fork":true,"url":"https://api.github.com/repos/hbin/capistrano-sidekiq","forks_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/forks","keys_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/teams","hooks_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/hooks","issue_events_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/issues/events{/number}","events_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/events","assignees_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/assignees{/user}","branches_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/branches{/branch}","tags_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/tags","blobs_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/statuses/{sha}","languages_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/languages","stargazers_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/stargazers","contributors_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/contributors","subscribers_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/subscribers","subscription_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/subscription","commits_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/contents/{+path}","compare_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/merges","archive_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/downloads","issues_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/issues{/number}","pulls_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/pulls{/number}","milestones_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/milestones{/number}","notifications_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/labels{/name}","releases_url":"https://api.github.com/repos/hbin/capistrano-sidekiq/releases{/id}","created_at":"2015-08-27T03:38:47Z","updated_at":"2015-08-27T03:38:49Z","pushed_at":"2015-09-11T03:07:33Z","git_url":"git://github.com/hbin/capistrano-sidekiq.git","ssh_url":"git@github.com:hbin/capistrano-sidekiq.git","clone_url":"https://github.com/hbin/capistrano-sidekiq.git","svn_url":"https://github.com/hbin/capistrano-sidekiq","homepage":null,"size":194,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"seuros:master","ref":"master","sha":"8d8d9317b6f5862d86c800ba56a5e406be24b2c1","user":{"login":"seuros","id":2394703,"avatar_url":"https://avatars.githubusercontent.com/u/2394703?v=3","gravatar_id":"","url":"https://api.github.com/users/seuros","html_url":"https://github.com/seuros","followers_url":"https://api.github.com/users/seuros/followers","following_url":"https://api.github.com/users/seuros/following{/other_user}","gists_url":"https://api.github.com/users/seuros/gists{/gist_id}","starred_url":"https://api.github.com/users/seuros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seuros/subscriptions","organizations_url":"https://api.github.com/users/seuros/orgs","repos_url":"https://api.github.com/users/seuros/repos","events_url":"https://api.github.com/users/seuros/events{/privacy}","received_events_url":"https://api.github.com/users/seuros/received_events","type":"User","site_admin":false},"repo":{"id":17669530,"name":"capistrano-sidekiq","full_name":"seuros/capistrano-sidekiq","owner":{"login":"seuros","id":2394703,"avatar_url":"https://avatars.githubusercontent.com/u/2394703?v=3","gravatar_id":"","url":"https://api.github.com/users/seuros","html_url":"https://github.com/seuros","followers_url":"https://api.github.com/users/seuros/followers","following_url":"https://api.github.com/users/seuros/following{/other_user}","gists_url":"https://api.github.com/users/seuros/gists{/gist_id}","starred_url":"https://api.github.com/users/seuros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seuros/subscriptions","organizations_url":"https://api.github.com/users/seuros/orgs","repos_url":"https://api.github.com/users/seuros/repos","events_url":"https://api.github.com/users/seuros/events{/privacy}","received_events_url":"https://api.github.com/users/seuros/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/seuros/capistrano-sidekiq","description":"Sidekiq integration for Capistrano","fork":false,"url":"https://api.github.com/repos/seuros/capistrano-sidekiq","forks_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/forks","keys_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/teams","hooks_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/hooks","issue_events_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/issues/events{/number}","events_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/events","assignees_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/assignees{/user}","branches_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/branches{/branch}","tags_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/tags","blobs_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/statuses/{sha}","languages_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/languages","stargazers_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/stargazers","contributors_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/contributors","subscribers_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/subscribers","subscription_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/subscription","commits_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/contents/{+path}","compare_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/merges","archive_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/downloads","issues_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/issues{/number}","pulls_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/pulls{/number}","milestones_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/milestones{/number}","notifications_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/labels{/name}","releases_url":"https://api.github.com/repos/seuros/capistrano-sidekiq/releases{/id}","created_at":"2014-03-12T14:21:45Z","updated_at":"2015-09-04T22:40:47Z","pushed_at":"2015-09-14T10:31:43Z","git_url":"git://github.com/seuros/capistrano-sidekiq.git","ssh_url":"git@github.com:seuros/capistrano-sidekiq.git","clone_url":"https://github.com/seuros/capistrano-sidekiq.git","svn_url":"https://github.com/seuros/capistrano-sidekiq","homepage":null,"size":795,"stargazers_count":211,"watchers_count":211,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":87,"mirror_url":null,"open_issues_count":11,"forks":87,"open_issues":11,"watchers":211,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/seuros/capistrano-sidekiq/pulls/104"},"html":{"href":"https://github.com/seuros/capistrano-sidekiq/pull/104"},"issue":{"href":"https://api.github.com/repos/seuros/capistrano-sidekiq/issues/104"},"comments":{"href":"https://api.github.com/repos/seuros/capistrano-sidekiq/issues/104/comments"},"review_comments":{"href":"https://api.github.com/repos/seuros/capistrano-sidekiq/pulls/104/comments"},"review_comment":{"href":"https://api.github.com/repos/seuros/capistrano-sidekiq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/seuros/capistrano-sidekiq/pulls/104/commits"},"statuses":{"href":"https://api.github.com/repos/seuros/capistrano-sidekiq/statuses/8a49d7608e08a61a6f9d652225014565caecd982"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"seuros","id":2394703,"avatar_url":"https://avatars.githubusercontent.com/u/2394703?v=3","gravatar_id":"","url":"https://api.github.com/users/seuros","html_url":"https://github.com/seuros","followers_url":"https://api.github.com/users/seuros/followers","following_url":"https://api.github.com/users/seuros/following{/other_user}","gists_url":"https://api.github.com/users/seuros/gists{/gist_id}","starred_url":"https://api.github.com/users/seuros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seuros/subscriptions","organizations_url":"https://api.github.com/users/seuros/orgs","repos_url":"https://api.github.com/users/seuros/repos","events_url":"https://api.github.com/users/seuros/events{/privacy}","received_events_url":"https://api.github.com/users/seuros/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":10,"deletions":7,"changed_files":3}}