[前][次][番号順一覧][スレッド一覧]

ruby-changes:37340

From: usa <ko1@a...>
Date: Tue, 27 Jan 2015 16:04:44 +0900 (JST)
Subject: [ruby-changes:37340] usa:r49421 (trunk): * tool/redmine-backporter.rb: added `!` command.

usa	2015-01-27 16:04:38 +0900 (Tue, 27 Jan 2015)

  New Revision: 49421

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49421

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

  Modified files:
    trunk/ChangeLog
    trunk/tool/redmine-backporter.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 49420)
+++ ChangeLog	(revision 49421)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Jan 27 16:04:19 2015  NAKAMURA Usaku  <usa@r...>
+
+	* tool/redmine-backporter.rb: added `!` command.
+
 Tue Jan 27 15:58:23 2015  NAKAMURA Usaku  <usa@r...>
 
 	* tool/redmine-backporter.rb: added history feature for platforms which
Index: tool/redmine-backporter.rb
===================================================================
--- tool/redmine-backporter.rb	(revision 49420)
+++ tool/redmine-backporter.rb	(revision 49421)
@@ -486,6 +486,8 @@ eom https://github.com/ruby/ruby/blob/trunk/tool/redmine-backporter.rb#L486
     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 https://github.com/ruby/ruby/blob/trunk/tool/redmine-backporter.rb#L499
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]