rescue In a rake Task?
I'm trying to use pry-rescue inside of a rake task. Something like this:
bundle exec rescue rake my:task
But when an exception occurs ( undefined method...
) it just exists like normal. How can I use pry-rescue with my rake task?
你有没有尝试将你的任务物体包裹在救援区?
task 'my_task' do
Pry.rescue {
things.that_need_doing
}
end
链接地址: http://www.djcxy.com/p/79892.html
上一篇: 为TextBoxFor扩展Kendo HtmlHelpers
下一篇: 救援在耙子任务?