summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-27 07:04:38 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-27 07:04:38 +0000
commitb03c6a74b7fb4d58f5b554ce98f36ea3fa109475 (patch)
tree4f3cea37205d1d25177d804e6ae29b2648fffb20 /tool
parent8516d7433f7e1966f39cea5c86ec758e046d43c5 (diff)
* tool/redmine-backporter.rb: added `!` command.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/redmine-backporter.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb
index 13a9ec8851..c50d2a379e 100755
--- a/tool/redmine-backporter.rb
+++ b/tool/redmine-backporter.rb
@@ -486,6 +486,8 @@ eom
Net::HTTP.start(uri.host, uri.port, http_options) do |http|
show_last_journal(http, uri)
end
+ when /\A!\s*(.*)\s*\z/
+ system($1)
when ''
when nil, 'quit', 'exit'
exit
@@ -497,6 +499,7 @@ eom
puts 'done [TICKET] [-- NOTE]'.color(bold: true) + ' set Backport field of the TICKET to DONE'
puts 'close [TICKET] '.color(bold: true) + ' close the TICKET'
puts 'last [TICKET] '.color(bold: true) + ' show the last journal of the TICKET'
+ puts '! COMMAND '.color(bold: true) + ' execute COMMAND'
else
puts "error #{l.inspect}"
end