1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* tool/redmine-backporter.rb: added ! command.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2015-01-27 07:04:38 +00:00
parent 8516d7433f
commit b03c6a74b7
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Tue Jan 27 16:04:19 2015 NAKAMURA Usaku <usa@ruby-lang.org>
* tool/redmine-backporter.rb: added `!` command.
Tue Jan 27 15:58:23 2015 NAKAMURA Usaku <usa@ruby-lang.org>
* tool/redmine-backporter.rb: added history feature for platforms which

View file

@ -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