20th Sat
rake svn:commit
This article was migrated from http://rails.office.drecom.jp/takiuchi/archive/158
馬場さんが書いてるやつをちょっと修正したもの。
ruby>> desc 'Commit to the repository safely.' task :commit => [ :up, :'db:migrate', :test, :'test:plugins', ] do if msg = ENV['M'] msg.gsub!(/\"/, '\"') system %Q{svn ci #{RAILS_ROOT} -m "#{msg}"} else system "svn ci #{RAILS_ROOT}" end end desc 'Update working copy.' task :up do system "svn up #{RAILS_ROOT}" end <<-- テストが成功したときだけコミットします。結構便利ですよ。This article was migrated from http://rails.office.drecom.jp/takiuchi/archive/158
posted by
genki on Sat 20 Jan 2007 at 22:04 with 0 comments