aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/cmd
diff options
context:
space:
mode:
authorStefan2013-12-28 14:51:00 +0100
committerMike McQuaid2014-01-14 08:23:17 +0000
commitfd7d46c3d960c534eb9c955bb310e9f47b7b6c7e (patch)
treeb1f38d708ff1b7d12ecdaadec5f2f3e3b68054f8 /Library/Contributions/cmd
parente4dceb956c6edea368cc3713423c6cd4bf7e45e8 (diff)
downloadhomebrew-fd7d46c3d960c534eb9c955bb310e9f47b7b6c7e.tar.bz2
gist logs: print last url
Closes #25514. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Contributions/cmd')
-rwxr-xr-xLibrary/Contributions/cmd/brew-gist-logs.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/Library/Contributions/cmd/brew-gist-logs.rb b/Library/Contributions/cmd/brew-gist-logs.rb
index c94ccb7bf..102bf7660 100755
--- a/Library/Contributions/cmd/brew-gist-logs.rb
+++ b/Library/Contributions/cmd/brew-gist-logs.rb
@@ -20,8 +20,10 @@ def gist_logs f
url = create_gist(files)
if ARGV.include? '--new-issue'
- new_issue(repo, "#{f.name} failed to build on #{MACOS_FULL_VERSION}", url)
+ url = new_issue(repo, "#{f.name} failed to build on #{MACOS_FULL_VERSION}", url)
end
+
+ ensure puts url if url
end
def load_logs name
@@ -43,12 +45,11 @@ def append_doctor files
end
def create_gist files
- puts (url = post('gists', {'public' => true, 'files' => files})['html_url'])
- url
+ post('gists', {'public' => true, 'files' => files})['html_url']
end
def new_issue repo, title, body
- puts post("repos/#{repo}/issues", {'title' => title, 'body' => body})['html_url']
+ post("repos/#{repo}/issues", {'title' => title, 'body' => body})['html_url']
end
def http