开发者

History of rails script/generate commands

Is t开发者_开发百科here a plugin/gem to log/record the history of rails script/generate commands?


I added code to script/generate and that does the trick.

CMD = "#{$0} #{ARGV.join(' ')}\n"
File.open(File.expand_path('../../log/generate.log',
         __FILE__), 'a') {|f| f.write(CMD) }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜