{"action":"created","comment":{"url":"https://api.github.com/repos/flapjack/omnibus-flapjack/pulls/comments/26372003","id":26372003,"diff_hunk":"@@ -198,6 +199,28 @@ def add_to_rpm_repo(pkg, component = 'experimental')\n           Mixlib::ShellOut.new('createrepo . 2>&1', :live_stream => $stdout).run_command.error!\n         end\n       end\n+\n+      def add_to_packagecloud(pkg, component='experimental')\n+        begin\n+          credentials = Packagecloud::Credentials.new(ENV['packagecloud_user'], ENV['packagecloud_token'])","path":"lib/omnibus-flapjack/publish.rb","position":13,"original_position":13,"commit_id":"2c51d23c5980b11bdb81ea061f3dabd7b3644ec9","original_commit_id":"2c51d23c5980b11bdb81ea061f3dabd7b3644ec9","user":{"login":"jessereynolds","id":391439,"avatar_url":"https://avatars.githubusercontent.com/u/391439?v=3","gravatar_id":"","url":"https://api.github.com/users/jessereynolds","html_url":"https://github.com/jessereynolds","followers_url":"https://api.github.com/users/jessereynolds/followers","following_url":"https://api.github.com/users/jessereynolds/following{/other_user}","gists_url":"https://api.github.com/users/jessereynolds/gists{/gist_id}","starred_url":"https://api.github.com/users/jessereynolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessereynolds/subscriptions","organizations_url":"https://api.github.com/users/jessereynolds/orgs","repos_url":"https://api.github.com/users/jessereynolds/repos","events_url":"https://api.github.com/users/jessereynolds/events{/privacy}","received_events_url":"https://api.github.com/users/jessereynolds/received_events","type":"User","site_admin":false},"body":"It'd be neater to have the credentials picked up from env vars (or wherever) in the Rakefile and then passed through to OmnibusFlapjack::Publish#add_to_packagecloud using an options hash. One reason is to make it easier to test the code. ","created_at":"2015-03-13T09:05:37Z","updated_at":"2015-03-13T09:05:37Z","html_url":"https://github.com/flapjack/omnibus-flapjack/pull/92#discussion_r26372003","pull_request_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/pulls/92","_links":{"self":{"href":"https://api.github.com/repos/flapjack/omnibus-flapjack/pulls/comments/26372003"},"html":{"href":"https://github.com/flapjack/omnibus-flapjack/pull/92#discussion_r26372003"},"pull_request":{"href":"https://api.github.com/repos/flapjack/omnibus-flapjack/pulls/92"}}},"pull_request":{"url":"https://api.github.com/repos/flapjack/omnibus-flapjack/pulls/92","id":31108984,"html_url":"https://github.com/flapjack/omnibus-flapjack/pull/92","diff_url":"https://github.com/flapjack/omnibus-flapjack/pull/92.diff","patch_url":"https://github.com/flapjack/omnibus-flapjack/pull/92.patch","issue_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/issues/92","number":92,"state":"open","locked":false,"title":"Add uploads to packagecloud","user":{"login":"Hobbsee","id":3038925,"avatar_url":"https://avatars.githubusercontent.com/u/3038925?v=3","gravatar_id":"","url":"https://api.github.com/users/Hobbsee","html_url":"https://github.com/Hobbsee","followers_url":"https://api.github.com/users/Hobbsee/followers","following_url":"https://api.github.com/users/Hobbsee/following{/other_user}","gists_url":"https://api.github.com/users/Hobbsee/gists{/gist_id}","starred_url":"https://api.github.com/users/Hobbsee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hobbsee/subscriptions","organizations_url":"https://api.github.com/users/Hobbsee/orgs","repos_url":"https://api.github.com/users/Hobbsee/repos","events_url":"https://api.github.com/users/Hobbsee/events{/privacy}","received_events_url":"https://api.github.com/users/Hobbsee/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-03-13T08:59:00Z","updated_at":"2015-03-13T09:05:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f21a475efc0982581b6f931da6040807b29b0db5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/pulls/92/commits","review_comments_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/pulls/92/comments","review_comment_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/issues/92/comments","statuses_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/statuses/2c51d23c5980b11bdb81ea061f3dabd7b3644ec9","head":{"label":"flapjack:add-packagecloud","ref":"add-packagecloud","sha":"2c51d23c5980b11bdb81ea061f3dabd7b3644ec9","user":{"login":"flapjack","id":2343953,"avatar_url":"https://avatars.githubusercontent.com/u/2343953?v=3","gravatar_id":"","url":"https://api.github.com/users/flapjack","html_url":"https://github.com/flapjack","followers_url":"https://api.github.com/users/flapjack/followers","following_url":"https://api.github.com/users/flapjack/following{/other_user}","gists_url":"https://api.github.com/users/flapjack/gists{/gist_id}","starred_url":"https://api.github.com/users/flapjack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flapjack/subscriptions","organizations_url":"https://api.github.com/users/flapjack/orgs","repos_url":"https://api.github.com/users/flapjack/repos","events_url":"https://api.github.com/users/flapjack/events{/privacy}","received_events_url":"https://api.github.com/users/flapjack/received_events","type":"Organization","site_admin":false},"repo":{"id":11000774,"name":"omnibus-flapjack","full_name":"flapjack/omnibus-flapjack","owner":{"login":"flapjack","id":2343953,"avatar_url":"https://avatars.githubusercontent.com/u/2343953?v=3","gravatar_id":"","url":"https://api.github.com/users/flapjack","html_url":"https://github.com/flapjack","followers_url":"https://api.github.com/users/flapjack/followers","following_url":"https://api.github.com/users/flapjack/following{/other_user}","gists_url":"https://api.github.com/users/flapjack/gists{/gist_id}","starred_url":"https://api.github.com/users/flapjack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flapjack/subscriptions","organizations_url":"https://api.github.com/users/flapjack/orgs","repos_url":"https://api.github.com/users/flapjack/repos","events_url":"https://api.github.com/users/flapjack/events{/privacy}","received_events_url":"https://api.github.com/users/flapjack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/flapjack/omnibus-flapjack","description":"Flapjack packages for all! Build the packages, and update the repositories.","fork":false,"url":"https://api.github.com/repos/flapjack/omnibus-flapjack","forks_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/forks","keys_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/teams","hooks_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/hooks","issue_events_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/issues/events{/number}","events_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/events","assignees_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/assignees{/user}","branches_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/branches{/branch}","tags_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/tags","blobs_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/git/refs{/sha}","trees_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/statuses/{sha}","languages_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/languages","stargazers_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/stargazers","contributors_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/contributors","subscribers_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/subscribers","subscription_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/subscription","commits_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/commits{/sha}","git_commits_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/git/commits{/sha}","comments_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/comments{/number}","issue_comment_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/issues/comments{/number}","contents_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/contents/{+path}","compare_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/merges","archive_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/downloads","issues_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/issues{/number}","pulls_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/pulls{/number}","milestones_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/milestones{/number}","notifications_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/labels{/name}","releases_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/releases{/id}","created_at":"2013-06-27T15:36:02Z","updated_at":"2015-03-13T09:00:07Z","pushed_at":"2015-03-13T09:00:06Z","git_url":"git://github.com/flapjack/omnibus-flapjack.git","ssh_url":"git@github.com:flapjack/omnibus-flapjack.git","clone_url":"https://github.com/flapjack/omnibus-flapjack.git","svn_url":"https://github.com/flapjack/omnibus-flapjack","homepage":"http://flapjack.io","size":1800,"stargazers_count":13,"watchers_count":13,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":13,"default_branch":"master"}},"base":{"label":"flapjack:master","ref":"master","sha":"0f5a2264b66326ad90d9bac63799ec7504fb2017","user":{"login":"flapjack","id":2343953,"avatar_url":"https://avatars.githubusercontent.com/u/2343953?v=3","gravatar_id":"","url":"https://api.github.com/users/flapjack","html_url":"https://github.com/flapjack","followers_url":"https://api.github.com/users/flapjack/followers","following_url":"https://api.github.com/users/flapjack/following{/other_user}","gists_url":"https://api.github.com/users/flapjack/gists{/gist_id}","starred_url":"https://api.github.com/users/flapjack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flapjack/subscriptions","organizations_url":"https://api.github.com/users/flapjack/orgs","repos_url":"https://api.github.com/users/flapjack/repos","events_url":"https://api.github.com/users/flapjack/events{/privacy}","received_events_url":"https://api.github.com/users/flapjack/received_events","type":"Organization","site_admin":false},"repo":{"id":11000774,"name":"omnibus-flapjack","full_name":"flapjack/omnibus-flapjack","owner":{"login":"flapjack","id":2343953,"avatar_url":"https://avatars.githubusercontent.com/u/2343953?v=3","gravatar_id":"","url":"https://api.github.com/users/flapjack","html_url":"https://github.com/flapjack","followers_url":"https://api.github.com/users/flapjack/followers","following_url":"https://api.github.com/users/flapjack/following{/other_user}","gists_url":"https://api.github.com/users/flapjack/gists{/gist_id}","starred_url":"https://api.github.com/users/flapjack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flapjack/subscriptions","organizations_url":"https://api.github.com/users/flapjack/orgs","repos_url":"https://api.github.com/users/flapjack/repos","events_url":"https://api.github.com/users/flapjack/events{/privacy}","received_events_url":"https://api.github.com/users/flapjack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/flapjack/omnibus-flapjack","description":"Flapjack packages for all! Build the packages, and update the repositories.","fork":false,"url":"https://api.github.com/repos/flapjack/omnibus-flapjack","forks_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/forks","keys_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/teams","hooks_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/hooks","issue_events_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/issues/events{/number}","events_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/events","assignees_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/assignees{/user}","branches_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/branches{/branch}","tags_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/tags","blobs_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/git/refs{/sha}","trees_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/statuses/{sha}","languages_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/languages","stargazers_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/stargazers","contributors_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/contributors","subscribers_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/subscribers","subscription_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/subscription","commits_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/commits{/sha}","git_commits_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/git/commits{/sha}","comments_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/comments{/number}","issue_comment_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/issues/comments{/number}","contents_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/contents/{+path}","compare_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/merges","archive_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/downloads","issues_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/issues{/number}","pulls_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/pulls{/number}","milestones_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/milestones{/number}","notifications_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/labels{/name}","releases_url":"https://api.github.com/repos/flapjack/omnibus-flapjack/releases{/id}","created_at":"2013-06-27T15:36:02Z","updated_at":"2015-03-13T09:00:07Z","pushed_at":"2015-03-13T09:00:06Z","git_url":"git://github.com/flapjack/omnibus-flapjack.git","ssh_url":"git@github.com:flapjack/omnibus-flapjack.git","clone_url":"https://github.com/flapjack/omnibus-flapjack.git","svn_url":"https://github.com/flapjack/omnibus-flapjack","homepage":"http://flapjack.io","size":1800,"stargazers_count":13,"watchers_count":13,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flapjack/omnibus-flapjack/pulls/92"},"html":{"href":"https://github.com/flapjack/omnibus-flapjack/pull/92"},"issue":{"href":"https://api.github.com/repos/flapjack/omnibus-flapjack/issues/92"},"comments":{"href":"https://api.github.com/repos/flapjack/omnibus-flapjack/issues/92/comments"},"review_comments":{"href":"https://api.github.com/repos/flapjack/omnibus-flapjack/pulls/92/comments"},"review_comment":{"href":"https://api.github.com/repos/flapjack/omnibus-flapjack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flapjack/omnibus-flapjack/pulls/92/commits"},"statuses":{"href":"https://api.github.com/repos/flapjack/omnibus-flapjack/statuses/2c51d23c5980b11bdb81ea061f3dabd7b3644ec9"}}}}