{"action":"created","comment":{"url":"https://api.github.com/repos/puppetlabs/packaging/pulls/comments/59462268","id":59462268,"diff_hunk":"@@ -4,25 +4,32 @@ class << self\n     # yet; I'm not entirely sure I've fixed everything that might attempt\n     # to call this method so this is now a wrapper for a wrapper.\n     def ship(file)\n-      ship_stickler(file)\n+      ship_nexus(file)\n       rsync_to_downloads(file)\n       ship_to_rubygems(file)\n     end\n \n     # Ship a Ruby gem file to a Stickler server, because\n     # you've lost the ability to feel joy anymore.\n-    def ship_to_stickler(file)\n-      Pkg::Util::Tool.check_tool(\"stickler\")\n-      cmd = \"stickler push #{file} --server=#{Pkg::Config.internal_gem_host} 2>/dev/null\"\n+    def ship_to_nexus(file)\n+      Pkg::Util::Tool.check_tool(\"gem nexus\")\n+      if Pkg::Util::File.file_exists?(\"#{ENV['HOME']}/.gem/nexus\")\n+        unless File.read(\"#{ENV['HOME']}/.gem/nexus\").include? Pkg::Config.internal_gem_host\n+          fail \"I don't know how to handle this\"\n+        end\n+      else\n+        File.write(\"#{ENV['HOME']}/.gem/nexus\", \"---\\n:url: #{Pkg::Config.internal_gem_host}\")\n+      end\n+      cmd = \"gem nexus #{file}\"","path":"lib/packaging/gem.rb","position":24,"original_position":24,"commit_id":"8d8453f10a5b8f5f918a17cbfc3d31b77252823a","original_commit_id":"8d8453f10a5b8f5f918a17cbfc3d31b77252823a","user":{"login":"melissa","id":4473089,"avatar_url":"https://avatars.githubusercontent.com/u/4473089?v=3","gravatar_id":"","url":"https://api.github.com/users/melissa","html_url":"https://github.com/melissa","followers_url":"https://api.github.com/users/melissa/followers","following_url":"https://api.github.com/users/melissa/following{/other_user}","gists_url":"https://api.github.com/users/melissa/gists{/gist_id}","starred_url":"https://api.github.com/users/melissa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melissa/subscriptions","organizations_url":"https://api.github.com/users/melissa/orgs","repos_url":"https://api.github.com/users/melissa/repos","events_url":"https://api.github.com/users/melissa/events{/privacy}","received_events_url":"https://api.github.com/users/melissa/received_events","type":"User","site_admin":false},"body":"```\r\nirb(main):001:0> require 'rake'\r\n=> true\r\nirb(main):002:0> `gem nexus pkg/puppet-4.0.0-x86-mingw32.gem`\r\n^CERROR:  Interrupted\r\nIRB::Abort: abort then interrupt!\r\n        from (irb):2:in `call'\r\n        from (irb):2:in ``'\r\n        from (irb):2\r\n        from /home/melissa/.rbenv/versions/2.1.0/bin/irb:11:in `<main>'\r\nirb(main):003:0> %x{gem nexus pkg/puppet-4.0.0-x86-mingw32.gem}\r\n^CIRB::Abort: abort then interrupt!\r\nERROR:  Interrupted\r\n        from (irb):3:in `call'\r\n        from (irb):3:in ``'\r\n        from (irb):3\r\n        from /home/melissa/.rbenv/versions/2.1.0/bin/irb:11:in `<main>'\r\nirb(main):004:0> sh \"gem nexus pkg/puppet-4.0.0-x86-mingw32.gem\"\r\ngem nexus pkg/puppet-4.0.0-x86-mingw32.gem\r\nEnter the URL of the rubygems repository on a Nexus server\r\nURL:\r\n```","created_at":"2016-04-12T22:03:19Z","updated_at":"2016-04-12T22:03:19Z","html_url":"https://github.com/puppetlabs/packaging/pull/534#discussion_r59462268","pull_request_url":"https://api.github.com/repos/puppetlabs/packaging/pulls/534","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/packaging/pulls/comments/59462268"},"html":{"href":"https://github.com/puppetlabs/packaging/pull/534#discussion_r59462268"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/packaging/pulls/534"}}},"pull_request":{"url":"https://api.github.com/repos/puppetlabs/packaging/pulls/534","id":66232733,"html_url":"https://github.com/puppetlabs/packaging/pull/534","diff_url":"https://github.com/puppetlabs/packaging/pull/534.diff","patch_url":"https://github.com/puppetlabs/packaging/pull/534.patch","issue_url":"https://api.github.com/repos/puppetlabs/packaging/issues/534","number":534,"state":"open","locked":false,"title":"(RE-6768) Ship gems to internal nexus server","user":{"login":"melissa","id":4473089,"avatar_url":"https://avatars.githubusercontent.com/u/4473089?v=3","gravatar_id":"","url":"https://api.github.com/users/melissa","html_url":"https://github.com/melissa","followers_url":"https://api.github.com/users/melissa/followers","following_url":"https://api.github.com/users/melissa/following{/other_user}","gists_url":"https://api.github.com/users/melissa/gists{/gist_id}","starred_url":"https://api.github.com/users/melissa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melissa/subscriptions","organizations_url":"https://api.github.com/users/melissa/orgs","repos_url":"https://api.github.com/users/melissa/repos","events_url":"https://api.github.com/users/melissa/events{/privacy}","received_events_url":"https://api.github.com/users/melissa/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-12T21:40:16Z","updated_at":"2016-04-12T22:03:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"977d7f28c143d66d54723a6ad9d2033c89bd3911","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/packaging/pulls/534/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/packaging/pulls/534/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/packaging/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/packaging/issues/534/comments","statuses_url":"https://api.github.com/repos/puppetlabs/packaging/statuses/8d8453f10a5b8f5f918a17cbfc3d31b77252823a","head":{"label":"melissa:ticket/master/RE-6768-ship-gems-to-nexus","ref":"ticket/master/RE-6768-ship-gems-to-nexus","sha":"8d8453f10a5b8f5f918a17cbfc3d31b77252823a","user":{"login":"melissa","id":4473089,"avatar_url":"https://avatars.githubusercontent.com/u/4473089?v=3","gravatar_id":"","url":"https://api.github.com/users/melissa","html_url":"https://github.com/melissa","followers_url":"https://api.github.com/users/melissa/followers","following_url":"https://api.github.com/users/melissa/following{/other_user}","gists_url":"https://api.github.com/users/melissa/gists{/gist_id}","starred_url":"https://api.github.com/users/melissa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melissa/subscriptions","organizations_url":"https://api.github.com/users/melissa/orgs","repos_url":"https://api.github.com/users/melissa/repos","events_url":"https://api.github.com/users/melissa/events{/privacy}","received_events_url":"https://api.github.com/users/melissa/received_events","type":"User","site_admin":false},"repo":{"id":10980702,"name":"packaging","full_name":"melissa/packaging","owner":{"login":"melissa","id":4473089,"avatar_url":"https://avatars.githubusercontent.com/u/4473089?v=3","gravatar_id":"","url":"https://api.github.com/users/melissa","html_url":"https://github.com/melissa","followers_url":"https://api.github.com/users/melissa/followers","following_url":"https://api.github.com/users/melissa/following{/other_user}","gists_url":"https://api.github.com/users/melissa/gists{/gist_id}","starred_url":"https://api.github.com/users/melissa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melissa/subscriptions","organizations_url":"https://api.github.com/users/melissa/orgs","repos_url":"https://api.github.com/users/melissa/repos","events_url":"https://api.github.com/users/melissa/events{/privacy}","received_events_url":"https://api.github.com/users/melissa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/melissa/packaging","description":"","fork":true,"url":"https://api.github.com/repos/melissa/packaging","forks_url":"https://api.github.com/repos/melissa/packaging/forks","keys_url":"https://api.github.com/repos/melissa/packaging/keys{/key_id}","collaborators_url":"https://api.github.com/repos/melissa/packaging/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/melissa/packaging/teams","hooks_url":"https://api.github.com/repos/melissa/packaging/hooks","issue_events_url":"https://api.github.com/repos/melissa/packaging/issues/events{/number}","events_url":"https://api.github.com/repos/melissa/packaging/events","assignees_url":"https://api.github.com/repos/melissa/packaging/assignees{/user}","branches_url":"https://api.github.com/repos/melissa/packaging/branches{/branch}","tags_url":"https://api.github.com/repos/melissa/packaging/tags","blobs_url":"https://api.github.com/repos/melissa/packaging/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/melissa/packaging/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/melissa/packaging/git/refs{/sha}","trees_url":"https://api.github.com/repos/melissa/packaging/git/trees{/sha}","statuses_url":"https://api.github.com/repos/melissa/packaging/statuses/{sha}","languages_url":"https://api.github.com/repos/melissa/packaging/languages","stargazers_url":"https://api.github.com/repos/melissa/packaging/stargazers","contributors_url":"https://api.github.com/repos/melissa/packaging/contributors","subscribers_url":"https://api.github.com/repos/melissa/packaging/subscribers","subscription_url":"https://api.github.com/repos/melissa/packaging/subscription","commits_url":"https://api.github.com/repos/melissa/packaging/commits{/sha}","git_commits_url":"https://api.github.com/repos/melissa/packaging/git/commits{/sha}","comments_url":"https://api.github.com/repos/melissa/packaging/comments{/number}","issue_comment_url":"https://api.github.com/repos/melissa/packaging/issues/comments{/number}","contents_url":"https://api.github.com/repos/melissa/packaging/contents/{+path}","compare_url":"https://api.github.com/repos/melissa/packaging/compare/{base}...{head}","merges_url":"https://api.github.com/repos/melissa/packaging/merges","archive_url":"https://api.github.com/repos/melissa/packaging/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/melissa/packaging/downloads","issues_url":"https://api.github.com/repos/melissa/packaging/issues{/number}","pulls_url":"https://api.github.com/repos/melissa/packaging/pulls{/number}","milestones_url":"https://api.github.com/repos/melissa/packaging/milestones{/number}","notifications_url":"https://api.github.com/repos/melissa/packaging/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/melissa/packaging/labels{/name}","releases_url":"https://api.github.com/repos/melissa/packaging/releases{/id}","deployments_url":"https://api.github.com/repos/melissa/packaging/deployments","created_at":"2013-06-26T22:19:53Z","updated_at":"2015-01-22T19:04:52Z","pushed_at":"2016-04-12T21:27:09Z","git_url":"git://github.com/melissa/packaging.git","ssh_url":"git@github.com:melissa/packaging.git","clone_url":"https://github.com/melissa/packaging.git","svn_url":"https://github.com/melissa/packaging","homepage":null,"size":2464,"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":"puppetlabs:master","ref":"master","sha":"7db232fbcbe193b66f0323a594b36c6d61f1813c","user":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":5209001,"name":"packaging","full_name":"puppetlabs/packaging","owner":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/packaging","description":"","fork":false,"url":"https://api.github.com/repos/puppetlabs/packaging","forks_url":"https://api.github.com/repos/puppetlabs/packaging/forks","keys_url":"https://api.github.com/repos/puppetlabs/packaging/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/packaging/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/packaging/teams","hooks_url":"https://api.github.com/repos/puppetlabs/packaging/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/packaging/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/packaging/events","assignees_url":"https://api.github.com/repos/puppetlabs/packaging/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/packaging/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/packaging/tags","blobs_url":"https://api.github.com/repos/puppetlabs/packaging/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/packaging/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/packaging/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/packaging/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/packaging/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/packaging/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/packaging/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/packaging/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/packaging/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/packaging/subscription","commits_url":"https://api.github.com/repos/puppetlabs/packaging/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/packaging/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/packaging/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/packaging/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/packaging/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/packaging/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/packaging/merges","archive_url":"https://api.github.com/repos/puppetlabs/packaging/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/packaging/downloads","issues_url":"https://api.github.com/repos/puppetlabs/packaging/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/packaging/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/packaging/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/packaging/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/packaging/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/packaging/releases{/id}","deployments_url":"https://api.github.com/repos/puppetlabs/packaging/deployments","created_at":"2012-07-27T20:18:19Z","updated_at":"2016-03-21T15:56:49Z","pushed_at":"2016-04-12T21:40:16Z","git_url":"git://github.com/puppetlabs/packaging.git","ssh_url":"git@github.com:puppetlabs/packaging.git","clone_url":"https://github.com/puppetlabs/packaging.git","svn_url":"https://github.com/puppetlabs/packaging","homepage":null,"size":2064,"stargazers_count":31,"watchers_count":31,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":51,"mirror_url":null,"open_issues_count":2,"forks":51,"open_issues":2,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/packaging/pulls/534"},"html":{"href":"https://github.com/puppetlabs/packaging/pull/534"},"issue":{"href":"https://api.github.com/repos/puppetlabs/packaging/issues/534"},"comments":{"href":"https://api.github.com/repos/puppetlabs/packaging/issues/534/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/packaging/pulls/534/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/packaging/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/packaging/pulls/534/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/packaging/statuses/8d8453f10a5b8f5f918a17cbfc3d31b77252823a"}}}}