Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
railsスクリプト/生成コマンドの履歴をログに記録/記録するためのプラグイン/gemはありますか?
スクリプト/生成にコードを追加しましたが、それでうまくいきます。
CMD = "#{$0} #{ARGV.join(' ')}\n" File.open(File.expand_path('../../log/generate.log', __FILE__), 'a') {|f| f.write(CMD) }