{"action":"created","comment":{"url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/pulls/comments/22472949","id":22472949,"diff_hunk":"@@ -29,3 +29,15 @@ def run_interactively(command)\n     exec \"ssh #{host.user}@#{host} -p #{port} -t 'cd #{deploy_to}/current; #{command}'\"\n   end\n end\n+\n+namespace :db do\n+  desc \"Capture a database snapshot\"\n+  task :backup do\n+    on roles(:db), primary: true do |host|\n+      within release_path do\n+        execute :rake, \"db:backup\", \"RAILS_ENV=#{fetch(:stage)}\"\n+      end\n+    end\n+","path":"lib/jeffries_tube/capistrano/capistrano3.rb","position":13,"original_position":13,"commit_id":"5987c7acd1c172812733c83098f896c9ef35fcba","original_commit_id":"5987c7acd1c172812733c83098f896c9ef35fcba","user":{"login":"samsonasu","id":205423,"avatar_url":"https://avatars.githubusercontent.com/u/205423?v=3","gravatar_id":"","url":"https://api.github.com/users/samsonasu","html_url":"https://github.com/samsonasu","followers_url":"https://api.github.com/users/samsonasu/followers","following_url":"https://api.github.com/users/samsonasu/following{/other_user}","gists_url":"https://api.github.com/users/samsonasu/gists{/gist_id}","starred_url":"https://api.github.com/users/samsonasu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samsonasu/subscriptions","organizations_url":"https://api.github.com/users/samsonasu/orgs","repos_url":"https://api.github.com/users/samsonasu/repos","events_url":"https://api.github.com/users/samsonasu/events{/privacy}","received_events_url":"https://api.github.com/users/samsonasu/received_events","type":"User","site_admin":false},"body":"add backup:fetch to fetch the latest from the server via scp","created_at":"2015-01-05T16:58:37Z","updated_at":"2015-01-05T16:58:37Z","html_url":"https://github.com/tenforwardconsulting/jeffries_tube/pull/2#discussion_r22472949","pull_request_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/pulls/comments/22472949"},"html":{"href":"https://github.com/tenforwardconsulting/jeffries_tube/pull/2#discussion_r22472949"},"pull_request":{"href":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/pulls/2","id":26835805,"html_url":"https://github.com/tenforwardconsulting/jeffries_tube/pull/2","diff_url":"https://github.com/tenforwardconsulting/jeffries_tube/pull/2.diff","patch_url":"https://github.com/tenforwardconsulting/jeffries_tube/pull/2.patch","issue_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/issues/2","number":2,"state":"open","locked":false,"title":"database backup tasks","user":{"login":"samsonasu","id":205423,"avatar_url":"https://avatars.githubusercontent.com/u/205423?v=3","gravatar_id":"","url":"https://api.github.com/users/samsonasu","html_url":"https://github.com/samsonasu","followers_url":"https://api.github.com/users/samsonasu/followers","following_url":"https://api.github.com/users/samsonasu/following{/other_user}","gists_url":"https://api.github.com/users/samsonasu/gists{/gist_id}","starred_url":"https://api.github.com/users/samsonasu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samsonasu/subscriptions","organizations_url":"https://api.github.com/users/samsonasu/orgs","repos_url":"https://api.github.com/users/samsonasu/repos","events_url":"https://api.github.com/users/samsonasu/events{/privacy}","received_events_url":"https://api.github.com/users/samsonasu/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-05T16:57:26Z","updated_at":"2015-01-05T16:58:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"74582844571be1bfd00d4d30fc18682215a9b6fa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/pulls/2/commits","review_comments_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/pulls/2/comments","review_comment_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/pulls/comments/{number}","comments_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/issues/2/comments","statuses_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/statuses/5987c7acd1c172812733c83098f896c9ef35fcba","head":{"label":"tenforwardconsulting:db_tasks","ref":"db_tasks","sha":"5987c7acd1c172812733c83098f896c9ef35fcba","user":{"login":"tenforwardconsulting","id":2042750,"avatar_url":"https://avatars.githubusercontent.com/u/2042750?v=3","gravatar_id":"","url":"https://api.github.com/users/tenforwardconsulting","html_url":"https://github.com/tenforwardconsulting","followers_url":"https://api.github.com/users/tenforwardconsulting/followers","following_url":"https://api.github.com/users/tenforwardconsulting/following{/other_user}","gists_url":"https://api.github.com/users/tenforwardconsulting/gists{/gist_id}","starred_url":"https://api.github.com/users/tenforwardconsulting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenforwardconsulting/subscriptions","organizations_url":"https://api.github.com/users/tenforwardconsulting/orgs","repos_url":"https://api.github.com/users/tenforwardconsulting/repos","events_url":"https://api.github.com/users/tenforwardconsulting/events{/privacy}","received_events_url":"https://api.github.com/users/tenforwardconsulting/received_events","type":"Organization","site_admin":false},"repo":{"id":24169278,"name":"jeffries_tube","full_name":"tenforwardconsulting/jeffries_tube","owner":{"login":"tenforwardconsulting","id":2042750,"avatar_url":"https://avatars.githubusercontent.com/u/2042750?v=3","gravatar_id":"","url":"https://api.github.com/users/tenforwardconsulting","html_url":"https://github.com/tenforwardconsulting","followers_url":"https://api.github.com/users/tenforwardconsulting/followers","following_url":"https://api.github.com/users/tenforwardconsulting/following{/other_user}","gists_url":"https://api.github.com/users/tenforwardconsulting/gists{/gist_id}","starred_url":"https://api.github.com/users/tenforwardconsulting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenforwardconsulting/subscriptions","organizations_url":"https://api.github.com/users/tenforwardconsulting/orgs","repos_url":"https://api.github.com/users/tenforwardconsulting/repos","events_url":"https://api.github.com/users/tenforwardconsulting/events{/privacy}","received_events_url":"https://api.github.com/users/tenforwardconsulting/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tenforwardconsulting/jeffries_tube","description":"Ten Forward utility gem","fork":false,"url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube","forks_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/forks","keys_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/teams","hooks_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/hooks","issue_events_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/issues/events{/number}","events_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/events","assignees_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/assignees{/user}","branches_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/branches{/branch}","tags_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/tags","blobs_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/git/refs{/sha}","trees_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/statuses/{sha}","languages_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/languages","stargazers_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/stargazers","contributors_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/contributors","subscribers_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/subscribers","subscription_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/subscription","commits_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/commits{/sha}","git_commits_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/git/commits{/sha}","comments_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/comments{/number}","issue_comment_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/issues/comments/{number}","contents_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/contents/{+path}","compare_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/merges","archive_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/downloads","issues_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/issues{/number}","pulls_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/pulls{/number}","milestones_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/milestones{/number}","notifications_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/labels{/name}","releases_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/releases{/id}","created_at":"2014-09-18T01:34:11Z","updated_at":"2014-11-20T17:09:58Z","pushed_at":"2014-12-18T21:39:44Z","git_url":"git://github.com/tenforwardconsulting/jeffries_tube.git","ssh_url":"git@github.com:tenforwardconsulting/jeffries_tube.git","clone_url":"https://github.com/tenforwardconsulting/jeffries_tube.git","svn_url":"https://github.com/tenforwardconsulting/jeffries_tube","homepage":null,"size":204,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"tenforwardconsulting:master","ref":"master","sha":"710249bf73a78abdf11c360800ac0f430c70e107","user":{"login":"tenforwardconsulting","id":2042750,"avatar_url":"https://avatars.githubusercontent.com/u/2042750?v=3","gravatar_id":"","url":"https://api.github.com/users/tenforwardconsulting","html_url":"https://github.com/tenforwardconsulting","followers_url":"https://api.github.com/users/tenforwardconsulting/followers","following_url":"https://api.github.com/users/tenforwardconsulting/following{/other_user}","gists_url":"https://api.github.com/users/tenforwardconsulting/gists{/gist_id}","starred_url":"https://api.github.com/users/tenforwardconsulting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenforwardconsulting/subscriptions","organizations_url":"https://api.github.com/users/tenforwardconsulting/orgs","repos_url":"https://api.github.com/users/tenforwardconsulting/repos","events_url":"https://api.github.com/users/tenforwardconsulting/events{/privacy}","received_events_url":"https://api.github.com/users/tenforwardconsulting/received_events","type":"Organization","site_admin":false},"repo":{"id":24169278,"name":"jeffries_tube","full_name":"tenforwardconsulting/jeffries_tube","owner":{"login":"tenforwardconsulting","id":2042750,"avatar_url":"https://avatars.githubusercontent.com/u/2042750?v=3","gravatar_id":"","url":"https://api.github.com/users/tenforwardconsulting","html_url":"https://github.com/tenforwardconsulting","followers_url":"https://api.github.com/users/tenforwardconsulting/followers","following_url":"https://api.github.com/users/tenforwardconsulting/following{/other_user}","gists_url":"https://api.github.com/users/tenforwardconsulting/gists{/gist_id}","starred_url":"https://api.github.com/users/tenforwardconsulting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenforwardconsulting/subscriptions","organizations_url":"https://api.github.com/users/tenforwardconsulting/orgs","repos_url":"https://api.github.com/users/tenforwardconsulting/repos","events_url":"https://api.github.com/users/tenforwardconsulting/events{/privacy}","received_events_url":"https://api.github.com/users/tenforwardconsulting/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tenforwardconsulting/jeffries_tube","description":"Ten Forward utility gem","fork":false,"url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube","forks_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/forks","keys_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/teams","hooks_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/hooks","issue_events_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/issues/events{/number}","events_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/events","assignees_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/assignees{/user}","branches_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/branches{/branch}","tags_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/tags","blobs_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/git/refs{/sha}","trees_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/statuses/{sha}","languages_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/languages","stargazers_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/stargazers","contributors_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/contributors","subscribers_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/subscribers","subscription_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/subscription","commits_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/commits{/sha}","git_commits_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/git/commits{/sha}","comments_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/comments{/number}","issue_comment_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/issues/comments/{number}","contents_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/contents/{+path}","compare_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/merges","archive_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/downloads","issues_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/issues{/number}","pulls_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/pulls{/number}","milestones_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/milestones{/number}","notifications_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/labels{/name}","releases_url":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/releases{/id}","created_at":"2014-09-18T01:34:11Z","updated_at":"2014-11-20T17:09:58Z","pushed_at":"2014-12-18T21:39:44Z","git_url":"git://github.com/tenforwardconsulting/jeffries_tube.git","ssh_url":"git@github.com:tenforwardconsulting/jeffries_tube.git","clone_url":"https://github.com/tenforwardconsulting/jeffries_tube.git","svn_url":"https://github.com/tenforwardconsulting/jeffries_tube","homepage":null,"size":204,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/pulls/2"},"html":{"href":"https://github.com/tenforwardconsulting/jeffries_tube/pull/2"},"issue":{"href":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/issues/2"},"comments":{"href":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/tenforwardconsulting/jeffries_tube/statuses/5987c7acd1c172812733c83098f896c9ef35fcba"}}}}