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.
是否有插件/gem 来记录/记录 rails 脚本/生成命令的历史?
我在脚本/生成中添加了代码,就可以了。
CMD = "#{$0} #{ARGV.join(' ')}\n" File.open(File.expand_path('../../log/generate.log', __FILE__), 'a') {|f| f.write(CMD) }