开发者

History of rails script/generate commands

开发者 https://www.devze.com 2022-12-14 19:22 出处:网络
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.

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

精彩评论

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

关注公众号