提交 46784703 编写于 作者: Y yuuji.yaginuma

change `prepare_destination` to public API [ci skip]

`prepare_destination` has been used in the template file for the generator,
I think it should be a public API

ref: https://github.com/rails/rails/blob/master/railties/lib/rails/generators/test_unit/generator/templates/generator_test.rb#L8
上级 eaa0cb79
......@@ -92,7 +92,8 @@ def ensure_current_path # :nodoc:
cd current_path
end
def prepare_destination # :nodoc:
# Clears all files and directories in destination.
def prepare_destination
rm_rf(destination_root)
mkdir_p(destination_root)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册